PHP code example of gsbabaev / restfulphptpl

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

    

gsbabaev / restfulphptpl example snippets

bash
php: >=7.1.0
mysql: @stable
 php
$config['db'] = 'bbb';
$config['user'] = 'xxx';
$config['pass'] = 'yyy';
 bash
mysql -pyyy -uxxx bbb < dump.restfulphptpl.sql
 php
use RESTfulPHPtpl\TRS;

$trs = new TRS();

echo $trs->json();