Download the PHP package amranidev/lpackager without Composer
On this page you can find all versions of the php package amranidev/lpackager. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download amranidev/lpackager
More information about amranidev/lpackager
Files in amranidev/lpackager
Package lpackager
Short Description Packages Generator for Laravel
License MIT
Homepage http://github.com/amranidev/scaffold-interface
Informations about the package lpackager
lpackager
Lpackager is a CLI tool that allows you to generate packages/modules into your laravel app without forgetting business logic. Split laravel app into packages/modules.
I. Package Installation
-
Run composer require to install Lpackager :
Or add in composer.json:
Then update composer :
- Add the service providers to config/app.php :
II. Quick Start
Create new package by php artisan lpackager:package <PackageName> <PackagePath> <"NameSpace">
In this example, we will create a new (package/module) into our application with a name (Customer).
-
Create your first package:
php artisan lpackager:package Customer Kernel "Kernel\Customer"
-
Register namespace:
Add to composer.json
-
Register the service provider:
Add the service provider to config/app.php
-
Finally:
Run
composer dump-autoload
Check if evreything is okey :
http://{your-project-url}/client
III. Commands
-
Create new Package :
php artisan lpackager:package <PackageName> <PackagePath> <"NameSpace">
-
Create new Controller :
php artisan lpackager:controller <ClassName> <PackageName> <PackagePath> <"NameSpace">
- Create new Model :
php artisan lpackager:model <ClassName> <PackagePath> <"NameSpace">