Open Source PHP Ecosystem

Build with
Modular PHP Libraries

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

39+
Libraries
MIT
License
PSR
Standards

Explore by Category

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

Database & Storage

ORM, query building, caching, and data persistence.

HTTP & Routing

Request handling, routing, PSR-7/17 messages, and HTTP clients.

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, debugging, 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
Curl
Advanced HTTP request library
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
Redis
Redis management library
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
EventEmitter
Event emitter pattern
CLITable
Beautiful CLI tables
Upload
File upload to local/remote
Views
View/template rendering
VarDumper
Variable dumper for debugging
HTTPClient
PSR-18 HTTP Client
HTTPFactory
PSR-17 HTTP Factory
Queue
Job queue management
RedisSessionHandler
Redis-backed session handler
Framework3
3rd gen MVC Framework
Polyfill-PHP80
PHP 8.0 functions for PHP 7
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