PHP code example of javi-solutions / url-shortener

1. Go to this page and download the library: Download javi-solutions/url-shortener 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/ */

    

javi-solutions / url-shortener example snippets


JaviSolutions\UrlShortener\UrlShortener::withoutRoutes();

JaviSolutions\UrlShortener\UrlShortener::withPrefix('some-prefix');

JaviSolutions\UrlShortener\UrlShortener::withoutObservers();

$this->call(JaviSolutions\UrlShortener\Database\Seeds\UrlShorteningSeeder::class);
$this->call(JaviSolutions\UrlShortener\Database\Seeds\UrlShorteningVisitSeeder::class);