New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

hergend/pack

A tiny package generator for Laravel
9,807
Install
composer require hergend/pack
Latest Version:v1.1.0
PHP:^7.4 || ^8.0
Laravel:6 – 10
License:GPL-3.0-or-later
Last Updated:Oct 7, 2024
Links: GitHub  ·  Packagist
Maintainer: HergenD

Pack

Tiny package generator, only creating the most bare-bone folder structure for a new (local only) package.

Installation

Install pack as a dev dependency:

composer require hergend/pack --dev

Usage

!! Package names are kebab-case, so not PascalCase

php artisan make:pack <package-name>

Creates the following files:

|- src/
|  |- PackageServiceProvider.php
|- tests/
|- composer.json

It also sets up the correct namespacing, and registers your package in your root composer.json.

Using this tool you can create local packages for utility classes/functionality to be shared across domains within your application easily.

Related Packages

doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

651,963,193 9,701
laravel/framework

The Laravel Framework.

604,216,237 34,982
laravel/tinker

Powerful REPL for the Laravel framework.

518,004,183 7,444
laravel/serializable-closure

Laravel Serializable Closure provides an easy and secure way to serialize closur...

435,097,283 607
nunomaduro/collision

Cli error handling for console/command-line PHP applications.

407,699,310 4,663

Version History

Version Released PHP Laravel License
v1.1.0 ^7.4 || ^8.0 >=6.0 GPL-3.0-or-later
v1.0.0 ^7.4 || ^8.0 >=6.0 GPL-3.0-or-later