1. Go to this page and download the library: Download glueful/framework 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/ */
glueful / framework example snippets
declare(strict_types=1);
use Glueful\Framework;
use Symfony\Component\HttpFoundation\Request;
nt($_ENV['APP_ENV'] ?? 'development');
$app = $framework->boot();
// Define a quick route (see cookbook for best practices)
$router = $app->getContainer()->get(Glueful\Routing\Router::class);
$router->get('/ping', fn() => new Glueful\Http\Response(['ok' => true]));
$request = Request::createFromGlobals();
$response = $app->handle($request);
$response->send();
$app->terminate($request, $response);
bash
# Produce the spec
php glueful generate:openapi
# TypeScript types via openapi-typescript
php glueful generate:client typescript --output=./sdk
# Other languages via openapi-generator-cli
php glueful generate:client python --output=./python-client
php glueful generate:client go --output=./go-client
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.