kematjaya / crud-maker-bundle
crud generator base on symfony maker-bundle
Installs: 1 801
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 0
Forks: 0
Open Issues: 2
Requires
- doctrine/doctrine-bundle: ^2.13
- doctrine/orm: ^2.10|^3.0
- kematjaya/base-controller-bundle: ^7.0
- symfony/config: ^6.0|^7.0
- symfony/console: ^6.0|^7.0
- symfony/dependency-injection: ^6.0|^7.0
- symfony/form: ^7.0
- symfony/http-foundation: ^6.0|^7.0
- symfony/http-kernel: ^6.0|^7.0
- symfony/maker-bundle: ^1.60
- symfony/routing: ^6.0|^7.0
- symfony/security-csrf: ^7.0
- symfony/translation: ^6.0|^7.0
- symfony/twig-bundle: ^6.0|^7.0
- symfony/validator: ^6.0|^7.0
- symfony/yaml: ^6.0|^7.0
Requires (Dev)
- phpunit/phpunit: ^9.4
- symfony/browser-kit: ^6.0|^7.0
- symfony/var-dumper: ^6.0|^7.0
This package is auto-updated.
Last update: 2024-10-23 08:52:22 UTC
README
CRUD generator base on Symfony Maker Bundle
- installation
composer require kematjaya/crud-maker-bundle
- Generate Filter Form
php bin/console make:kmj-filter
- Generate CRUD include form, filter and pagination
php bin/console make:kmj-crud
if use modal add to base template
<div class="modal fade" id="myModal">
<div class="modal-content" id="modal-dialog">
<div style="text-align: center"><img src="{{ asset('bundles/basecontroller/images/loading.gif') }}" style="width: 20px"/></div>
</div>
</div>
and add jquery.js
- if you want to change generator template, you can set template path in config
# config/packages/crud_generator.yaml
# assume your template in root-project/generator
crud_maker:
templates:
path: '%kernel.project_dir%/generator'
thank to:
- Filter type provide by https://github.com/lexik/LexikFormFilterBundle
- pagination provide by https://github.com/KnpLabs/KnpPaginatorBundle
- Base CRUD by: https://github.com/symfony/maker-bundle