Package Data | |
---|---|
Maintainer Username: | melihovv |
Maintainer Contact: | amelihovv@ya.ru (Alexander Melihov) |
Package Create Date: | 2017-07-02 |
Package Last Update: | 2020-11-01 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-23 03:05:47 |
Package Statistics | |
---|---|
Total Downloads: | 34,256 |
Monthly Downloads: | 15 |
Daily Downloads: | 0 |
Total Stars: | 141 |
Total Watchers: | 6 |
Total Forks: | 33 |
Total Open Issues: | 4 |
Simple package to quickly generate basic structure for other laravel packages.
Install via composer
composer require --dev melihovv/laravel-package-generator
Add service provider to config/app.php
in providers
section (it is optional
step if you use laravel>=5.5 with package auto discovery feature)
Melihovv\LaravelPackageGenerator\ServiceProvider::class,
Publish package config if you want customize default values
php artisan vendor:publish --provider="Melihovv\LaravelPackageGenerator\ServiceProvider" --tag="config"
Create new package.
Example: php artisan package:new Melihovv SomeAwesomePackage
This command will:
packages/melihovv/some-awesome-package
foldergit init packages/melihovv/some-awesome-package
composer update melihovv/some-awesome-package
composer dump-autoload
With interactive -i
flag you will be prompted for every needed value from you.
Remove the existing package.
Example: php artisan package:remove Melihovv SomeAwesomePackage
This command will:
composer remove melihovv/some-awesome-package
packages/melihovv/some-awesome-package
foldercomposer dump-autoload
Interactive mode also possible.
Clone the existing package.
Example: php artisan package:clone https://github.com/melihovv/laravel-env-validator Melihovv LaravelEnvValidator --src=src/LaravelEnvValidator
This command will:
packages/melihovv/laravel-env-validator
foldercomposer update melihovv/laravel-env-validator
composer dump-autoload
Interactive mode also possible. If you need you can specify which branch to
clone with -b
flag.
This package will copy all folders and files from specified skeleton path to
package folder. You can use templates in your skeleton. All files with tpl
extension will be provided with some variables available to use in them. tpl
extension will be stripped.
Available variables to use in templates:
If you discover any security related issues, please email amelihovv@ya.ru instead of using the issue tracker.