PHP code example of tina4stack / tina4php-core

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

    

tina4stack / tina4php-core example snippets


use Tina4\Module;

Module::addModule("MyModule", "1.0.0", "MyNamespace");

use Tina4\Cache;

$cache = new Cache();
$cache->set("user_123", ["name" => "Alice"], 300);
$value = $cache->get("user_123");

use Tina4\Annotation;

$annotation = new Annotation();
$routes = $annotation->get("api");