PHP code example of kivagant / staticus

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

    

kivagant / staticus example snippets

/user/{id}
car.jpg
car.jpg?alt=вагон
car.jpg?alt=машина
routes.global
acl.global
auth.global.php

$this->user->login($storage->user_id, [Roles::USER]);
$this->user->setNamespace(UserInterface::NAMESPACES . DIRECTORY_SEPARATOR . $storage->user_id);
staticus.global
acl.global
/user/{id}