Open Source PHP Ecosystem

Build with
Modular PHP Libraries

A collection of 27 lightweight, standalone PHP libraries. From database ORM to socket servers, each component is designed to work independently or together.

27
Libraries
MIT
License
PSR
Standards

Explore by Category

Find the right library for your needs, organized by functionality.

Database & Storage

ORM, query building, caching, queues, and data persistence.

HTTP & Routing

Routing, request & response handling, PSR-7/17 messages, uploads, and views.

Security

Encryption, escaping, validation, and authentication utilities.

Networking

TCP/UDP sockets, mail sending, and real-time communication.

Configuration

Environment, config management, sessions, and cookies.

Utilities

Logging, CLI tools, events, i18n, and general-purpose helpers.

All Libraries

Every package in the InitPHP ecosystem, ready to install via Composer.

Database
DBAL, Data Mapper, Query Builder, ORM
Router
Advanced HTTP routing library
Socket
TCP, TLS, UDP, SSL Server/Client
Events
Event hooks for extensible architecture
FiberLoops
Async-style PHP Fiber loops
Cache
PSR-16 Simple Cache interface
Encryption
OpenSSL & Sodium encryption
Validation
Data type & structure verification
Translator
Multi-language support
Mailer
Simple SMTP mail sending
Logger
PSR-3 logging to file or database
HTTP
PSR-7 & PSR-17 HTTP Messages
Config
Configuration file management
DotENV
Load .env environment variables
Container
PSR-11 dependency injection
Escaper
HTML, JS, CSS, URL escaping
Console
CLI application helper
Auth
Authorization library
Sessions
Session management
Cookies
Secure signed cookies
ParameterBag
Key-value data storage
Input
User input retrieval & validation
PerformanceMeter
Runtime benchmarking
Barbarian
Database migration library
Upload
File upload to local/remote
Views
View/template rendering
Queue
Job queue management
View All Repositories

Get Started

Install any library with Composer in seconds.

terminal
$ composer require initphp/database
$ composer require initphp/router
$ composer require initphp/socket
$ composer require initphp/cache