Glueful

The Modern
API Framework

Build modern, secure APIs with speed and quality developer experience. Glueful brings first‑class async concurrency to PHP 8.2+, alongside modern tooling and enterprise‑grade security.

Open Source
JWT Authentication
High‑Throughput Routing
Async Concurrency
Terminal
# Create a new Glueful project from the API skeleton (recommended)
composer create-project glueful/api-skeleton my-project
cd my-project
# Start the development server
php glueful serve

Async & Concurrency for faster endpoints

Parallelize I/O with fiber‑based async. Opt in per route, keep code readable, and shave p95 latency on I/O‑heavy endpoints.

  • Per‑route opt‑in via async middleware
  • Helpers: async(), await_all(), await_race()
  • Parallel HTTP with retries/backoff
  • Limits + metrics for safe scaling

Explore Async

AsyncEndpointExample.php
// routes/api.php
$router->get('/users', [UserController::class, 'index'])
  ->middleware(['async']);

// UserController.php
use Symfony\Component\HttpFoundation\Request;
use Glueful\Http\Response;

class UserController extends BaseController
{
    public function index(Request $request)
    {
      $u = async(fn() => $this->fetchUsers());
      $s = async(fn() => $this->fetchStats());
      [$users, $stats] = await_all([$u, $s]);

      return Response::success(['users' => $users, 'stats' => $stats]);
    }
}

Write Beautiful Code

Elegant, type-safe code that feels like the future. Experience modern development with built‑in validation, dependency injection, and minimal boilerplate.
Type Safety
Sensible Defaults
Auto DI
UserController.php
PHP 8.2+
class UserController extends BaseController
{
    public function __construct(
        private UserService $userService
    ) {}

    
    public function create(Request $request): Response
    {
        $user = $this->userService->createUser($request->validated());

        return Response::created($user);
    }
}
Type Safety
Auto DI
Attributes

Why developers choose Glueful

Built by developers, for developers. Every feature is designed to eliminate friction and accelerate your API development workflow.

Faster Developer Velocity
Proactive Security Tooling
Strong Type‑Hinted APIs

    Modern Architecture

    PHP 8.2+ foundation with attributes, typed properties, and constructor promotion. RESTful by default with route annotations and generators that produce OpenAPI specs. Built‑in request/response validation helpers and type‑hinted code throughout.

    Developer Experience

    50+ CLI commands for everyday tasks. Smart migrations, extension management, and built‑in profiling/metrics. From `php glueful serve` to production deployment in minutes.

    Security

    JWT authentication with dual‑layer sessions, fine‑grained RBAC, and configurable rate limiting. Built‑in vulnerability scanning, audit trails, and emergency lockdown mode. OWASP‑aligned protections (CSRF, security headers, rate limits).

    Async & Concurrency

    Fiber‑based async that parallelizes I/O for faster endpoints. Opt‑in per route with the async middleware, ergonomic helpers (async(), await_all()) and a parallel HTTP client. Learn more →

From Database to API in Seconds

Generic CRUD endpoints via the built‑in Resource Controller. Configure per‑resource policies and validation to expose tables safely with documentation.

Extensible by design

Build modular APIs that grow with your needs. Extensions are first-class citizens with full access to Glueful's powerful features.

Dynamic Extensions
Enable/disable extensions via CLI, designed for zero‑downtime deploys.
Full DI Support
Automatic service injection, middleware, and event listeners.
Metrics Tracked
Built-in metrics for load time, memory usage, and request handling.
Terminal
# Create a new extension with full scaffolding
php glueful extensions:create PaymentGateway

 Created extension directory: extensions/PaymentGateway/
 Generated controller, service, and routes
 Added service provider and config
 Created README and tests

# Enable and use immediately
php glueful extensions:enable PaymentGateway
 Extension enabled successfully

# See all available extensions
php glueful extensions:info

Build Better APIs Faster

Ready to transform your API development? Join thousands of developers who've already made the switch to Glueful. From rapid prototyping to enterprise production, we've got you covered. Get production-ready APIs in minutes, not months.