PHP code example of xbb / shorturl

1. Go to this page and download the library: Download xbb/shorturl 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/ */

    

xbb / shorturl example snippets


    Xbb\ShortUrl\ShortUrlServiceProvider::class,
    

    $ php artisan vendor:publish --provider='Xbb\ShortUrl\ShortUrlServiceProvider'
    

    $ php artisan migrate
    

    app('shortUrl')->makeShortUrl($url);
 
2. 跳转