Laravel YoURLS Plugin
Installation
Install via composer
composer require phpsa/laravel-yourls-plugin
Register Service Provider
Note! This and next step are optional if you use laravel>=5.5 with package
auto discovery feature.
Add service provider to config/app.php in providers section
Phpsa\LaravelYourlsPlugin\ServiceProvider::class,
Register Facade
Register package facade in config/app.php in aliases section
'ShortUrl' => Phpsa\LaravelYourlsPlugin\Facades\LaravelYourlsPlugin::class,
Publish Configuration File (optional)
php artisan vendor:publish --provider="Phpsa\LaravelYourlsPlugin\ServiceProvider" --tag="config"
Configuration Settings
you can set the following values in your environment file
LARAVEL_YOURLS_PLUGIN_URL=
LARAVEL_YOURLS_PLUGIN_USERNAME=
LARAVEL_YOURLS_PLUGIN_PASSWORD=
LARAVEL_YOURLS_PLUGIN_SIGNATURE=
LARAVEL_YOURLS_PLUGIN_FORMAT=json
Authentication can use either the username / password combo or the signature