niburkin / serializer
This package is abandoned and no longer maintained.
No replacement package was suggested.
Serializer for Laravel
dev-master / 0.2.1.x-dev
2019-03-21 09:57 UTC
Requires
- php: >=7.2
- barryvdh/laravel-cors: ^0.11.3
- illuminate/support: 5.5.x|5.6.x|5.7.x|5.8.x
This package is auto-updated.
Last update: 2020-11-21 14:45:29 UTC
README
Installation
Require the niburkin/serializer
in your composer.json
and update your dependencies:
composer require niburkin/serializer
For laravel >=5.5 that's all. This package supports Laravel new Package Discovery.
If you are using Laravel < 5.5, you also need to add Serializer\Providers\SerializerServiceProvider to your config/app.php
providers array:
NiBurkin\Serializer\Providers\SerializerServiceProvider::class,
Configuration
all objects must be entered into the list object in the config file (config/serializer.php
).
Copy this file to your own config directory to modify the values.
You can publish the config using this command:
php artisan vendor:publish --provider="NiBurkin\Serializer\Providers\SerializerServiceProvider"
Using
How to create serializer from command line:
php artisan make:serializer ClassName
Options:
--o
or--object
- auto create serializer for you class in project app.
License
Released under the MIT License, see LICENSE.