# InitPHP — full package reference > 27 lightweight, standalone PHP libraries for database, routing, caching, encryption and sockets. MIT licensed, PSR compliant, installable with Composer. Last package release: 2026-06-21. Packages: 27. License: MIT (https://opensource.org/licenses/MIT). Maintainer: Muhammet SAFAK (https://github.com/muhammetsafak). ## Frequently asked questions ### 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/, 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. ## Packages ### InitPHP Database 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: `composer require initphp/database` - Package: initphp/database - Version: 4.0.0 (released 2026-05-24) - Requires: PHP 8.1+ (^8.1) - Category: Database & Storage - License: MIT - PHP extensions: ext-pdo - Dependencies: initorm/orm - Page: https://initphp.org/libraries/database/ - Source: https://github.com/InitPHP/Database - Documentation: https://github.com/InitPHP/Database/wiki - Packagist: https://packagist.org/packages/initphp/database ### InitPHP Router 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: `composer require initphp/router` - Package: initphp/router - Version: 2.1.0 (released 2026-06-20) - Requires: PHP 8.1+ (>=8.1) - Category: HTTP & Routing - License: MIT - Implements: PSR-7, PSR-11 - Page: https://initphp.org/libraries/router/ - Source: https://github.com/InitPHP/Router - Documentation: https://github.com/InitPHP/Router/wiki - Packagist: https://packagist.org/packages/initphp/router ### InitPHP Socket 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: `composer require initphp/socket` - Package: initphp/socket - Version: 2.0.0 (released 2026-05-24) - Requires: PHP 8.1+ (^8.1) - Category: Networking - License: MIT - PHP extensions: ext-sockets, ext-openssl - Page: https://initphp.org/libraries/socket/ - Source: https://github.com/InitPHP/Socket - Documentation: https://github.com/InitPHP/Socket/wiki - Packagist: https://packagist.org/packages/initphp/socket ### InitPHP Events 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: `composer require initphp/events` - Package: initphp/events - Version: 2.1.0 (released 2026-05-25) - Requires: PHP 5.6+ (>=5.6) - Category: Utilities - License: MIT - Page: https://initphp.org/libraries/events/ - Source: https://github.com/InitPHP/Events - Documentation: https://github.com/InitPHP/Events/wiki - Packagist: https://packagist.org/packages/initphp/events ### InitPHP FiberLoops A minimal cooperative task scheduler (event loop) for PHP, built on native fibers. Run multiple tasks concurrently without threads or extensions. - Composer: `composer require initphp/fiber-loops` - Package: initphp/fiber-loops - Version: 2.0.0 (released 2026-06-10) - Requires: PHP 8.1+ (>=8.1) - Category: Networking - License: MIT - Page: https://initphp.org/libraries/fiberloops/ - Source: https://github.com/InitPHP/FiberLoops - Documentation: https://github.com/InitPHP/FiberLoops/wiki - Packagist: https://packagist.org/packages/initphp/fiber-loops ### InitPHP Cache PSR-16 (Simple Cache) implementation for PHP 8 with File, PDO, Redis, Memcache(d) and WinCache handlers behind one interface, so the storage backend can be swapped without touching call sites. - Composer: `composer require initphp/cache` - Package: initphp/cache - Version: 1.0.0 (released 2026-06-10) - Requires: PHP 8.0+ (>=8.0) - Category: Database & Storage - License: MIT - Implements: PSR-16 - Dependencies: psr/simple-cache - Page: https://initphp.org/libraries/cache/ - Source: https://github.com/InitPHP/Cache - Documentation: https://github.com/InitPHP/Cache/wiki - Packagist: https://packagist.org/packages/initphp/cache ### InitPHP Encryption Secure, modern symmetric encryption for PHP 8.1+ on top of OpenSSL and libsodium — authenticated by default, versioned ciphertext format, single exception type. - Composer: `composer require initphp/encryption` - Package: initphp/encryption - Version: 2.0.0 (released 2026-05-24) - Requires: PHP 8.1+ (^8.1) - Category: Security - License: MIT - Page: https://initphp.org/libraries/encryption/ - Source: https://github.com/InitPHP/Encryption - Documentation: https://github.com/InitPHP/Encryption/wiki - Packagist: https://packagist.org/packages/initphp/encryption ### InitPHP Validation Fast, dependency-free data validation for PHP 8.1+ — a string rule DSL, callable and custom rules, and localized error messages. - Composer: `composer require initphp/validation` - Package: initphp/validation - Version: 2.0.0 (released 2026-06-10) - Requires: PHP 8.1+ (>=8.1) - Category: Security - License: MIT - PHP extensions: ext-mbstring - Page: https://initphp.org/libraries/validation/ - Source: https://github.com/InitPHP/Validation - Documentation: https://github.com/InitPHP/Validation/wiki - Packagist: https://packagist.org/packages/initphp/validation ### InitPHP Translator 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: `composer require initphp/translator` - Package: initphp/translator - Version: 1.0.0 (released 2026-06-11) - Requires: PHP 8.1+ (>=8.1) - Category: Utilities - License: MIT - Page: https://initphp.org/libraries/translator/ - Source: https://github.com/InitPHP/Translator - Documentation: https://github.com/InitPHP/Translator/wiki - Packagist: https://packagist.org/packages/initphp/translator ### InitPHP Mailer Send e-mail via PHP's mail() function, sendmail or SMTP, with attachments, inline images and MIME multipart bodies. - Composer: `composer require initphp/mailer` - Package: initphp/mailer - Version: 2.0.0 (released 2026-06-10) - Requires: PHP 8.1+ (>=8.1) - Category: Networking - License: MIT - PHP extensions: ext-mbstring, ext-iconv, ext-fileinfo - Page: https://initphp.org/libraries/mailer/ - Source: https://github.com/InitPHP/Mailer - Documentation: https://github.com/InitPHP/Mailer/wiki - Packagist: https://packagist.org/packages/initphp/mailer ### InitPHP Logger Small, focused PSR-3 logger for PHP 8.0+ — File and PDO handlers with a built-in multiplexer for writing one log line to several destinations. - Composer: `composer require initphp/logger` - Package: initphp/logger - Version: 2.0.0 (released 2026-05-24) - Requires: PHP 8.0+ (>=8.0) - Category: Utilities - License: MIT - Implements: PSR-3 - Dependencies: psr/log - Page: https://initphp.org/libraries/logger/ - Source: https://github.com/InitPHP/Logger - Documentation: https://github.com/InitPHP/Logger/wiki - Packagist: https://packagist.org/packages/initphp/logger ### InitPHP HTTP Standards-compliant PSR-7, PSR-17 and PSR-18 HTTP messages, factories, cURL client, and SAPI response emitter for PHP 7.4+ (PSR-7 v1 and v2 compatible). - Composer: `composer require initphp/http` - Package: initphp/http - Version: 3.1.0 (released 2026-06-20) - Requires: PHP 7.4+ (>=7.4) - Category: HTTP & Routing - License: MIT - Implements: PSR-7, PSR-17, PSR-18 - PHP extensions: ext-json - Page: https://initphp.org/libraries/http/ - Source: https://github.com/InitPHP/HTTP - Documentation: https://github.com/InitPHP/HTTP/wiki - Packagist: https://packagist.org/packages/initphp/http ### InitPHP Config Advanced configuration manager for PHP with dotted-path access, case-insensitive keys, and array, file, directory and class loaders. - Composer: `composer require initphp/config` - Package: initphp/config - Version: 2.0.0 (released 2026-05-29) - Requires: PHP 8.1+ (^8.1) - Category: Configuration - License: MIT - Dependencies: initphp/parameterbag - Page: https://initphp.org/libraries/config/ - Source: https://github.com/InitPHP/Config - Documentation: https://github.com/InitPHP/Config/wiki - Packagist: https://packagist.org/packages/initphp/config ### InitPHP DotENV Environment variable loader for PHP 8 — reads .env and .env.php with type coercion and ${VAR} interpolation, so configuration stays out of version control. - Composer: `composer require initphp/dotenv` - Package: initphp/dotenv - Version: 3.1.0 (released 2026-06-21) - Requires: PHP 8.0+ (>=8.0) - Category: Configuration - License: MIT - Page: https://initphp.org/libraries/dotenv/ - Source: https://github.com/InitPHP/DotENV - Documentation: https://github.com/InitPHP/DotENV/wiki - Packagist: https://packagist.org/packages/initphp/dotenv ### InitPHP Container Lightweight PSR-11 container — autowiring, lazy factories and interface binding for PHP 8.1+. - Composer: `composer require initphp/container` - Package: initphp/container - Version: 1.0.0 (released 2026-05-29) - Requires: PHP 8.1+ (^8.1) - Category: Configuration - License: MIT - Implements: PSR-11 - Dependencies: psr/container - Page: https://initphp.org/libraries/container/ - Source: https://github.com/InitPHP/Container - Documentation: https://github.com/InitPHP/Container/wiki - Packagist: https://packagist.org/packages/initphp/container ### InitPHP Escaper Context-aware output escaper for PHP (HTML, attribute, JavaScript, CSS, URL) — OWASP-aligned, dependency-free, PHP 7.4+. - Composer: `composer require initphp/escaper` - Package: initphp/escaper - Version: 2.0.0 (released 2026-05-25) - Requires: PHP 7.4+ (>=7.4) - Category: Security - License: MIT - PHP extensions: ext-ctype, ext-mbstring - Page: https://initphp.org/libraries/escaper/ - Source: https://github.com/InitPHP/Escaper - Documentation: https://github.com/InitPHP/Escaper/wiki - Packagist: https://packagist.org/packages/initphp/escaper ### InitPHP Console A simple helper library that lets you write your console/CLI application with PHP, covering argument handling and formatted terminal output. - Composer: `composer require initphp/console` - Package: initphp/console - Version: 2.1.1 (released 2026-05-29) - Requires: PHP 7.2+ (>=7.2) - Category: Utilities - License: MIT - Page: https://initphp.org/libraries/console/ - Source: https://github.com/InitPHP/Console - Documentation: https://github.com/InitPHP/Console/wiki - Packagist: https://packagist.org/packages/initphp/console ### InitPHP Auth Lightweight PHP 8 auth library: session, signed-cookie, and custom storage adapters plus a case-insensitive permission set. - Composer: `composer require initphp/auth` - Package: initphp/auth - Version: 2.0.0 (released 2026-05-24) - Requires: PHP 8.0+ (^8.0) - Category: Security - License: MIT - PHP extensions: ext-json, ext-hash - Dependencies: initphp/parameterbag - Page: https://initphp.org/libraries/auth/ - Source: https://github.com/InitPHP/Auth - Documentation: https://github.com/InitPHP/Auth/wiki - Packagist: https://packagist.org/packages/initphp/auth ### InitPHP Sessions Framework-agnostic PHP session manager with pluggable save handlers — File, Cookie, PDO, Redis, Memcached and MongoDB. - Composer: `composer require initphp/sessions` - Package: initphp/sessions - Version: 4.0.0 (released 2026-05-29) - Requires: PHP 8.1+ (^8.1) - Category: Configuration - License: MIT - Page: https://initphp.org/libraries/sessions/ - Source: https://github.com/InitPHP/Sessions - Documentation: https://github.com/InitPHP/Sessions/wiki - Packagist: https://packagist.org/packages/initphp/sessions ### InitPHP Cookies A signed, tamper-evident cookie manager for PHP with HMAC-SHA256 integrity, per-key TTL, and hardened deserialization. - Composer: `composer require initphp/cookies` - Package: initphp/cookies - Version: 2.0.0 (released 2026-06-10) - Requires: PHP 7.4+ (^7.4 || ^8.0) - Category: Configuration - License: MIT - Dependencies: initphp/parameterbag - Page: https://initphp.org/libraries/cookies/ - Source: https://github.com/InitPHP/Cookies - Documentation: https://github.com/InitPHP/Cookies/wiki - Packagist: https://packagist.org/packages/initphp/cookies ### InitPHP ParameterBag A small, dependency-free PHP container for flat and nested configuration data with dot-notation access, ArrayAccess support, and optional case-insensitive keys. - Composer: `composer require initphp/parameterbag` - Package: initphp/parameterbag - Version: 2.0.0 (released 2026-05-24) - Requires: PHP 7.4+ (^7.4 || ^8.0) - Category: Utilities - License: MIT - Page: https://initphp.org/libraries/parameterbag/ - Source: https://github.com/InitPHP/ParameterBag - Documentation: https://github.com/InitPHP/ParameterBag/wiki - Packagist: https://packagist.org/packages/initphp/parameterbag ### InitPHP Input Read and validate GET, POST and JSON body input with configurable source priority, backed by InitPHP Validation for the rule layer. - Composer: `composer require initphp/input` - Package: initphp/input - Version: 2.0.0 (released 2026-06-10) - Requires: PHP 8.1+ (>=8.1) - Category: Security - License: MIT - PHP extensions: ext-json - Dependencies: initphp/parameterbag, initphp/validation - Page: https://initphp.org/libraries/input/ - Source: https://github.com/InitPHP/Input - Documentation: https://github.com/InitPHP/Input/wiki - Packagist: https://packagist.org/packages/initphp/input ### InitPHP PerformanceMeter 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. - Composer: `composer require initphp/performance-meter` - Package: initphp/performance-meter - Version: 2.0.0 (released 2026-05-25) - Requires: PHP 8.1+ (^8.1) - Category: Utilities - License: MIT - Page: https://initphp.org/libraries/performancemeter/ - Source: https://github.com/InitPHP/PerformanceMeter - Documentation: https://github.com/InitPHP/PerformanceMeter/wiki - Packagist: https://packagist.org/packages/initphp/performance-meter ### InitPHP Barbarian A small, simple database migration library for PHP — a PDO-based runner for MySQL, SQLite and PostgreSQL with a lightweight CLI. - Composer: `composer require initphp/barbarian` - Package: initphp/barbarian - Version: 2.0.0 (released 2026-06-11) - Requires: PHP 8.1+ (>=8.1) - Category: Database & Storage - License: MIT - PHP extensions: ext-pdo, ext-json - Dependencies: initphp/console - Page: https://initphp.org/libraries/barbarian/ - Source: https://github.com/InitPHP/Barbarian - Documentation: https://github.com/InitPHP/Barbarian/wiki - Packagist: https://packagist.org/packages/initphp/barbarian ### InitPHP Upload Validate and store uploaded files on local disk, FTP/FTPS or Amazon S3 through a single, adapter-based API. - Composer: `composer require initphp/upload` - Package: initphp/upload - Version: 2.0.0 (released 2026-06-08) - Requires: PHP 8.0+ (>=8.0) - Category: HTTP & Routing - License: MIT - PHP extensions: ext-fileinfo - Page: https://initphp.org/libraries/upload/ - Source: https://github.com/InitPHP/Upload - Documentation: https://github.com/InitPHP/Upload/wiki - Packagist: https://packagist.org/packages/initphp/upload ### InitPHP Views Small, adapter-based view rendering layer for PHP 8: render with plain PHP, Blade or Twig behind one interface. - Composer: `composer require initphp/views` - Package: initphp/views - Version: 2.0.0 (released 2026-06-11) - Requires: PHP 8.0+ (>=8.0) - Category: HTTP & Routing - License: MIT - Page: https://initphp.org/libraries/views/ - Source: https://github.com/InitPHP/Views - Documentation: https://github.com/InitPHP/Views/wiki - Packagist: https://packagist.org/packages/initphp/views ### InitPHP Queue The framework-less BabelQueue runtime for plain PHP — a polyglot queue worker with URN routing, retries and back-off, dead-letter handling and PDO, Redis and RabbitMQ transports. - Composer: `composer require initphp/queue` - Package: initphp/queue - Version: 2.1.0 (released 2026-06-21) - Requires: PHP 8.2+ (^8.2) - Category: Database & Storage - License: MIT - PHP extensions: ext-json - Dependencies: babelqueue/php-sdk - Page: https://initphp.org/libraries/queue/ - Source: https://github.com/InitPHP/Queue - Documentation: https://github.com/InitPHP/Queue/wiki - Packagist: https://packagist.org/packages/initphp/queue ## Archived packages These are published on Packagist but marked abandoned and are deliberately not listed on the site or recommended for new projects: initphp/cli-table, initphp/curl, initphp/event-emitter, initphp/http-client, initphp/http-factory, initphp/polyfill-php80, initphp/redis, initphp/redis-session-handler, initphp/var-dumper.