_ _ _
| | __ _ _ __ __ ___ _____| | __ ___ ____ _| |_ __ _ _ __
| |/ _` | '__/ _` \ \ / / _ \ |_____ / _` \ \ / / _` | __/ _` | '__|
| | (_| | | | (_| |\ V / __/ |_____| (_| |\ V / (_| | || (_| | |
|_|\__,_|_| \__,_| \_/ \___|_| \__,_| \_/ \__,_|\__\__,_|_|
Avatar Generating Package for Laravel.
Install
Supported Laravel Versions: >= 6.x
Run the following command directly in your Project path:
composer require laradocs/laravel-avatar
The service provider of the Package will be automatically discovered by Laravel.
After that, you should publish the config file via following command:
php artisan vendor:publish --provider="Laradocs\Avatar\AvatarServiceProvider"
Greate! You can start to use Avatar Package.
Demo
Open web.php
file in routes
directory, and add below example:
Route::get ( 'avatar', function () {
app ( 'avatar' )->output ( 'T', 't.png' );
} );
Next, The application will auto generate t.png
file in public
directory.
Licence
Contributing
- Fork it ( https://github.com/laradocs/laravel-avatar/fork )
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create a new Pull Request
Contributors
- laradocs Tall - creator, maintainer