A simple toolkit to KickStart laravel package development.
-
Open your laravel project folder
-
Create a directory in your project root to store your packages lets just call it packages.
-
Lets add the
YourVendorNamedirectory to the pacakge folder we just creates this will help keep things organised by vendor. Your folder sturcture should look something like thispackages/YourVendorName/ -
cdin the Vendor folder and clone the github repo
git clone https:/github.com/shawnsandy/PkgStart packagename
- CD into your new package dir and run
$ php prefill.phpin the command line. Follow the prompts to replace Shawn Sandy shawnsandy http://shawnsandy.com shawnsandy04@gmail.com shawnsandy gitcontent Git content :psr4_namespace with their correct values package files, CHANGELOG.md, CONTRIBUTING.md, LICENSE.md,/src/**.phpand composer.json files: Delete the file prefill.php when done.
php prefill.php
- Add the package to composer.json
psr-4namespace
"psr-4": {
"App\\": "app/",
"YourVendorName\\PackageName\\": "packages/YourVendorName/PackageName/src",
},
Dump composer autoload
composer dumpautoload
- Go to config/app.php and add the package service provider
VendorName\PackageName\ServicesProvider::class,- Reset the project
rm -rf .git && git initBuild something awesome
Please see CONTRIBUTING and CONDUCT for details.
If you discover any security related issues, please email shawnsandy04@gmail.com instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.