ama / symfony-mongo-maker-bundle
Mongo documents, DTO and controllers crud makers with nelmio-api-doc autogenerated
1.0.0.x-dev
2023-09-13 09:53 UTC
Requires
- php: >=8.1
- ext-ctype: *
- ext-iconv: *
- ext-mongodb: *
- doctrine/annotations: ^2.0
- doctrine/mongodb-odm-bundle: ^4.5
- mongodb/mongodb: ^1.10.0
- nelmio/api-doc-bundle: ^4.12
- symfony/asset: 6.3.*
- symfony/console: 6.3.*
- symfony/dotenv: 6.3.*
- symfony/flex: ^2
- symfony/framework-bundle: 6.3.*
- symfony/http-client: 6.3.*
- symfony/property-access: 6.3.*
- symfony/runtime: 6.3.*
- symfony/serializer: 6.3.*
- symfony/twig-bundle: 6.3.*
- symfony/validator: 6.3.*
- symfony/yaml: 6.3.*
- twig/extra-bundle: ^2.12|^3.0
- twig/twig: ^2.12|^3.0
This package is auto-updated.
Last update: 2024-11-07 16:01:32 UTC
README
Mongo bundle - development in progress...
This bundle is my first one, for private projects for the moment. Link to my repo here
It implements two symfony commands :
1 - mongo:make:document --nocrud name
* name is optionnal, it will be ask as first question if it's not provided
* --nocrud prevent creation of document and a controller and creates only the DTO class
2 - mongo:make:controller (with no option, allow to create controllers not linked to a document - usefull for gateways api)
The maker works as the symfony original maker for orm entities:
It will ask the name of the document (or controller) and then, for each property :the name, the type and if it is nullable Then, it will create a document, a functionnal crudcontroller and a dto class If --nocrud option is not provided, the document and the controller are implemented with nelmio basic documentation to create a swagger