Vitalii Olos SoloPHP
Follow Small, independent PSR packages for PHP. Use one, or all of them together. 2 followers 路 0 following- 馃嚭馃嚘 Ukraine, Kyiv
- https://solophp.github.io/
Achievements

x2
Achievements

x2
Block or report SoloPHP
Report abuseContact GitHub support about this user鈥檚 behavior. Learn more about reporting abuse.
Report abuse More SoloPHP/README.mdSoloPHP
Small, independent PSR packages for PHP. Use one, or all of them together.
Solo is not a framework. Each package does one job: a router, a container, request DTOs, a validator, repositories, a logger. They meet at PSR interfaces, and at solophp/contracts where PSR has none, so you can take one package into any project or replace one with another implementation. Two starter applications show how they fit together.
Try the live demo 路 Website 路 Getting started 路 Packages 路 Packagist
Create a task and follow the request through the SoloPHP packages, right in your browser. No installation required.
Start a project
Both starters need PHP 8.4 and Composer. They include tests and are set up for PHPUnit, PHPStan at level max and PSR-12.
Skeleton 路 JSON API
Skeleton is a ready-to-run JSON API with one CRUD module, request validation, SQLite, error handling, logging and tests.
- Create the project with
composer create-project solophp/skeleton my-app. - Enter the project directory with
cd my-app. - Start the API with
composer serve.
Inertia Svelte Skeleton 路 Web app
Inertia Svelte Skeleton combines server-side routing and controllers with an Inertia.js 3 and Svelte 5 frontend. It also needs Node.js.
Create the project with composer create-project solophp/inertia-svelte-skeleton my-app.
Packages
Every package runs on PHP 8.3 or later, except Container, which needs 8.4.
| Package | What it does | Docs | Latest version |
|---|---|---|---|
| HTTP kernel | |||
| solophp/application | PSR-15 kernel: service providers, a middleware pipeline, routing and a route cache | Docs | |
| solophp/router | Routes, groups and parameter patterns, compiled for matching; URLs built from route names | Docs | |
| solophp/container | PSR-11 container with autowiring, interface binding and lazy services | Docs | |
| solophp/http-emitter | Sends a PSR-7 response: status line, headers and a streamed body | README | |
| solophp/contracts | The interfaces the packages share where PSR has none | README | |
| Input | |||
| solophp/input | Typed, immutable request DTOs, validated, cast and processed by attributes | Docs | |
| solophp/validator | Rule strings compiled once, one structured error per field | Docs | |
| Data | |||
| solophp/repository | Typed table repositories over Doctrine DBAL, with translations, batch-loaded relations, stable pages and transactions | Docs | |
| solophp/cache | PSR-16 cache with file and Redis adapters: atomic file writes, isolated Redis namespaces and typed values | Docs | |
| Infrastructure | |||
| solophp/logger | PSR-3 logger for files shared across processes and for standard error, in line, JSON or logfmt | Docs | |
| solophp/dotenv | Strict .env loader: layered files, server variables first, all-or-nothing loading and typed accessors |
Docs | |
| solophp/event-dispatcher | PSR-14 event dispatcher with priorities, subscribers, listeners matched by class or interface, and stoppable events | Docs | |
| solophp/job-queue | Database-backed job queue: leased claims with ownership tokens, per-job retry policies, a long-running worker | Docs | |
| solophp/rate-limiter | Atomic per-key rate limits: fixed or renewable windows in Redis, with an in-memory twin for tests | README | |
| solophp/tokens | Tokens for reset links, invitations and sessions: random secrets stored only as hashes, in Redis or in memory | Docs | |
| solophp/http-client | Immutable PSR-18 client on Guzzle: safe retries, credentials bound to their origin and redacted logs | Docs | |
| solophp/image | Immutable GD images: EXIF orientation, bounded resizing, JPEG, PNG and WebP encoding, and smaller-only optimization | Docs | |
| Frontend | |||
| solophp/inertia | Inertia.js 3 server adapter for PSR-7 and PSR-15: partial reloads, deferred props, flash data, SSR, Precognition | Docs | |
| solophp/vite | Vite without a framework: the tags that load entries from the dev server or the build manifest, an asset version and a Twig function | README |
Legacy
Archived repositories are no longer maintained; their replacements are listed under Legacy.
Pinned Loading
-
Skeleton Skeleton Public
A JSON API starter for SoloPHP with SQLite and an interactive browser demo.
PHP
-
Application Application Public
PSR-15 application kernel for PHP with service providers, a middleware pipeline, routing, and a compiled route cache.
PHP 1
-
Router Router Public
PHP router with an independent route builder, immutable runtime, typed results, and compiled matching.
PHP 4
-
Input Input Public
Typed, validated input DTOs for PHP 8.3+: immutable classes built through their constructor from HTTP input, with attribute-driven validation, casting and processing
PHP 1
-
Repository Repository Public
Typed PHP repositories over Doctrine DBAL with translation fallback, batch-loaded relations, stable pagination, and transactions.
PHP 1
-
Container Container Public
PSR-11 dependency injection container for PHP with autowiring, interface bindings, and lazy services.
PHP 1
If the problem persists, check the GitHub status page or contact support.
Uh oh!
There was an error while loading. Please reload this page.