Open Source PHP Ecosystem

InitPHP
Modular PHP Libraries

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.

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

initphp/database

Router

Advanced HTTP routing library

initphp/router

Socket

TCP, TLS, UDP, SSL Server/Client

initphp/socket

Events

Event hooks for extensible architecture

initphp/events

FiberLoops

Async-style PHP Fiber loops

initphp/fiber-loops

Cache

PSR-16 Simple Cache interface

initphp/cache

Encryption

OpenSSL & Sodium encryption

initphp/encryption

Validation

Data type & structure verification

initphp/validation

Translator

Multi-language support

initphp/translator

Mailer

Simple SMTP mail sending

initphp/mailer

Logger

PSR-3 logging to file or database

initphp/logger

HTTP

PSR-7 & PSR-17 HTTP Messages

initphp/http

Config

Configuration file management

initphp/config

DotENV

Load .env environment variables

initphp/dotenv

Container

PSR-11 dependency injection

initphp/container

Escaper

HTML, JS, CSS, URL escaping

initphp/escaper

Console

CLI application helper

initphp/console

Auth

Authorization library

initphp/auth

Sessions

Session management

initphp/sessions

Cookies

Secure signed cookies

initphp/cookies

ParameterBag

Key-value data storage

initphp/parameterbag

Input

User input retrieval & validation

initphp/input

PerformanceMeter

Runtime benchmarking

initphp/performance-meter

Barbarian

Database migration library

initphp/barbarian

Upload

File upload to local/remote

initphp/upload

Views

View/template rendering

initphp/views

Queue

Job queue management

initphp/queue

Browse all 27 libraries View on GitHub

Get Started

Install any library with Composer in seconds.

terminal
$ 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.

Frequently Asked Questions

What InitPHP is, how to install it, and what it requires.

What is InitPHP?

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.

Do I have to use all of the libraries together?

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.

How do I install an InitPHP library?

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.

Which PHP versions does InitPHP support?

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.

Can I use InitPHP libraries with Laravel, Symfony or CodeIgniter?

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.

Which PSR standards does InitPHP implement?

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.

Is InitPHP free for commercial use?

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.

Where is the documentation?

Each package documents itself in its GitHub wiki, linked from that library page on this site alongside its source repository and its Packagist listing.