fd6130 / hsl-bundle

Provide some good feature for novice in Symfony.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

hsl-bundle

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

  1. PHP 7.2 or above
  2. 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

  1. Pagination
  2. Transformer
  3. DTO and Mapper

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

Credits

fd6130

License

License: MIT

About

Provide some good feature for novice in Symfony.

License:MIT License


Languages

Language:PHP 100.0%