bakgul / laravel-package-generator
This package aims to generate packages to increase productivity. It offers a flexible package structure thanks to settings that can be found in the 'structures' array on 'config/packagify.php'. The detailed explanations can be found in that array's comment block.
Requires
- php: ^8.1
- bakgul/command-evaluator: ^4.0
- bakgul/file-content: ^4.0
- bakgul/file-history: ^4.0
- bakgul/kernel: ^4.0
- bakgul/laravel-file-creator: ^4.0
- bakgul/laravel-helpers: ^1.0
- bakgul/laravel-resource-creator: ^4.0
- dev-master
- v4.0.1
- v4.0.0
- v3.0.7
- v3.0.6
- v3.0.5
- v3.0.4
- v3.0.3
- v3.0.2
- v3.0.1
- v3.0.0
- v2.0.3
- v2.0.2
- v2.0.1
- v2.0.0
- v1.1.26
- v1.1.25
- v1.1.24
- v1.1.23
- v1.1.22
- v1.1.21
- v1.1.20
- v1.1.19
- v1.1.18
- v1.1.17
- v1.1.16
- v1.1.15
- v1.1.14
- v1.1.13
- v1.1.12
- v1.1.11
- v1.1.10
- v1.1.9
- v1.1.8
- v1.1.7
- v1.1.6
- v1.1.5
- v1.1.4
- v1.1.3
- v1.1.2
- v1.1.1
- v1.1.0
This package is auto-updated.
Last update: 2024-11-23 00:12:04 UTC
README
This package aims to generate packages to increase productivity. It offers a flexible package structure thanks to settings that can be found in the structures array on config/packagify.php. The detailed explanations can be found in that array's comment block.
DISCLAIMER
It should be production-ready but hasn't been tested enough. You should use it carefully since this package will manipulate your files and folders. Always use a version-control, and make sure you have File History to be able to roll back the changes.
v3 Update guide
- Go to
vendor/bakgul/kernel/config/apps.php
file and see the changes. We have a new key namedroutes
under each app. Bring that new structure to your packagify.php file in your config folder. - Add
'bundler' => 'vite' or 'mix'
to the main array under 'Main from Kernel' section in your packagify.php file in your config folder.
Installation
If you installed Packagified Laravel, you should have this package already. So skip installation.
composer require bakgul/laravel-package-generator
Next, you need to publish the settings by executing the following command. By doing so, you will have a new file named packagify.php on the config folder. If you check the "files" array, you can see the file types that can be created. Quite deep explanations are provided in the comment block of the files array.
sail artisan packagify:publish-config
Signature
create:package {package} {root} {--d|dev}
Arguments
-
package: It's required and must be unique.
-
root: It's required and must be one of the predefined roots in the "roots" array on config/packagify.php. The roots' keys or folders can be used here.
Options
- dev: If you create a dev-dependency, add "-d" or "--dev" to the command.
Credit
I copied the service provider's boilerplate from the package generated on BeyondCode Boilerplate Generator
Packagified Laravel
The main package that includes this one can be found here: Packagified Laravel