Lightweight API Framework|19496 Tests

Build APIs in Minutes. Debug Instantly.

Generate full CRUD APIs in minutes. Replay real production requests. Fix bugs directly from your terminal.

composer create-project sirosoft/api my-app

A lightweight PHP framework built for rapid API development and instant production debugging. Minimal dependencies. Full request tracing. php siro replay <trace_id>.

SiroPHP Terminal Demo
$ > php siro why
🤖 AI analyzing your codebase...
$
Minimal
Dependencies
~3ms*
Cold Boot (Win)
19496
Tests Passing
~4MB+
Baseline RAM
Max
PHPStan Level

Build Fast. Deploy Light. Debug Instantly.

Not just a debug tool. Not just a micro-framework. The fastest feedback loop for API developers.

Build

Fast CRUD Scaffolding

Generate full API endpoints with model, migration, controller, routes, and tests in 2 seconds.

🔥Build

CLI API Testing

Test endpoints directly from terminal with auto-auth. No Postman. No cURL. Just instant feedback.

🔄Debug

Replay Production Requests

Replay real production requests from your terminal. php siro replay &lt;trace_id&gt; restores full context.

🧠Debug

Trace Every Request

Every response includes X-Siro-Trace-Id. View full context: headers, body, SQL queries, timing.

🔒Debug

Production-Safe Debugging

Sensitive data auto-sanitized in logs. Replay locked with --dry-run in production. Full audit trail for every replay.

📄Ship

Auto OpenAPI Docs

Generate Swagger UI and Postman collection automatically from your validation rules. Docs that never go stale.

🪶Ship

Lightweight Core

Minimal dependencies. Runs on $2/month hosting. Readable architecture you can understand in one afternoon.

📊Debug

Built-in Benchmarking

Run php siro benchmark to measure performance metrics. Compare endpoints, track regressions, optimize with data.

🛡️Ship

Type-Safe

PHPStan Level max with baseline. Every mixed type tracked. Catch bugs before runtime with strict static analysis.

🔒Debug

Brute Force Protection

Auto account lockout after 5 failed attempts. 15-minute cooldown prevents credential stuffing attacks.

🛡️Ship

Penetration Tested

42 attack vectors verified. SQL injection, XSS, CSRF, path traversal — all blocked by default.

📊Debug

Built-in Metrics

Prometheus format metrics with batch persist. Monitor performance, track bottlenecks, optimize with data.

⌨️Build

Tab Completion & IDE Helper

Bash/Zsh tab completion for all CLI commands. PHPStorm helper for autocomplete and inline documentation.

Build → Ship → Why → Replay → Fix → Test → Regression

One CLI workflow from scaffolding to production debugging

1

Build & Ship

php siro make:crud products

🔍
2

Why

php siro api:why GET /products

🔄
3

Replay

php siro replay <id> --test

✏️
4

Fix & Test

make:test --from-trace=<id>

📊
5

Regression

php siro test:regression

The Fastest Feedback Loop for API Developers

Build fast. Debug faster. All from your terminal.

# Build — full CRUD in 2 seconds
php siro make:crud products

# Why — diagnose root cause
php siro api:why GET /api/products
php siro db:why abc123 --slow

# Replay — reproduce with test generation
php siro replay a1b2c3d4 --test

# Fix with watch mode — auto re-test on save
php siro fix
php siro make:test --from-trace=a1b2c3d4

# Regression — verify no regressions
php siro test:regression --limit=50

✔ Status: 200 OK — 2 SQL queries — 45ms ✔ All regression tests pass
$

Why SiroPHP?

  • 🪶Minimal dependencies — no supply chain risk, no composer audit
  • ~3ms cold boot (Win) / ~0.5ms (Linux), ~4MB+ baseline RAM — budget-friendly hosting
  • 📖Readable core architecture — understand the entire framework in one afternoon
  • 🚀Ship production APIs in under one hour with make:crud
  • 🔄Replay any production bug — stop guessing what went wrong
  • 🔓No lock-in — migrate to Laravel anytime, patterns are compatible
# 🚀 Build — full CRUD in 2 seconds
php siro make:crud products
  ├── app/Models/Product.php
  ├── app/Controllers/ProductController.php
  ├── app/Resources/ProductResource.php
  ├── database/migrations/create_products_table.php
  ├── routes/api.php
  └── tests/Feature/ProductTest.php

php siro migrate
php siro serve  # → localhost:8080

# 🐞 Debug — replay production request
php siro replay a1b2c3d4
  └── Full context: headers, body, SQL, timing

Get Started in Seconds

One command. Zero dependencies. Choose your platform.

curl -sS https://sirophp.com/downloads/install.sh | bash
Copy

Paste into Terminal

Prefer downloading the PHAR directly?

Download siro.phar v0.35.0
~2.5 MBSHA256 available on GitHub release page
System requirements: PHP 8.2+ext-pdo, ext-json, ext-mbstringFull install guide →

Build Fast. Debug Faster.

A lightweight PHP framework for rapid API development and instant production debugging. Minimal dependencies. Full request tracing. One-command replay.

Open-source on GitHubMIT Licensed462 tests passing (skeleton)