PHP code example of jengo / api
1. Go to this page and download the library: Download jengo/api 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/ */
jengo / api example snippets
// app/Config/Routes.php
use Jengo\Api\Router;
use Jengo\Api\Support\RouterOptions;
use Jengo\Api\Support\DocsOptions;
Router::publish($routes, new RouterOptions(
version: 'v1',
docs: new DocsOptions(route: 'docs', uiRoute: 'docs/ui')
));