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
- Host: GitHub
- URL: https://github.com/tangoman75/entityhelper
- Owner: TangoMan75
- License: mit
- Created: 2017-08-21T14:58:45.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2020-06-16T14:15:42.000Z (about 6 years ago)
- Last Synced: 2025-02-26T00:04:06.708Z (over 1 year ago)
- Language: PHP
- Homepage:
- Size: 85 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
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