1. Go to this page and download the library: Download marcuwynu23/narciso 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/ */
marcuwynu23 / narciso example snippets
Marcuwynu23\Narciso\Application;
$app = new Application();
$app->route('GET', '/', function ($app) {
$app->json(['message' => 'Hello World']);
});
$app->route('GET', '/users/:id', function ($app, $params) {
$app->json(['user_id' => $params['id']]);
});
$app->run();