Your first time on this page? Allow me to give some explanations.
A curated list of amazingly awesome PHP libraries, resources and shiny things.
Here you can see meta information about this topic like the time we last updated this page, the original creator of the awesome list and a link to the original GitHub repository.
Thank you ziadoz & contributors
View Topic on GitHub:
Search for resources by name or description.
Simply type in what you are looking for and the results will be filtered on the fly.
Further filter the resources on this page by type (repository/other resource), number of stars on GitHub and time of last commit in months.
A Multi-Framework Composer Library Installer
PHP Extension installer
Dependency Management Extras
Easily parse your project's Composer configuration, and those of its dependencies, at runtime
Merge one or more additional composer.json files at Composer runtime
Provides a composer plugin for normalizing composer.json.
Simple patches plugin for Composer
A CLI tool to check whether a specific composer package uses imported symbols that aren't part of its direct composer dependencies
Show unused composer dependencies by scanning your code
composer parallel install plugin
Simple static Composer repository generator - For a full private Composer repo use Private Packagist
Simple composer script to manage phar files using project composer.json.
Yii 2: The Fast, Secure and Professional PHP Framework
Production-grade rapid controller development with built in love for API and Search
LaravelS is an out-of-the-box adapter between Swoole and Laravel/Lumen.
Meta package tying together all the key packages of the Symfony CMF project.
Content Management Systems (CMS)
Craft is a flexible, user-friendly CMS for creating custom digital experiences on the web and beyond.
Modern, Crazy Fast, Ridiculously Easy and Amazingly Powerful Flat-File CMS
The Action-Domain-Responder core for Radar.
Silly CLI micro-framework based on Symfony Console
Micro Framework Extras
Slim Framework 4 Skeleton Application
Slim Framework custom views
A Simple PHP Renderer for Slim 3 (or any other PSR-7 project)
A web router implementation for PHP.
Fast request router for PHP
A fast & flexible router
Pux is a fast PHP Router and includes out-of-box controller tools
Fast PSR-7 based routing and dispatch component including PSR-15 middleware, built on top of FastRoute.
Multi target HAML (HAML for PHP, Twig, <your language here>)
A Mustache implementation in PHP.
Static Site Generators
PHP's lightweight HTTP client
A super lightweight PSR-7 implementation
Requests for PHP is a humble HTTP request library. It simplifies how you interact with other sites and takes away all your worries.
Retrofit implementation in PHP. A REST client for PHP.
The HttpClient component provides powerful methods to fetch HTTP resources synchronously or asynchronously.
PSR HTTP Message implementations
Instrument headless chrome/chromium instances from PHP
Simple and fast HTML and XML parser
Get info from any web service or page
Goutte, a simple PHP Web Scraper
A browser testing and web crawling library for PHP and Symfony
A configurable and extensible PHP web spider
[DEPRECATED] Collection of PSR-7 middlewares
A PSR-15 server request handler.
PSR-7 middleware foundation for building and dispatching middleware pipelines
Public Suffix List based domain parsing implemented in PHP
Purl is a simple Object Oriented URL manipulation library for PHP 7.2+
Functions for making sense out of URIs in PHP
URI manipulation Library
CssToInlineStyles is a class that enables you to convert HTML-pages/files into HTML-pages/files with inline styles. This is very usefull when you're sending emails.
PHP library for parsing plain text email content.
Small PHP library to valid email addresses using a number of methods.
An IMAP library for PHP
Mautic: Open Source Marketing Automation Software.
The classic email sending library for PHP
Manage mailboxes, filter/get/delete emails in PHP (supports IMAP/POP3/NNTP)
Library for using online Email providers
The Mailer component helps sending emails
CSV data manipulation made easy in PHP
Abstraction for local and remote filesystems
PHP library that provides a filesystem abstraction layer − will be a feast for your files!
The Hoa\Mime library.
An object oriented PHP driver for FFMpeg binary
UnifiedArchive - an archive manager with a unified way for different formats. Supports all basic (listing, reading, extracting and creation) and specific features (compression level, password-protection). Bundled with console program for working with archives.
Dependency Injection System
Adapters for PHP framework containers to an interoperable interface
IoC Dependency Injector
Small but powerful dependency injection container
PSR-11 compatible Dependency Injection Container for PHP.
The DependencyInjection component allows you to standardize and centralize the way objects are constructed in your application.
Extract colors from an image like a human would do.
Wonderfully easy on-demand image manipulation library with an HTTP based API.
🌄 Perceptual image hashing for PHP
Image optimization / compression library. This library is able to optimize png, jpg and gif files in very easy and handy way. It uses optipng, pngquant, pngcrush, pngout, gifsicle, jpegoptim and jpegtran tools.
PHP Image Manipulation
ImageWorkshop is a PHP5.3+ library that helps you to manage images based on GD library
Expressive fixtures generator
The most powerful and flexible mocking framework for PHPUnit / Codeception.
The modern, simple and intuitive PHP unit testing framework.
Full-stack testing PHP framework
Faker is a PHP library that generates fake data for you
Mock HTTP requests on the server side in your PHP unit tests
PHP Mutation Testing library
PHP Test Framework for Freedom, Truth, and Justice
Mockery is a simple yet flexible PHP mock object framework for use in unit testing with PHPUnit, PHPSpec or any other testing framework. Its core goal is to offer a test double framework with a succinct API capable of clearly defining all possible object operations and interactions using a human readable Domain Specific Language (DSL).
Parallel testing for PHPUnit
Event driven BDD test framework for PHP
PHP Mocking Framework
BDD test framework for PHP
Mock built-in PHP functions (e.g. time(), exec() or rand())
A MySQL engine written in pure PHP
SpecBDD Framework for PHP
The PHP Unit Testing framework.
Highly opinionated mocking framework for PHP 5.3+
vfsStream is a stream wrapper for a virtual file system that may be helpful in unit tests to mock the real file system. It can be used with any unit test framework, like PHPUnit or SimpleTest.
JoliCi - Run your TravisCi builds locally
PHPCI is a free and open source continuous integration tool specifically designed for PHP.
GitHub action to set up PHP with extensions, php.ini configuration, coverage drivers, and various tools.
PHP 7.1 ready Smart and Simple Documentation for your PHP project
Daux.io is an documentation generator that uses a simple folder structure and Markdown files to create custom documentation on the fly. It helps you create great looking documentation in a developer friendly way.
Documentation Generator for PHP
Standards compliant HTML filter written in PHP
A php.ini scanner for best security practices
🤖 Id obfuscation based on Knuth's multiplicative hashing method for PHP.
PHPGGC is a library of PHP unserialize() payloads along with a tool to generate them, from command line or programmatically.
Simple Encryption in PHP.
An experimental object oriented SSH api in PHP
PHP 5.x support for random_bytes() and random_int()
A library for generating random numbers and strings
Automatic SQL injection and database takeover tool
TCrypto is a simple and flexible PHP 5.3+ in-memory key-value storage library
GenPhrase is a secure passphrase generator for PHP applications.
Compatibility with the password_* functions that ship with PHP 5.5
Validates passwords against PHP's password_hash function using PASSWORD_DEFAULT. Will rehash when needed, and will upgrade legacy passwords with the Upgrade decorator.
PHP Library to generate random passwords
A library for generating and validating passwords
Realistic PHP password strength estimate library based on Zxcvbn JS
Better Reflection is a reflection API that aims to improve and provide more features than PHP's built-in reflection API.
A PHP code-quality tool
A PHP parser written in PHP
Compares two source sets and determines the appropriate semantic versioning to apply.
PHP completion, refactoring, introspection tool and language server.
A tool for quickly measuring the size of a PHP project.
Analyze PHP code with one command
Tool helping us to analyze software projects
Instant Upgrades and Automated Refactoring of any PHP 5.3+ code
Micro PHP benchmark library
Very flexible git hook manager for php developers
PHP_CodeSniffer tokenizes PHP files and detects violations of a defined set of coding standards.
A tool to automatically fix PHP Coding Standards issues
PHPMD is a spin-off project of PHP Depend and aims to be a PHP equivalent of the well known Java tool PMD. PHPMD can be seen as an user friendly frontend application for the raw metrics stream measured by PHP Depend.
PHPCheckstyle is an open-source tool that helps PHP programmers adhere to certain coding conventions.
Copy/Paste Detector (CPD) for PHP code.
The Exakat Engine : smart static analysis for PHP
Keep your architecture clean.
A static php code analysis tool using the Graph Theory
Phan is a static analyzer for PHP. Phan prefers to avoid false-positives and attempts to prove incorrectness rather than correctness.
PHP Architecture Tester - Easy to use architectural testing tool for PHP
PHP Compatibility check for PHP_CodeSniffer
Static code analysis to find violations in a dependency graph
Beautiful and understandable static analysis tool for PHP
A static analyzer for PHP version migration
PHP Static Analysis Tool - discover bugs in your code without running it!
A static analysis tool for finding errors in PHP applications
sample code for several design patterns in PHP 8
Primitives for functional programming in PHP
Iteration primitives using generators
Scalable and durable all-purpose data import abstraction for publishing testable APIs and SDKs.
A simple stateless production rules engine for PHP 5.3+
Powerful implementation of the Specification pattern in PHP
Debugging and Profiling
Handle PHP errors, dump variables, execute PHP code remotely in Google Chrome
Kint - a powerful and modern PHP debugging tool.
Simple library that abstracts different metrics collectors. I find this necessary to have a consistent and simple metrics (functional) API that doesn't cause vendor lock-in.
PCOV - CodeCoverage compatible driver for PHP
PHP Debug Console
PHP Benchmarking framework
Low-overhead sampling profiler for PHP 7+
The VarDumper component provides mechanisms for walking through any arbitrary PHP variable. It provides a better dump() function that you can use instead of var_dump().
😎 Tracy: the addictive tool to ease debugging PHP code for cool developers. Friendly design, logging, profiler, advanced features like debugging AJAX calls or CLI support. You will love it.
PHP errors for cool kids
Xdebug — Step Debugger and Debugging Aid for PHP
XHProf is a function-level hierarchical profiler for PHP and has a simple HTML based user interface.
📦🚀 Fast, zero config application bundler with PHARs.
A PHP project/micro-package generator for PDS compliant projects or micro-packages.
RMT is a handy tool to help releasing new version of your software
Manage all your cron jobs without modifying crontab. Handles locking, logging, error emails, and more.
Modern task runner for PHP
The power of webpack, distilled for the rest of us.
A simple but powerful API for processing & compiling assets built around Webpack
List of all countries with names and ISO 3166-1 codes in all languages and data formats.
GeoJSON implementation for PHP
Geo-related tools PHP 7.3+ library built atop Geocoder and React libraries
Simple Yet Powerful Geo Library for PHP
Date and Time
A simple PHP API extension for DateTime.
A standalone DateTime library originally based off of Carbon
Parse, validate, manipulate, and display dates in PHP w/ i18n support. Inspired by moment.js
The easy PHP Library for calculating holidays
A non-blocking concurrency framework for PHP applications. 🐘
Infrastructure and testing helpers for creating CQRS and event sourced applications.
[READ-ONLY] The event dispatcher library for CakePHP. This repo is a split of the main code that can be found in https://github.com/cakephp/cakephp
Ça trompe énormément
Événement is a very simple event dispatching library for PHP.
Event package for your app and domain
The Hoa\Eventsource library.
The Hoa\Websocket library.
Asynchronous WebSocket client
PHP 7.4 EventStore Implementation
Golang's defer statement for PHP
Asynchronous WebSocket server
Event-driven, non-blocking I/O with PHP.
Reactive extensions for PHP
🚀 Coroutine-based concurrency library for PHP
An asynchronous event driven PHP socket framework. Supports HTTP, Websocket, SSL and other custom protocols. PHP>=5.3.
Sends your logs to files, sockets, inboxes, databases and various web services
PHP implementation of Fowler's Money pattern.
A money and currency library for PHP
A framework agnostic, multi-gateway payment processing library for PHP 5.6+
PHP 7+ Payment processing library. It offers everything you need to work with payments: Credit card & offsite purchasing, subscriptions, payouts etc. - provided by Forma-Pro
Shopware 5 Repository - For Shopware 6 visit https://github.com/shopware/platform
Currency exchange rates library
HTML to PDF converter for PHP
Pdf and graphic files generator library written in php
PHP library allowing thumbnail, snapshot or PDF generation from a url or a html page. Wrapper for wkhtmltopdf/wkhtmltoimage
Convert HTML to PDF using Webkit (QtWebKit)
A pure PHP library for reading and writing presentations documents
A pure PHP library for reading and writing word processing documents
A pure PHP library for reading and writing spreadsheet files
Read and write spreadsheet files (CSV, XLSX and ODS), in a fast and scalable way
A data mapper implementation for your persistence model in PHP.
SQL database access through PDO.
Independent query builders for MySQL, PostgreSQL, SQLite, and Microsoft SQL Server.
Baum is an implementation of the Nested Set pattern for Laravel's Eloquent ORM.
[READ-ONLY] A flexible, lightweight and powerful Object-Relational Mapper for PHP, implemented using the DataMapper pattern. This repo is a split of the main code that can be found in https://github.com/cakephp/cakephp
PHP DataMapper, ORM
Doctrine2 behavioral extensions, Translatable, Sluggable, Tree-NestedSet, Timestampable, Loggable, Sortable
[READ ONLY] Subtree split of the Illuminate Database component (see laravel/framework)
PHP Object Model Manager for Postgresql
🎩✨🌈 OOP Proxy wrappers/utilities - generates and manages proxies of your objects
A tool for creating configurable dumps of large MySQL-databases.
Spot v2.x DataMapper built on top of Doctrine's Database Abstraction Layer
php 5.3 Migration Manager
PHP Database Migrations for Everyone
Simple migrations system for php
Database migrations for PHP ala ActiveRecord Migrations with support for MySQL, Postgres, SQLite
MongoDB ODM. Part of @PHPMongoKit
A flexible and feature-complete Redis client for PHP.
Bernard is a multi-backend PHP library for creating background jobs for later processing.
Performant pure-PHP AMQP (RabbitMQ) sync/async (ReactPHP) library
PHP client for beanstalkd queue
The most widely used PHP client for RabbitMQ
PHP bindings for Tarantool Queue.
PHP Library that implements several messaging patterns for RabbitMQ
Message Queue, Job Queue, Broadcasting, WebSockets packages for PHP, Symfony, Laravel, Magento. DEVELOPMENT REPOSITORY - provided by Forma-Pro
Elastica is a PHP client for elasticsearch
Official PHP low-level client for Elasticsearch.
Command-Line Interface tools
A tiny REPL for PHP
Cilex a lightweight framework for creating PHP CLI scripts inspired by Silex
🖥 Build beautiful PHP CLI menus. Simple yet Powerful. Expressive DSL.
A powerful command line application framework for PHP. It's an extensible, flexible component, You can build your command-based application in seconds!
PHP's best friend for the terminal.
An Elegant CLI Library for PHP
CRON for PHP: Calculate the next or previous run date and determine if a CRON expression is due
A PHP library for command-line argument processing
An object-oriented option parser library for PHP, which supports type constraints, flag, multiple flag, multiple values, required value checking
The Hoa\Console library.
A REPL for PHP
Lovely PHP wrapper for using the command-line
Authentication and Authorization
Provides a unified interface to local and remote authentication systems.
Social (OAuth1\OAuth2\OpenID\OpenIDConnect) sign with PHP
A simple library to work with JSON Web Token and JSON Web Signature
OAuth 1 Client
Easy integration with OAuth 2.0 service providers.
Multi-provider authentication framework for PHP
Platform-Agnostic Security Tokens
PHP 5.3+ oAuth 1/2 Client Library
The most popular PHP library for use with the Twitter OAuth REST API.
Markup and CSS
A super fast, highly extensible markdown parser for PHP
Highly-extensible PHP Markdown parser which fully supports the CommonMark and GFM specs.
A lightweight lexical string parser for BBCode styled markup.
Extracts information about web pages, like youtube videos, twitter statuses or blog articles.
A Oembed consumer library, that gives you information about urls. It helps you replace urls to youtube or vimeo for example, with their html embed code. It has advanced features like offline support, responsive embeds and caching support.
A simple PHP library for handling Emoji
Convert HTML to Markdown with PHP
An HTML5 parser and serializer for PHP.
Better Markdown Parser in PHP
A Parser for CSS Files written in PHP. Allows extraction of CSS files into a data structure, manipulation of said structure and output as (optimized) CSS
Parser for Markdown and Markdown Extra derived from the original Markdown.pl by John Gruber.
Code highlighting with Shiki in PHP
The VObject library for PHP allows you to easily parse and manipulate iCalendar and vCard objects
👮 A PHP desktop/mobile user agent parser with support for Laravel, based on Mobiledetect
An ANSI to HTML5 converter
ColorJizz is a PHP library for manipulating and converting colors.
The Universal Device Detection library will parse any User Agent and detect the browser, operating system, device used (desktop, tablet, mobile, tv, cars, console, etc.), brand and model.
The Hoa\Ustring library.
"結巴"中文分詞：做最好的 PHP 中文分詞、中文斷詞組件。 / "Jieba" (Chinese for "to stutter") Chinese text segmentation: built to be the best PHP Chinese word segmentation module.
Mobile_Detect is a lightweight PHP class for detecting mobile devices (including tablets). It uses the User-Agent string combined with specific HTTP headers to detect the mobile environment.
Extensive, portable and performant handling of UTF-8 and grapheme clusters for PHP
🉑 Portable UTF-8 library - performance optimized (unicode) string functions for PHP.
Converts a string to a slug. Includes integrations for Symfony, Silex, Laravel, Zend Framework 2, Twig, Nette and Latte.
A lightweight php class for formatting sql statements. Handles automatic indentation and syntax highlighting.
Stringy - A PHP string manipulation library with multibyte support, performance optimized
A multi-language port of Browserscope's user agent parser.
A fast PHP slug generator and transliteration library that converts non-ascii characters for use in URLs.