PHP code example of vesp / core
1. Go to this page and download the library: Download vesp/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/ */
vesp / core example snippets
$app->any('/api/some-action', App\Controllers\SomeAction::class)
->add(Vesp\Middlewares\Clockwork::class);
$app->get(
'/__clockwork/{id:(?:[0-9-]+|latest)}[/{direction:(?:next|previous)}[/{count:\d+}]]',
Vesp\Controllers\Data\Clockwork::class
);
$app->get('/__clockwork/{id:[0-9-]+}/extended', Vesp\Controllers\Data\Clockwork::class);