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-appA lightweight PHP framework built for rapid API development and instant production debugging. Minimal dependencies. Full request tracing. php siro replay <trace_id>.
Build Fast. Deploy Light. Debug Instantly.
Not just a debug tool. Not just a micro-framework. The fastest feedback loop for API developers.
Fast CRUD Scaffolding
Generate full API endpoints with model, migration, controller, routes, and tests in 2 seconds.
CLI API Testing
Test endpoints directly from terminal with auto-auth. No Postman. No cURL. Just instant feedback.
Replay Production Requests
Replay real production requests from your terminal. php siro replay <trace_id> restores full context.
Trace Every Request
Every response includes X-Siro-Trace-Id. View full context: headers, body, SQL queries, timing.
Production-Safe Debugging
Sensitive data auto-sanitized in logs. Replay locked with --dry-run in production. Full audit trail for every replay.
Auto OpenAPI Docs
Generate Swagger UI and Postman collection automatically from your validation rules. Docs that never go stale.
Lightweight Core
Minimal dependencies. Runs on $2/month hosting. Readable architecture you can understand in one afternoon.
Built-in Benchmarking
Run php siro benchmark to measure performance metrics. Compare endpoints, track regressions, optimize with data.
Type-Safe
PHPStan Level max with baseline. Every mixed type tracked. Catch bugs before runtime with strict static analysis.
Brute Force Protection
Auto account lockout after 5 failed attempts. 15-minute cooldown prevents credential stuffing attacks.
Penetration Tested
42 attack vectors verified. SQL injection, XSS, CSRF, path traversal — all blocked by default.
Built-in Metrics
Prometheus format metrics with batch persist. Monitor performance, track bottlenecks, optimize with data.
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
Build & Ship
php siro make:crud products
Why
php siro api:why GET /products
Replay
php siro replay <id> --test
Fix & Test
make:test --from-trace=<id>
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
Paste into Terminal
Prefer downloading the PHAR directly?
Build Fast. Debug Faster.
A lightweight PHP framework for rapid API development and instant production debugging. Minimal dependencies. Full request tracing. One-command replay.