Download the PHP package rabsana/normalizer without Composer
On this page you can find all versions of the php package rabsana/normalizer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download rabsana/normalizer
More information about rabsana/normalizer
Files in rabsana/normalizer
Package normalizer
Short Description Normalize values based on predefined normalizing table
License proprietary
Informations about the package normalizer
Rabsana normalizer - rabsana/normalizer
rabsana/normalizer normalizes values, amounts, prices based on predefined list of ratios.
Installation
Add following code to your project composer.json file(ensure token not expired):
Install via composer in the root directory of a Laravel 5 application
composer require rabsana/normalizer:dev-master
Add the following line to config/app.php inside the 'providers' array to use the service provider
'Rabsana\Normalizer\ServiceProvider',
Update composer
composer update
Run the package install command
php artisan vendor:publish
Usage
For accessing normalization features you only need to add NormalizerTrait to your model:
This trait adds following methods to the model:
- normalizers() Which is a morphMany relationship to
Rabsana\Normalizer\Models\Normalizer::classclass. - normalize() This method will normalize given column using value based on normalizing table.
Overview
$normalizations
this property should be presents in models in order to normalizations can work.
Configs
After publishing configs there will be a rabsana-normalizer.php file in config/ folder
- You have to add middleware for restricting access to specific group of uses(e.g admins)
- You should specify master layout and main section of page. Also you should specify styles and scripts stacks
- Each class tha you want to be used in normalizations, you must add them in
templatessection.
Tools
composer, phpunit, orchestra/testbench
License
This packaged licensed to https://rabsana.ir