boctulus / simplerest-scaffolding
Command-line project scaffolding tools for SimpleRest applications
Package info
github.com/boctulus/simplerest-scaffolding
pkg:composer/boctulus/simplerest-scaffolding
Requires
- php: >=8.1,<8.5
- boctulus/simplerest: ^2.0 || ^3.0
- boctulus/simplerest-i18n: ^1.0
Requires (Dev)
- phpunit/phpunit: ^10.5
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
boctulus/simplerest-scaffolding provides the make command group for
generating SimpleRest application code: models, controllers, APIs, migrations,
middleware, modules, packages, and related project files.
The package is not registered on Packagist yet. Install it from GitHub for now:
composer config repositories.simplerest-scaffolding vcs https://github.com/boctulus/simplerest-scaffolding composer require boctulus/simplerest-scaffolding:dev-main
Enable command discovery explicitly in the host application's
config/commands.php after installing the package:
'packages' => ['boctulus/simplerest-scaffolding'],
For example, once the host app has database configuration and a registered command entry point, generate a model with:
php com make model users
The host application keeps its own app/Commands/ directory and command entry
point. The package requires the SimpleRest core and boctulus/simplerest-i18n.