PHP code example of phpsa / laravel-yourls-plugin

1. Go to this page and download the library: Download phpsa/laravel-yourls-plugin library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

phpsa / laravel-yourls-plugin example snippets


Phpsa\LaravelYourlsPlugin\ServiceProvider::class,

'ShortUrl' => Phpsa\LaravelYourlsPlugin\Facades\LaravelYourlsPlugin::class,

\ShortUrl::shorturl(string $url [, string $title = NULL [], string $keyword = NULL [], string $format = NULL ]]] )

\ShortUrl::expand(string $shorturl [, string $format = null] )

\ShortUrl::expand(string $shorturl [, string $format = null] )

\ShortUrl::stats( [string $filter = null [, int $limit = null [, string $format = null ]]] )

\ShortUrl::dbStats([ string $format = null] )

\ShortUrl::getLastResponse()
bash
php artisan vendor:publish --provider="Phpsa\LaravelYourlsPlugin\ServiceProvider" --tag="config"