An open API service indexing awesome lists of open source software.

https://github.com/tangoman75/entityhelper

TangoMan Entity Helper provides Traits with Getters and Setters for common properties
https://github.com/tangoman75/entityhelper

Last synced: 3 months ago
JSON representation

TangoMan Entity Helper provides Traits with Getters and Setters for common properties

Awesome Lists containing this project

README

          

TangoMan Entity Helper
==========================

**TangoMan Entity Helper** provides a collection of traits for common properties to use in your project entities.

Features
========

- Included asserts with custom messages (french) for property validation.
- Fluent setters for all properties, allowing chaining.
- Magic JsonSerialisable.

Installation
============

Step 1: Download the Helper
---------------------------

Open a command console, enter your project directory and execute the
following command to download the latest stable version of this helper:

```bash
$ composer require tangoman/entity-helper
```

This command requires you to have Composer installed globally, as explained
in the [installation chapter](https://getcomposer.org/doc/00-intro.md)
of the Composer documentation.

Step 2: Enable VichUploader
---------------------------

Since **TangoMan Entity Helper** requires [VichUploaderBundle](https://github.com/dustin10/VichUploaderBundle),
if you plan to use **UploadableDocument**, or **UploadableImage** traits,
enable the bundle by adding it to the list of registered bundles
in the `app/AppKernel.php` file of your project:

```php