| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Original HTTPS Page] |
A collection of small, focused, PSR-compliant PHP packages.
Compose only the pieces you need — every package stands on its own.
Website · Packagist · Discussions · Contributing
InitPHP publishes a family of independent, single-responsibility PHP packages. Each one solves a specific problem — HTTP messaging, routing, validation, sessions, etc. — and adheres to the relevant PHP-FIG standard (PSR-3, PSR-7, PSR-11, PSR-12, PSR-15, PSR-16, PSR-18 where applicable).
InitPHP is not a framework. There is no monolithic runtime, no opinionated bootstrap, no "you must structure your app like this". Take a router and nothing else; pair a query builder with a third-party DI container; or combine a dozen InitPHP packages to build something larger. The choice is yours.
If you have used the League of Extraordinary Packages or browsed Symfony's individual components, the model will feel familiar.
| Package | What it does |
|---|---|
| initphp/http | PSR-7 messages, PSR-17 factory, PSR-18 client — a self-contained HTTP toolkit. |
| initphp/router | Fast HTTP router with grouping, middleware, route caching and PSR-7 integration. |
| initphp/database | PDO-based DBAL with Data Mapper, Query Builder and migration support. |
| initphp/container | Minimal PSR-11 dependency container with reflection-based autowiring. |
| initphp/auth | Pluggable authentication with adapter-based credential and session storage. |
| initphp/validation | Expressive, rule-based data validation with fluent syntax. |
Every package is a standalone Composer install. There is no umbrella package to pull in — depend only on what you use.
composer require initphp/routeruse InitPHP\Router\Router;
$router = new Router();
$router->get('/hello/{name}', function (string $name) {
return "Hello, {$name}!";
});
$router->run();Browse the full documentation at initphp.org.
Browse all 28 active packages by categoryThe ecosystem has been streamlined: several narrow packages have been merged into broader, more capable ones, and a few stale wrappers have been retired. Composer surfaces the retired packages as abandoned and points you at the replacement.
| Retired package | Replacement |
|---|---|
| initphp/event-emitter | initphp/events (≥ 2.0) |
| initphp/http-client | initphp/http (≥ 2.2) |
| initphp/http-factory | initphp/http (≥ 2.2) |
| initphp/curl | initphp/http (≥ 2.2) |
| initphp/redis-session-handler | initphp/sessions RedisAdapter |
| initphp/cli-table | initphp/console (≥ 2.1) |
| initphp/redis | Use ext-redis directly, or initphp/cache / initphp/sessions |
| initphp/var-dumper | symfony/var-dumper |
| initphp/polyfill-php80 | symfony/polyfill-php80 |
Migration guides live in the README of each retired package.
Contributions are welcome and encouraged. Start with CONTRIBUTING.md for the workflow and conventions, browse open issues across the org for ideas, or open a Discussion if you want to talk through a larger change before sending a PR.
Security issues should be reported privately — see SECURITY.md.
If InitPHP saves you time, please consider sponsoring the project. Sponsorship directly funds active maintenance, security updates, CI/CD across the ecosystem, and improvements to initphp.org.
All packages are released under the MIT License unless stated otherwise in the package's own LICENSE file.
Lightweight TCP, UDP, TLS and SSL socket toolkit for PHP 8.1+. Enum-driven factory, non-blocking select-driven server loop, and a per-transport Channel strategy.
Environment variable loader for PHP 8 — reads .env / .env.php with type coercion and ${VAR} interpolation.
The framework-less BabelQueue runtime for plain PHP — a polyglot queue worker with URN routing, retries/back-off, dead-letter handling and PDO/Redis/RabbitMQ transports.
Standards-compliant PSR-7, PSR-17, PSR-18 HTTP messages, factories, cURL client, and SAPI response emitter for PHP 7.4+ (PSR-7 v1 & v2 compatible).
Fast, framework-agnostic PSR-7 HTTP router for PHP 8.1+: route groups (prefix, domain, port, IP), middleware, dependency injection, named routes & URL generation, static file links and route caching.
Small, adapter-based view rendering layer for PHP 8: render with plain PHP, Blade or Twig behind one interface.
Fast, dependency-free data validation for PHP 8.1+ — a string rule DSL, callable & custom rules, and localized error messages.
Validate and store uploaded files on local disk, FTP/FTPS or Amazon S3 through a single, adapter-based API.
Dependency-free multi-language (i18n) translation library for PHP 8.1+ — file or directory language packs, dot-delimited nested keys, placeholder interpolation and default-language fallback.
Loading…
Loading…
| Back | FazBrowse Home | New Git URL |