fd6130/hsl-bundle

This package is abandoned and no longer maintained. No replacement package was suggested.

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: 254

Dependents: 0

Suggesters: 0

Security: 0

Stars: 3

Watchers: 1

Forks: 0

Open Issues: 1

Type:symfony-bundle

v1.1.4 2022-02-14 12:56 UTC

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

  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