Package Data | |
---|---|
Maintainer Username: | Neelkanth Kaushik |
Maintainer Contact: | neelkanth.kaushik@daffodilsw.com (Neelkanth Kaushik) |
Package Create Date: | 2016-03-23 |
Package Last Update: | 2024-09-08 |
Language: | PHP |
License: | GPL |
Last Refreshed: | 2025-04-25 15:12:01 |
Package Statistics | |
---|---|
Total Downloads: | 13 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 6 |
Total Watchers: | 2 |
Total Forks: | 1 |
Total Open Issues: | 0 |
#####Version 1.0.0 ##A package development boilerplate for Laravel 5.1+
####Download https://github.com/neelkanthk/TodoPackage for a demo package built using LaraPackBoiler.
#####Provides a Jump Start to your Laravel package development in a structured way.
###Salient Features
Note: You need to have composer installed on your system.
composer require neelkanthk/larapackboiler "dev-master"
Copy the following to your config/app.php's providers array
Change the larapackboiler composer.json file to define dependencies and other package related information.
Add the following line to the project's composer.json psr-4 array:
"psr-4": {
"App\\": "app/",
"Package\\Application\\" : "vendor/neelkanthk/larapackboiler/application/src/"
}
Run composer dumpautoload
or composer dump-autoload
from your project root.
Run following command to move the package assets, views, config files to your application folder. (Optional)
php artisan vendor:publish
Test your installation by visiting the following URL in your browser.
packagename/test
If you see 'Hi I am PackageController@exampleAction', then you have successfully configured the laraPackBoiler.
That's it. Now, You are ready to develop your package.
#####The boilerplate code is well documented to help you in your development.
##Quick Start for developing your first package using boilerplate
Rename the package folder to your package name.
Change the package name in project's composer.json psr-4 array.
Example:
"psr-4": { "App\": "app/", "TodoPackage\Application\" : "vendor/{path_to_package}/application/src/" }
3. Similarly, Change the package name in your config/app.php's providers array.
- TodoPackage\Application\Providers\TodoPackageServiceProvider::class
- TodoPackage\Application\Providers\TodoPackageEventServiceProvider::class
4. Change the package's composer.json psr-4 array:
"psr-4": { "todopackage\application\": "src/" } ```
Run composer dump-autoload
from your project root.
Done. Start adding new controllers, models, routes, views to your new package.