hergend / pack
A tiny package generator for Laravel
v1.1.0
2023-10-01 22:54 UTC
Requires
- php: ^7.4 || ^8.0
- ext-json: *
- illuminate/console: >=6.0
- illuminate/support: >=6.0
README
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.