PHP code example of justso / justapi

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

    

justso / justapi example snippets


location /api/ {
    rewrite ^.*$ vendor/justso/justapi/FrontController.php;
}

return [
    '\MYNameSpace\MyClassName' => $this->singleton(MyNameSpace\MyClassName::class, [$this->env, 123])
];