avatar
Gmail-like default avatars using initials, (*1)
Contents
Installation
Via Composer in Terminal
``` bash
$ composer require adetoola/sms, (*2)
### Via Composer in composer.json
Begin by installing `avatar` by editing your project's `composer.json` file. Just add
'require": {
"adetoola/avatar": "0.1.*"
}
Then run `composer install` or `composer update`.
If you are using laravel, open `config/app.php` add in the `providers` array.
``` php
'providers' => [
// ...
Adetoola\Avatar\AvatarServiceProvider::class,
],
Then, find the aliases
and add Facade
to the array., (*3)
``` php
'aliases' => [
// ...
'Avatar' => Adetoola\Avatar\Facades\AvatarFacade::class,
],, (*4)
## Configuration
After installing, publish the package configuration file into your application by running
``` php
php artisan vendor:publish
Usage
Avatar is built to be easy to use.
```php
$avatar = new Adettola\Avatar\Avatar();
$image = $avatar->size(150)
->background('#fff')
->rounded()
->color('#eee')
->font('roboto.ttf')
->fontSize(0.667)
->generate()
->stream();, (*5)
Change log
Please see CHANGELOG for more information what has changed recently., (*6)
Contributing
Please see CONTRIBUTING and CONDUCT for details., (*7)
Security
If you discover any security related issues, please email adetola.onasanya@gmail.com instead of using the issue tracker., (*8)
Credits
License
SMS is an open-sourced package licensed under the MIT license., (*9)