PHP code example of nguyenanhung / share-links-generator

1. Go to this page and download the library: Download nguyenanhung/share-links-generator 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/ */

    

nguyenanhung / share-links-generator example snippets


$config['base_url'] = 'http://link.hungng.io/';

$db['default'] = array(
    'dsn'          => 'mysql:host=mariadb;port=3306;dbname=share_links',
    'hostname'     => 'mariadb',
    'port'         => 3306,
    'username'     => 'root',
    'password'     => 'hungna',
    'database'     => 'share_links',
    'dbdriver'     => 'pdo',
    'dbprefix'     => '',
    'pconnect'     => false,
    'db_debug'     => (ENVIRONMENT !== 'production'),
    'cache_on'     => false,
    'cachedir'     => '',
    'char_set'     => 'utf8',
    'dbcollat'     => 'utf8_general_ci',
    'swap_pre'     => '',
    'encrypt'      => false,
    'compress'     => false,
    'stricton'     => false,
    'failover'     => array(),
    'save_queries' => false
);

$config['users'] = array(
            1 => array(
                'username' => 'hungna',
                'password' => 'IYmAEWKcU2YnI0mGJPQw5N0X1VxIk4hZ'
            )
        );