PHPackages                             sirosoft/core - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. sirosoft/core

ActiveLibrary[Framework](/categories/framework)

sirosoft/core
=============

Core engine powering the Siro API Framework with zero external dependencies.

v0.35.0(1mo ago)21.0k↑83.3%1[2 PRs](https://github.com/SiroSoft/siro-core/pulls)1MITPHPPHP &gt;=8.2CI passing

Since Jun 7Pushed 3w agoCompare

[ Source](https://github.com/SiroSoft/siro-core)[ Packagist](https://packagist.org/packages/sirosoft/core)[ Docs](https://github.com/SiroSoft/siro-core)[ RSS](/packages/sirosoft-core/feed)WikiDiscussions main Synced 3w ago

READMEChangelogDependencies (18)Versions (47)Used By (1)

⚡ Siro Core
===========

[](#-siro-core)

**Core engine powering the Siro API Framework.**
 Routing · ORM · CLI · Debug. Zero external dependencies.

[![PHP 8.2+](https://camo.githubusercontent.com/927d682df808b38bd2e6e0b524fd2a0eaaaf0e95bdb6f71d151226f5ec0600b2/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344382e322d627269676874677265656e2e737667)](https://php.net)[![PHPStan](https://camo.githubusercontent.com/ea92c6c0d7161a9291cf9a5b07fa1907f0fdc0fc26367164d4cb1a0eb8e97e03/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048505374616e2d4c6576656c2532304d61782d627269676874677265656e)](https://phpstan.org)[![Tests](https://camo.githubusercontent.com/9224ba47bd9033c98e1883d6ca8c482674419fe68864186871cdacec6cf350a6/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f74657374732d31392e343936253230706173732d627269676874677265656e)](tests/)[![License: MIT](https://camo.githubusercontent.com/b8cadaa967891081f8f165695470689986c028821dd8a040132f6e661795dc0d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c7565)](LICENSE)

---

Install
-------

[](#install)

```
# Standalone engine
composer require sirosoft/core

# Or with full skeleton (recommended)
composer create-project sirosoft/api my-app
```

---

Debug production in 1 command
-----------------------------

[](#debug-production-in-1-command)

```
php siro api:why POST /api/orders
```

```
  Request
  ────────────────────────────────────────────────────────
  Route:    POST /api/orders
  Status:   ✗ 500
  Duration: 143ms

  Middleware Pipeline
    └ ✗ OrderMiddleware       35ms ⚠ slow

  SQL Queries
    └ ⚠ UPDATE inventory      102ms ⚠ slow

  Exception
    PDOException: Deadlock found when trying to get lock

  Possible Cause
    • Concurrent transaction conflict
    • Missing retry logic for deadlock scenarios

  Suggested Fix
    ▸ Wrap transaction in retry loop (max 3 attempts)

  Replay
    [r] php siro replay id --force
    [e] php siro replay id --edit
    [d] php siro replay id --diff
    [t] php siro make:test --from-trace=id

```

One command. Full context. No other framework has this flow.

---

Full workflow
-------------

[](#full-workflow)

```
                        ┌─────────────────┐
                        │   HTTP Request   │
                        └────────┬────────┘
                                 ▼
                        ┌─────────────────┐
                        │  Router (O(1))   │
                        └────────┬────────┘
                                 ▼
                        ┌─────────────────┐
                        │   Middleware     │
                        └────────┬────────┘
                                 ▼
                        ┌─────────────────┐
                        │  Controller      │
                        │  → Service       │
                        │  → Model / DB    │
                        └────────┬────────┘
                                 ▼
                        ┌─────────────────┐
                        │  Resource / JSON │
                        └─────────────────┘

```

```
php siro make:crud Product   # Build
php siro why                 # Debug
php siro replay --diff       # Replay
php siro fix                 # Fix & auto-test
```

---

Features
--------

[](#features)

LayerWhat's included**Router**O(1) static dispatch, regex dynamic, groups, middleware pipeline, PHP 8 Attributes**ORM**Active Record, HasOne/HasMany/BelongsTo/BelongsToMany, eager loading, soft deletes, identity map, N+1 detection**Auth**JWT (HS256/RS256), key rotation, per-token revocation, refresh rotation, API keys, RBAC**Security**CSP, CSRF, CORS, rate limiting (Redis/file), audit logging, OWASP Top 10 mitigated**CLI**80 commands: `make:crud`, `migrate`, `db:why`, `api:why`, `log:replay`, `test:regression`, `fix`**Debug**Request replay, trace search (IP/path/status/time), `api:why`, `db:why`, N+1 detection, log sanitization**Database**Query Builder, Schema Builder, migrations, SQLite/MySQL/PostgreSQL, pagination, row locking**Cache**File + Redis drivers, HMAC-signed config cache**Queue**DB-based, exponential backoff, priority, timeout, failed job retry**Mail**SMTP (STARTTLS), sendmail, async queue, HTML + attachments**Validation**15+ rules, custom rules + messages, FormRequest**Storage**Local filesystem, S3-compatible**Events**Pub/sub, wildcards, one-time listeners, model lifecycle hooks**AI/MCP**MCP Server built-in — Claude/GPT/Copilot reads your project---

Performance
-----------

[](#performance)

```
Cold boot (Linux + OPcache):       ~0.5 ms
Cold boot (Windows, no OPcache):   ~2.4 ms
Route dispatch static O(1):        ~0.003 ms (~300K ops/sec)
Full-stack (warm route+response):  ~0.003 ms (~360K ops/sec)
Memory (framework baseline):        ~4 MB

```

Methodology: [BENCHMARK.md](BENCHMARK.md)

---

Quality
-------

[](#quality)

GateResultPHPStan (Level Max)**0 errors**Psalm (Level 1 + taint)**0 errors**Unit + Integration tests**1,488+ — 0 failures**Fuzz tests**17,851 — 0 failures**DAST security tests**157 — 0 failures**Mutation testingMSI ≥80%Composer audit**0 vulnerabilities**---

Requirements
------------

[](#requirements)

- PHP 8.2+
- `ext-pdo`, `ext-json`, `ext-mbstring`

---

Ecosystem
---------

[](#ecosystem)

ProjectDescription[SiroPHP](https://github.com/SiroSoft/SiroPHP)Full project skeleton — 7 controllers, 462 tests, Docker, K8s[siro-mcp-server](https://github.com/SiroSoft/siro-mcp-server)AI agent integration — Claude/GPT/Copilot---

License
-------

[](#license)

MIT — see [LICENSE](LICENSE).

###  Health Score

47

—

FairBetter than 93% of packages

Maintenance93

Actively maintained with recent releases

Popularity22

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 79% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~1 days

Total

35

Last Release

48d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ea0d0f4a3410e30686af677521695ec93dd5c60853564eccba7a3c13ca849b02?d=identicon)[thiennhant95](/maintainers/thiennhant95)

---

Top Contributors

[![nhanttvv](https://avatars.githubusercontent.com/u/211454413?v=4)](https://github.com/nhanttvv "nhanttvv (177 commits)")[![thiennhant95](https://avatars.githubusercontent.com/u/24535959?v=4)](https://github.com/thiennhant95 "thiennhant95 (46 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")

---

Tags

phpjwtapiframeworkrestauthcoreREST APIcrud generatormicro-frameworkphp8api first

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan, Psalm

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/sirosoft-core/health.svg)

```
[![Health](https://phpackages.com/badges/sirosoft-core/health.svg)](https://phpackages.com/packages/sirosoft-core)
```

###  Alternatives

[zemit-cms/core

Build Phalcon REST APIs faster with database-first scaffolding, model relationships, eager loading, identity, permissions, CLI, and WebSocket support.

148.5k1](/packages/zemit-cms-core)[digitalstars/simplevk

Powerful PHP library/framework for VK API bots, supporting LongPoll &amp; Callback &amp; OAuth

924.4k3](/packages/digitalstars-simplevk)[patricksavalle/slim-rest-api

Production-grade REST-API App-class for PHP SLIM, in production on https://zaplog.pro (https://api.zaplog.pro/v1)

101.4k](/packages/patricksavalle-slim-rest-api)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
