Download the PHP package elenyum/maker without Composer
On this page you can find all versions of the php package elenyum/maker. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download elenyum/maker
More information about elenyum/maker
Files in elenyum/maker
Package maker
Short Description This bundle make module width controller, service and entity from json or console command.
License MIT
Informations about the package maker
ElenyumMakerBundle
ElenyumMakerBundle is a tool for generating Symfony modules based on Elenyum specifications (ESL). The bundle allows you to create controllers, entities, services, and repositories from a pre-defined JSON file.
Installation
Configuration
1. Add the Route
Manually add the route for module generation in config/routes/elenyum_maker.yaml
:
2. Configure Security
Add access control rules in config/packages/security.yaml
:
3. Bundle Configuration
Create a configuration file config/packages/elenyum_maker.yaml
:
Usage
Console Command
To create a module, use the following console command:
- -f, --file: Path to the ESL specification JSON file.
Aliases
Alias for the command:
Generated Files
When generating a module, the following structure is created:
- Controllers are created for
GET
,POST
,PUT
,DELETE
methods. - Services and repositories are generated for each entity.
OpenAPI Documentation
OpenAPI documentation is generated using the securityName
parameter from elenyum_maker.yaml
. It is applied in the controller attributes as shown:
If no authorization is required, the parameter can be left empty.
Example of Full Route Configuration
Notes
- Configuration and route files are created manually.
- Doctrine configuration is set in
elenyum_maker.yaml
. - The path for module generation:
%kernel.project_dir%/module
.
All versions of maker with dependencies
ext-json Version *
doctrine/dbal Version ^3
doctrine/doctrine-bundle Version ^2.11
doctrine/orm Version ^3.0
nette/php-generator Version ^4.1
symfony/console Version ^5.4|^6.0|^7.0
symfony/framework-bundle Version ^5.4.24|^6.0|^7.0
symfony/options-resolver Version ^7.0
symfony/security-bundle Version ^7.0
symfony/serializer Version ^7.0
symfony/validator Version ^7.0
symfony/yaml Version ^7.0