Download the PHP package jai/createpackage without Composer
On this page you can find all versions of the php package jai/createpackage. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download jai/createpackage
More information about jai/createpackage
Files in jai/createpackage
Package createpackage
Short Description artisan command to create laravel package .
License MIT
Informations about the package createpackage
Laravel 5 Package Template/Skeleton Creator
idea from Laracast Generators
Notes : at this stage very messy need to clean up
L5 includes an artisan command to create a laravel specific package out of the box, so this package only needs to add a few things, like:
- php artisan
create-package vendorName PackageName
Usage
Step 1: Install Through Composer
Step 2: Add the Service Provider
You'll only want to use these generators for local development, so you don't want to update the production providers
array in config/app.php
. Instead, add the provider in app/Providers/AppServiceProvider.php
, like so:
Place in config/app.php providers array.
for Local
Step 3: Run Artisan!
You're all set. Run php artisan
from the console, and you'll see the new command .
Examples
- create package With Service Provider
Create Package With Service Provider
Done !! package will be created with service provider - now all you need to do is register this package with laravel and autolaod it
example consider you have run
Autoload your created package:
Add your package path to composer.json file in prs-4 so it looks like this
Now in root console run : to autoload your package
Now Registering Created package with laravel:
in root/config/app.php in providers array add
Test it : in ExampleServiceProvider.php - in boot function place
after this run laravel url - you should see this "Testing package loading".
TODO :
-Extend this to load - routes -Extend this to load - config -Extend this to load - views -Extend this to load - model