Socket
11Lightweight 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 for building real-time servers and clients.
composer require initphp/socket
A collection of 27 lightweight, standalone PHP libraries — from database ORM to socket servers. Every package is MIT licensed, PSR compliant where a standard exists, and installs on its own with Composer.
Most popular and actively maintained components in the InitPHP ecosystem.
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 for building real-time servers and clients.
composer require initphp/socket
PHP 8.1+ query builder, DBAL and active-record ORM — with a server-side DataTables.js helper out of the box. Built on the InitORM stack, so the query builder, DBAL and ORM layers can each be used on their own or stacked together.
composer require initphp/database
Tiny, zero-dependency event & hook library for PHP 5.6+ — a WordPress-style static Events facade and a Node-style EventEmitter, in one package, for building extensible plugin-based architectures.
composer require initphp/events
A minimal cooperative task scheduler (event loop) for PHP, built on native fibers. Run multiple tasks concurrently without threads or extensions.
composer require initphp/fiber-loops
Fast, framework-agnostic PSR-7 HTTP router for PHP 8.1+: route groups (prefix, domain, port, IP), middleware, dependency injection, named routes and URL generation, static file links and route caching.
composer require initphp/router
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.
composer require initphp/translator
Find the right library for your needs, organized by functionality.
ORM, query building, caching, queues, and data persistence.
Routing, request & response handling, PSR-7/17 messages, uploads, and views.
Encryption, escaping, validation, and authentication utilities.
Environment, config management, sessions, and cookies.
Logging, CLI tools, events, i18n, and general-purpose helpers.
Every package in the InitPHP ecosystem, ready to install via Composer.
DBAL, Data Mapper, Query Builder, ORM
initphp/database
Advanced HTTP routing library
initphp/router
TCP, TLS, UDP, SSL Server/Client
initphp/socket
Event hooks for extensible architecture
initphp/events
Async-style PHP Fiber loops
initphp/fiber-loops
PSR-16 Simple Cache interface
initphp/cache
OpenSSL & Sodium encryption
initphp/encryption
Data type & structure verification
initphp/validation
Multi-language support
initphp/translator
Simple SMTP mail sending
initphp/mailer
PSR-3 logging to file or database
initphp/logger
PSR-7 & PSR-17 HTTP Messages
initphp/http
Configuration file management
initphp/config
Load .env environment variables
initphp/dotenv
PSR-11 dependency injection
initphp/container
HTML, JS, CSS, URL escaping
initphp/escaper
CLI application helper
initphp/console
Authorization library
initphp/auth
Session management
initphp/sessions
Secure signed cookies
initphp/cookies
Key-value data storage
initphp/parameterbag
User input retrieval & validation
initphp/input
Runtime benchmarking
initphp/performance-meter
Database migration library
initphp/barbarian
File upload to local/remote
initphp/upload
View/template rendering
initphp/views
Job queue management
initphp/queue
Install any library with Composer in seconds.
$ composer require initphp/socket $ composer require initphp/database $ composer require initphp/events $ composer require initphp/fiber-loops
Every package follows the same pattern — composer require initphp/<package>. See the
exact command, PHP requirement and documentation for each of the 27 libraries in the
library catalogue.
What InitPHP is, how to install it, and what it requires.
InitPHP is an open source collection of 27 standalone PHP libraries covering database access, HTTP routing, caching, encryption, sockets, queues and more. It is not a framework: there is no kernel, no service container you must boot, and no shared runtime. Each package is installed and used on its own.
No. Every package is published separately on Packagist and depends only on what it genuinely needs. You can install a single library into an existing application without adopting anything else from the ecosystem.
Each library is a Composer package under the initphp vendor namespace. Run composer require initphp/<package>, for example composer require initphp/router or composer require initphp/database. Every library page on this site lists its exact install command.
It depends on the package. The minimum ranges from PHP 5.6 for the smallest utility libraries up to PHP 8.2 for the newest ones; most current releases target PHP 8.1 or later. The required version is listed on each library's page.
Yes. The libraries are framework-agnostic and interoperate through PSR interfaces, so they can be dropped into any PHP application or framework that uses Composer.
InitPHP HTTP implements PSR-7, PSR-17 and PSR-18; Container implements PSR-11; Cache implements PSR-16; Logger implements PSR-3; and Router consumes PSR-7 and PSR-11. That means they can be swapped for any other compliant implementation.
Yes. Every InitPHP package is released under the MIT license, which permits commercial use, modification and redistribution as long as the copyright notice is retained.
Each package documents itself in its GitHub wiki, linked from that library page on this site alongside its source repository and its Packagist listing.