From 1acee9a1cbb74be0833539afdc9eaeb3bc4cf4fc Mon Sep 17 00:00:00 2001 From: Ly Date: Sun, 1 Jan 2023 21:46:16 +0100 Subject: [PATCH] Update README.md --- README.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 87439b1..aec1c4f 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,17 @@ # Symfony DTO Bundle ![Code Coverage](https://camo.githubusercontent.com/ffe54b3b9a48d4d6bd374e2630b48e088c99858500db95ebed37184e8c1a6a3b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f436f6465253230436f7665726167652d38342532352d737563636573733f7374796c653d666c6174) +![Packagist Downloads](https://img.shields.io/packagist/dt/dualmedia/symfony-request-dto-bundle) This bundle aims to lower the burden of typechecking, casting, loading entities and related annoyances of using requests in your api. Bundle will automatically hook into [Doctrine ORM Bundle](https://github.com/doctrine/DoctrineBundle) and [Nelmio API Docs Bundle](https://github.com/nelmio/NelmioApiDocBundle) so no additional configuration should be needed. +## Install + +Simply `composer require dualmedia/symfony-request-dto-bundle`, if applicable your Doctrine entity managers will be detected automatically and used as default providers for classes to be loaded with your requests if needed. + ## Usage 1. Create a DTO class for your request @@ -41,4 +46,4 @@ class MyController extends \Symfony\Bundle\FrameworkBundle\Controller\AbstractCo ## Docs -Currently no documentation is available, but will be added in the future. For the time being see [the DTO models for tests](tests/Fixtures/Model/Dto) \ No newline at end of file +Currently no documentation is available, but will be added in the future. For the time being see [the DTO models for tests](tests/Fixtures/Model/Dto)