kevindierkx / huevatar
Fetch a predefined class based on the provided email.
Installs: 113
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
pkg:composer/kevindierkx/huevatar
Requires
- php: >=5.4.0
- illuminate/support: ~4.2
This package is not auto-updated.
Last update: 2022-02-01 12:43:12 UTC
README
Fetch a predefined identifier based on the provided email.
Installation
To install this package you will need:
- Laravel 4.2+
- PHP 5.4
You must then modify your composer.json file and run composer update to include the latest version of the package in your project.
"require": { "kevindierkx/huevatar": "0.1.*" }
Or you can run the composer require command from your terminal.
composer require kevindierkx/huevatar:0.1.*
Once the package is installed you need to open app/config/app.php
and register the required service provider.
'providers' => [ 'Kevindierkx\Huevatar\HuevatarServiceProvider' ]
Optionaly you can add the following line to your aliases.
'aliases' => [ 'Huevatar' => 'Kevindierkx\Huevatar\Huevatar', ]
Configuration
Run the following command to publish the package configuration.
php artisan config:publish kevindierkx/huevatar
Usage
To fetch an identifier.
Huevatar::getColor('email@example.com');
Credits
License
The MIT License (MIT). Please see License File for more information.