PHP code example of bramin / cuttlylaravel

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

    

bramin / cuttlylaravel example snippets


return [
    'key' => '',
    'user_domain' => '0',
    'no_title' => '1',
    'public' => '1',
];

use Bramin\CuttlyPHP\Facades\Cuttly;

$success = Cuttly::ping();

$details = Cuttly::create('https://google.com', '', false, true, true);

$success = Cuttly::getAnalytics('https://cutt.ly/abcd', '2022-04-01', '2022-05-01');

$success = Cuttly::addTag('https://cutt.ly/abcd', 'tagname');

$success = Cuttly::updateSource('https://cutt.ly/abcd', 'http://www.google.com');

$success = Cuttly::updateTitle('https://cutt.ly/abcd', 'Google Home Page');

$success = Cuttly::delete('https://cutt.ly/abcd');
bash
php artisan vendor:publish --tag="cuttly-laravel-config"