edalzell / laravel-features
This is my package laravel-features
Installs: 1
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 3
pkg:composer/edalzell/laravel-features
Requires
- php: ^8.3
- composer/composer: ^2.8
- illuminate/contracts: ^11.0 || ^12.0
- spatie/blink: ^1.4
Requires (Dev)
- larastan/larastan: ^3.0
- laravel/pint: ^1.14
- nunomaduro/collision: ^8.8
- orchestra/testbench: ^9.0.0 || ^10.0.0
- pestphp/pest: ^4.0
- pestphp/pest-plugin-arch: ^4.0
- pestphp/pest-plugin-laravel: ^4.0
- phpstan/extension-installer: ^1.4
- phpstan/phpstan-deprecation-rules: ^2.0
- phpstan/phpstan-phpunit: ^2.0
- spatie/laravel-ray: ^1.40
This package is auto-updated.
Last update: 2025-10-27 09:11:35 UTC
README
Add self-contained features to your Laravel app, including all resources/routes/etc.
.
└── app/
├── ...
├── Features/
│ └── MyGreatFeature/
│ ├── database/
│ │ ├── factories
│ │ ├── migrations
│ │ └── seeders
│ ├── resources
│ ├── routes
│ └── src/
│ ├── Models
│ ├── ...
│ └── ServiceProvider.php
└── ...
Installation
You can install the package via composer:
composer require edalzell/laravel-features
Usage
To add a feature to your app:
php artisan make:feature MyGreatFeature
This will create an empty (but necessary) service provider that autoloads/registers migrations, routes, & views and properly namespaces your factories, seeders and code.
If you want to add a feature manually, or convert something you already have into a feature:
- create an
app/Features/YourFeaturefolder - create a
ServiceProviderthat extendsFeatureServiceProvider. - add a
pre-autoload-dumpscript to yourcomposer.json:
"pre-autoload-dump": [
"Edalzell\\Features\\Composer\\FeatureNamespaces::add"
]
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
License
The MIT License (MIT). Please see License File for more information.