I would like to use https://github.com/azuyalabs/yasumi
package in a laravel application.
I did the installation using:
$ composer require azuyalabs/yasumi
now, with a laravel package I would, after installing register the service providers
and the aliases
(facades) in config/app.php
:
This library has some facades of it's own.
What would be the way to integrate this library into Laravel ?
Should I create a new Service Provider class and register Yasumi
within that ?
Something like:
class YasumiServiceProvider extends ServiceProvider
{
/**
* Bootstrap the application services.
*
* @return void
*/
public function boot()
{
//
}
/**
* Register the application services.
*
* @return void
*/
public function register()
{
}
}
I wouldn't do that in the vendor folder as that is to be overwritten or even replaced at times.