PHP code example of splinter / skeleton
1. Go to this page and download the library: Download splinter/skeleton 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/ */
splinter / skeleton example snippets
// routes/api.php
$router->mount('/api/v1', function () use ($router, $app) {
$router->get('/ping', function () {
\Splinter\Http\JsonResponse::success(['pong' => true])->send();
});
});
bash
php splinter migrate
bash
php splinter migrate [--connection=default]
php splinter migrate:rollback [--connection=default]
php splinter migrate:status [--connection=default]
php splinter migrate:create <ClassName>
php splinter queue:work [queue]