InitPHP
InitPHP is a project that open source develops and publishes various modules/libraries from which you can build large or small structures.-
Verified
We've verified that the organization InitPHP controls the domain:
- initphp.org
- 10 followers
- Turkey
- http://initphp.org
InitPHP
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
What is InitPHP?
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-16, PSR-17, PSR-18 where applicable). The code style is PER-CS.
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.
Featured packages
| 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. |
Quick start
Every package is a standalone Composer install. There is no umbrella package to pull in — depend only on what you use.
composer require initphp/router
use 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.
All packages
Browse all 28 active packages by categoryHTTP & Web
initphp/http— PSR-7 / 17 / 18 toolkitinitphp/router— HTTP router
Data & Storage
initphp/database— DBAL, Data Mapper, Query Builderinitphp/barbarian— Database migrationsinitphp/cache— PSR-16 simple cache (File, Redis, Memcache, PDO adapters)initphp/sessions— Session manager (PDO, Memcache, Redis, Cookie, File, MongoDB adapters)initphp/cookies— Cookie management
Security
initphp/auth— Authenticationinitphp/encryption— OpenSSL / Sodium encrypt-decryptinitphp/escaper— Context-aware output escapinginitphp/validation— Input validation
CLI
initphp/console— CLI application toolkit (incl. ANSI table renderer)
Templating & I18n
initphp/views— View engineinitphp/translator— Multi-language support
Infrastructure
initphp/container— PSR-11 DI containerinitphp/config— Configuration managerinitphp/dotenv—.envloaderinitphp/events— Event dispatcher / hooksinitphp/logger— PSR-3 logger (File, PDO handlers)initphp/parameterbag— Key/value parameter bag
Async & Networking
initphp/fiber-loops— PHP 8.1 fiber-based event loopinitphp/socket— TCP / TLS / UDP / SSL socketsinitphp/queue— Queue (PDO, RabbitMQ adapters)
Utilities
initphp/input— Request input handlinginitphp/upload— File upload (Local, S3, FTP adapters)initphp/mailer— Mail sendinginitphp/performance-meter— Tiny zero-dep profiler
Recent consolidation
The 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.
Contributing
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.
Sponsor
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.
License
All packages are released under the MIT License unless stated otherwise in the package's own LICENSE file.
Pinned Loading
-
Router Router Public
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.
PHP 4
-
Mailer Mailer Public
Send e-mail via PHP's mail() function, sendmail or SMTP, with attachments, inline images and MIME multipart bodies.
PHP 3
-
Curl Curl Public archive
Curl library to help you make advanced HTTP requests with PHP.
-
Config Config Public
Advanced configuration manager for PHP with dotted-path access, case-insensitive keys, and array/file/directory/class loaders.
PHP 3
-
Socket Socket Public
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.
PHP 12
Repositories
Showing 10 of 38 repositories-
initphp.github.io
Public
InitPHP WebPage
Uh oh!
There was an error while loading. Please reload this page.
InitPHP/initphp.github.io's past year of commit activity Astro 0 0 0 0 Updated Nov 29, 2026 -
Router
Public
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.
Uh oh!
There was an error while loading. Please reload this page.
InitPHP/Router's past year of commit activity PHP 4 MIT 0 0 0 Updated Nov 29, 2026 -
Translator
Public
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.
Uh oh!
There was an error while loading. Please reload this page.
InitPHP/Translator's past year of commit activity PHP 4 2 0 0 Updated Nov 29, 2026 -
Mailer
Public
Send e-mail via PHP's mail() function, sendmail or SMTP, with attachments, inline images and MIME multipart bodies.
Uh oh!
There was an error while loading. Please reload this page.
InitPHP/Mailer's past year of commit activity PHP 3 MIT 0 0 0 Updated Nov 29, 2026 -
HTTP
Public
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).
Uh oh!
There was an error while loading. Please reload this page.
InitPHP/HTTP's past year of commit activity PHP 3 MIT 0 0 0 Updated Nov 29, 2026 -
Queue
Public
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.
Uh oh!
There was an error while loading. Please reload this page.
InitPHP/Queue's past year of commit activity PHP 1 MIT 0 0 0 Updated Nov 29, 2026 -
PerformanceMeter
Public
Zero-dependency, single-class PHP profiler for measuring elapsed time and memory between named checkpoints. Built for tiny scripts, CLI tools, and reproducers where a real profiler is overkill.
Uh oh!
There was an error while loading. Please reload this page.
InitPHP/PerformanceMeter's past year of commit activity PHP 2 MIT 1 0 0 Updated Nov 28, 2026 -
Input
Public
Read and validate GET, POST and JSON body input with configurable source priority for PHP.
Uh oh!
There was an error while loading. Please reload this page.
InitPHP/Input's past year of commit activity PHP 2 MIT 1 0 0 Updated Nov 28, 2026 -
Auth
Public
Lightweight PHP 8 auth library: session, signed-cookie, and custom storage adapters plus a case-insensitive permission set.
Uh oh!
There was an error while loading. Please reload this page.
InitPHP/Auth's past year of commit activity PHP 1 MIT 0 0 0 Updated Nov 28, 2026 -
Barbarian
Public
A small, simple database migration library for PHP — a PDO-based runner for MySQL, SQLite and PostgreSQL with a lightweight CLI.
Uh oh!
There was an error while loading. Please reload this page.
InitPHP/Barbarian's past year of commit activity PHP 1 MIT 0 0 0 Updated Nov 28, 2026
People
This organization has no public members. You must be a member to see who’s a part of this organization.
Top languages
Loading…
Uh oh!
There was an error while loading. Please reload this page.
Most used topics
Loading…
Uh oh!
There was an error while loading. Please reload this page.
