Library for working with the Short.cm service
If you have any problems please open an Issue.
- PHP >= 7.0
- guzzlehttp/guzzle ^6.3
- A short.cm account.
Install via Composer:
composer require ignittion/short
Import the Composer autoload file.
require require __DIR__.'/vendor/autoload.php';
Create a new instance of Short.
$api = 'https://api.short.cm';
$domain = 'short.tld';
$key = 'abc123';
$short = new Ignittion\Short($api, $domain, $key);
Add the Service Provider in config/app.php
:
Ignittion\Short\ShortServiceProvider::class,
Add the Class Alias in config/app.php
:
'Short' => Ignittion\Short\Facades\Short::class,
Publish the Config file:
php artisan vendor:publish
Add config settings to .env
SHORTCM_API=https://api.short.cm
SHORTCM_DOMAIN=
SHORTCM_KEY=