# InitPHP > 27 lightweight, standalone PHP libraries for database, routing, caching, encryption and sockets. MIT licensed, PSR compliant, installable with Composer. InitPHP is not a framework. There is no kernel to boot and no shared runtime: each of the 27 packages is installed from Packagist on its own, under the `initphp` vendor namespace, and works inside any Composer-based PHP application or framework. Every package is MIT licensed. - Site: https://initphp.org - Source: https://github.com/InitPHP - Packages: https://packagist.org/packages/initphp/ - License: MIT ## Database & Storage - [InitPHP Database](https://initphp.org/libraries/database/): Query builder, DBAL and active-record ORM for PHP 8.1+, with a server-side DataTables.js helper built in. Install: `composer require initphp/database`. Requires PHP 8.1+. - [InitPHP Cache](https://initphp.org/libraries/cache/): PSR-16 Simple Cache implementation for PHP 8 with File, PDO, Redis, Memcache(d) and WinCache handlers. Install: `composer require initphp/cache`. Requires PHP 8.0+. - [InitPHP Barbarian](https://initphp.org/libraries/barbarian/): PDO-based database migration runner for MySQL, SQLite and PostgreSQL with a lightweight CLI. Install: `composer require initphp/barbarian`. Requires PHP 8.1+. - [InitPHP Queue](https://initphp.org/libraries/queue/): Framework-less queue worker for PHP 8.2+ with URN routing, retries, dead-letter handling and PDO/Redis/RabbitMQ transports. Install: `composer require initphp/queue`. Requires PHP 8.2+. ## HTTP & Routing - [InitPHP Router](https://initphp.org/libraries/router/): Framework-agnostic PSR-7 HTTP router for PHP 8.1+ with route groups, middleware, named routes and route caching. Install: `composer require initphp/router`. Requires PHP 8.1+. - [InitPHP HTTP](https://initphp.org/libraries/http/): PSR-7, PSR-17 and PSR-18 HTTP messages, factories, cURL client and SAPI emitter for PHP 7.4+. Install: `composer require initphp/http`. Requires PHP 7.4+. - [InitPHP Upload](https://initphp.org/libraries/upload/): Validate and store uploaded files on local disk, FTP/FTPS or Amazon S3 through one adapter-based API. Install: `composer require initphp/upload`. Requires PHP 8.0+. - [InitPHP Views](https://initphp.org/libraries/views/): Adapter-based view rendering for PHP 8: plain PHP, Blade or Twig behind one interface. Install: `composer require initphp/views`. Requires PHP 8.0+. ## Security - [InitPHP Encryption](https://initphp.org/libraries/encryption/): Authenticated symmetric encryption for PHP 8.1+ on top of OpenSSL and libsodium, with a versioned ciphertext format. Install: `composer require initphp/encryption`. Requires PHP 8.1+. - [InitPHP Validation](https://initphp.org/libraries/validation/): Dependency-free data validation for PHP 8.1+ with a string rule DSL, custom rules and localized messages. Install: `composer require initphp/validation`. Requires PHP 8.1+. - [InitPHP Escaper](https://initphp.org/libraries/escaper/): OWASP-aligned, context-aware output escaper for PHP 7.4+ covering HTML, attribute, JavaScript, CSS and URL contexts. Install: `composer require initphp/escaper`. Requires PHP 7.4+. - [InitPHP Auth](https://initphp.org/libraries/auth/): PHP 8 auth library with session, signed-cookie and custom storage adapters plus a permission set. Install: `composer require initphp/auth`. Requires PHP 8.0+. - [InitPHP Input](https://initphp.org/libraries/input/): Read and validate GET, POST and JSON body input with configurable source priority for PHP 8.1+. Install: `composer require initphp/input`. Requires PHP 8.1+. ## Networking - [InitPHP Socket](https://initphp.org/libraries/socket/): TCP, UDP, TLS and SSL socket toolkit for PHP 8.1+ with a non-blocking, select-driven server loop. Install: `composer require initphp/socket`. Requires PHP 8.1+. - [InitPHP FiberLoops](https://initphp.org/libraries/fiberloops/): Minimal cooperative task scheduler for PHP 8.1+, built on native fibers — concurrency without threads. Install: `composer require initphp/fiber-loops`. Requires PHP 8.1+. - [InitPHP Mailer](https://initphp.org/libraries/mailer/): Send e-mail through mail(), sendmail or SMTP with attachments, inline images and MIME multipart bodies. Install: `composer require initphp/mailer`. Requires PHP 8.1+. ## Configuration - [InitPHP Config](https://initphp.org/libraries/config/): Configuration manager for PHP 8.1+ with dotted-path access, case-insensitive keys and multiple loaders. Install: `composer require initphp/config`. Requires PHP 8.1+. - [InitPHP DotENV](https://initphp.org/libraries/dotenv/): Environment variable loader for PHP 8 reading .env and .env.php with type coercion and ${VAR} interpolation. Install: `composer require initphp/dotenv`. Requires PHP 8.0+. - [InitPHP Container](https://initphp.org/libraries/container/): PSR-11 dependency injection container for PHP 8.1+ with autowiring, lazy factories and interface binding. Install: `composer require initphp/container`. Requires PHP 8.1+. - [InitPHP Sessions](https://initphp.org/libraries/sessions/): Framework-agnostic PHP 8.1+ session manager with File, Cookie, PDO, Redis, Memcached and MongoDB handlers. Install: `composer require initphp/sessions`. Requires PHP 8.1+. - [InitPHP Cookies](https://initphp.org/libraries/cookies/): Signed, tamper-evident cookie manager for PHP 7.4+ with HMAC-SHA256 integrity and per-key TTL. Install: `composer require initphp/cookies`. Requires PHP 7.4+. ## Utilities - [InitPHP Events](https://initphp.org/libraries/events/): Zero-dependency event and hook library for PHP 5.6+, bundling a static Events facade and an EventEmitter. Install: `composer require initphp/events`. Requires PHP 5.6+. - [InitPHP Translator](https://initphp.org/libraries/translator/): Dependency-free i18n translation for PHP 8.1+ with nested keys, placeholder interpolation and language fallback. Install: `composer require initphp/translator`. Requires PHP 8.1+. - [InitPHP Logger](https://initphp.org/libraries/logger/): Focused PSR-3 logger for PHP 8.0+ with File and PDO handlers and a built-in multiplexer. Install: `composer require initphp/logger`. Requires PHP 8.0+. - [InitPHP Console](https://initphp.org/libraries/console/): Helper library for writing console and CLI applications in PHP 7.2+. Install: `composer require initphp/console`. Requires PHP 7.2+. - [InitPHP ParameterBag](https://initphp.org/libraries/parameterbag/): Dependency-free container for flat and nested data with dot-notation access and ArrayAccess support. Install: `composer require initphp/parameterbag`. Requires PHP 7.4+. - [InitPHP PerformanceMeter](https://initphp.org/libraries/performancemeter/): Single-class PHP 8.1+ profiler measuring elapsed time and memory between named checkpoints. Install: `composer require initphp/performance-meter`. Requires PHP 8.1+. ## Optional - [Full package reference](https://initphp.org/llms-full.txt): every package with version, release date, PSR interfaces, required extensions and dependencies. - [Library catalogue](https://initphp.org/libraries/): the same list as HTML.