fd6130 / hsl-bundle
This bundle provide some ease of development for Symfony beginner. You can now create a CRUD controller very fast and it comes with DTO validation, mapping and pagination.
Installs: 256
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 1
Forks: 0
Open Issues: 1
Type:symfony-bundle
Requires
- php: >=7.2.5
- babdev/pagerfanta-bundle: ^3.0
- doctrine/inflector: ^1.4|^2.0
- mark-gerarts/automapper-plus-bundle: ^1.2
- monterhealth/api-filter-bundle: ^1.2
- pagerfanta/pagerfanta: ^3.0
- samj/fractal-bundle: ^4.0
- symfony-bundles/json-request-bundle: ^4.0
- symfony/validator: ^4.4|^5.0|^6.0
- symfony/yaml: ^4.4|^5.0|^6.0
Requires (Dev)
- symfony/maker-bundle: ^1.0
Suggests
- easycorp/easy-deploy-bundle: For easy deploy
- lexik/jwt-authentication-bundle: Install this if you need JWT authentication
- nelmio/cors-bundle: CORS management
- nesbot/carbon: Easy format your datetime
- vich/uploader-bundle: For file upload
README
hsl-bundle provide you some nice feature that can help you to speed up your development:
- maker command for DTOs (DTOs are use for POST and PUT request)
- maker command for Transformers (customize your result)
- maker command for API CRUD Controller (boilerplate code for your need)
- pagination (it is integrated during the controller creation)
Prerequisites
- PHP 7.2 or above
- Symfony 4.4 / 5 (symfony new --full)
Protips: Refer to suggest section in composer.json
to see more useful tools.
Installation
composer require "fd6130/hsl-bundle"
Configuration
Create config/fd_hsl.yaml
and paste the following content:
fd_hsl:
paginator:
default_limit: 30
Usage
Command at a glance
Append --help at the end of the command for more options. For example php bin/console make:hsl:dto --help
DTOs
php bin/console make:hsl:dto
Transformers
php bin/console make:hsl:transformer
API CRUD Controller (make sure you have Entity, DTO and Transformer)
php bin/console make:hsl:crud