A curated list of awesome PHP libraries, resources, and useful tools.
Please see CONTRIBUTING, CODE-OF-CONDUCT and COLLABORATING for details.
- Awesome PHP
- Composer Repositories
- Dependency Management
- Dependency Management Extras
- Frameworks
- Framework Extras
- Content Management Systems
- Components
- Micro Frameworks
- Micro Framework Extras
- Routers
- Templating
- Static Site Generators
- HTTP
- Scraping
- Middlewares
- URL
- Files
- Streams
- Dependency Injection
- Imagery
- Testing
- Continuous Integration
- Documentation
- Security
- Passwords
- Code Analysis
- Code Quality
- Static Analysis
- Architectural
- Debugging and Profiling
- Error Tracking and Monitoring Services
- Build Tools
- Task Runners
- Navigation
- Asset Management
- Geolocation
- Date and Time
- Event
- Logging
- E-commerce
- Office
- Database
- Migrations
- NoSQL
- Queue
- Search
- Command Line
- Authentication and Authorization
- Markup and CSS
- JSON
- Strings
- Numbers
- Filtering, Sanitizing and Validation
- API
- Caching and Locking
- Data Structure and Storage
- Notifications
- Deployment
- Internationalisation and Localisation
- Serverless
- Configuration
- LLMs
- Third Party APIs
- Extensions
- Miscellaneous
- Software
- Resources
Composer Repositories.
- 🌎 Firegento - Magento Module Composer Repository.
- 🌎 Packagist - The PHP Package Repository.
- 🌎 Packalyst - The Laravel package repository.
- 🌎 Private Packagist - Composer package archive as a service for PHP.
- 🌎 WordPress Packagist - Manage your plugins with Composer.
Libraries for dependency and package management.
- 🌎 Composer - A package and dependency manager.
1441⭐401🍴Composer Installers) - A multi-framework Composer library installer.- 🌎 Phive - A PHAR manager.
1652⭐87🍴Pickle) - A PHP extension installer.1919⭐66🍴Pie) - The official PHP installer for extensions.
Extras related to dependency management.
1013⭐170🍴Composer Merge Plugin) - A composer plugin to merge severalcomposer.jsonfiles.1114⭐36🍴Composer Normalize) - A plugin for normalizingcomposer.jsonfiles.1715⭐259🍴Composer Patches) - A plugin for Composer to apply patches.23⭐2🍴Composer Prefer Lowest Validator) - A plugin to check if minimum dependencies can be installed and tested.1005⭐79🍴Composer Require Checker) - CLI tool to analyze composer dependencies and verify that no unknown symbols are used in the sources of a package.1685⭐57🍴Composer Unused) - A CLI Tool to scan for unused composer packages.- 🌎 Repman - A private PHP package repository manager and Packagist proxy.
3288⭐531🍴Satis) - A static Composer repository generator.
Web development frameworks.
- 🌎 CakePHP - A rapid application development framework.
- 🌎 CodeIgniter - A powerful PHP framework with a very small footprint.
- 🌎 Ecotone - A Service Bus for PHP based on architectural principles of DDD CQRS and Event Sourcing.
- 🌎 Laminas - A framework comprised of individual components (previously Zend Framework).
- 🌎 Laravel - A web application framework with expressive, elegant syntax.
- 🌎 Nette - A web framework comprised of mature components.
- 🌎 Phalcon - A framework implemented as a C extension.
- 🌎 Spiral - A high-performance PHP/Go framework.
- 🌎 Symfony - A set of reusable components and a web framework.
2249⭐176🍴Tempest) - A framework that gets out of your way.?⭐?🍴Yii2) - A fast, secure, and efficient web framework.
Extras related to web development frameworks.
377⭐140🍴CakePHP CRUD) - A Rapid Application Development (RAD) plugin for CakePHP.- 🌎 Filament PHP - A powerful open source UI framework for Laravel.
- 🌎 Inertia.js - An adapter for building single-page applications using server-side routing and controllers, without a separate API.
3882⭐465🍴LaravelS) - An out-of-the-box adapter between Laravel/Lumen and Swoole.- 🌎 Livewire - Powerful, dynamic, front-end UIs without leaving PHP.
Tools for managing digital content.
- 🌎 Backdrop - A CMS targeting small-to-medium-sized business and non-profits (a fork of Drupal).
- 🌎 Concrete5 - A CMS targeting users with a minimum of technical skills.
3584⭐704🍴CraftCMS) - A flexible, user-friendly CMS for creating custom digital experiences on the web and beyond.- 🌎 Drupal - An enterprise level CMS.
15565⭐1413🍴Grav) - A modern flat-file CMS.- 🌎 Joomla - Another leading CMS.
- 🌎 Kirby - A flat-file CMS that adapts to any project.
12151⭐9362🍴Magento) - A widely used open-source e-commerce platform.- 🌎 Moodle - An open-source learning platform.
- 🌎 OctoberCMS - A CMS built on Laravel.
925⭐454🍴OpenMage) - Fork of EoL Magento 1 e-commerce platform.- 🌎 Pico CMS - A lightweight flat-file CMS.
- 🌎 Silverstripe - A simple, flexible, and secure CMS.
- 🌎 Statamic - A flat-file and Git-based CMS built on Laravel.
- 🌎 Sulu - A user- and developer-friendly CMS built on the Symfony Framework.
- 🌎 TYPO3 - An enterprise level CMS.
- 🌎 WinterCMS - A community-maintained fork of OctoberCMS built on Laravel.
21257⭐12948🍴WordPress) - A blogging platform and CMS.
Standalone components from web development frameworks and development groups.
- 🌎 Aura - Independent components, fully decoupled from each other and from any framework.
- 🌎 CakePHP Plugins - A directory of CakePHP plugins.
- 🌎 Laminas Components - The components that make the Laminas Framework.
- Laravel Components - The Laravel Framework components.
- 🌎 League of Extraordinary Packages - A PHP package development group.
- 🌎 Spatie Open Source - A collection of open-source PHP and Laravel packages.
- 🌎 Symfony Packages - Decoupled libraries for PHP applications.
Micro frameworks and routers.
- 🌎 Laravel Zero - A micro-framework for console applications.
- 🌎 Mezzio - A micro-framework by Laminas.
1084⭐57🍴Minicli) - Minimalist, dependency-free framework for building CLI-centric PHP applications.934⭐52🍴Silly) - A micro-framework for CLI applications.- 🌎 Slim - Another simple micro framework.
Extras related to micro frameworks and routers.
1621⭐472🍴Slim Skeleton) - A skeleton for Slim.275⭐61🍴Slim PHP View) - A simple PHP renderer for Slim.
Libraries for handling application routing.
501⭐76🍴Aura.Router) - A full-featured routing library.5271⭐451🍴Fast Route) - A fast routing library.2660⭐286🍴Klein) - A flexible router.669⭐128🍴Route) - A routing library built on top of Fast Route.
Libraries and tools for templating and lexing.
- 🌎 Latte - The safest and truly intuitive templates for PHP.
359⭐54🍴MtHaml) - A PHP implementation of the HAML template language.3286⭐436🍴Mustache) - A PHP implementation of the Mustache template language.- 🌎 PHPTAL - A PHP implementation of the 🌎 TAL templating language.
- 🌎 Plates - A native PHP templating library.
- 🌎 Smarty - A template engine to complement PHP.
- 🌎 Twig - A comprehensive templating language.
Tools for pre-processing content to generate web pages.
- 🌎 Cecil - A simple and powerful content-driven static site generator.
- 🌎 Couscous - A tool for converting Markdown documentation into websites.
- 🌎 Jigsaw - Simple static sites with Laravel's Blade.
- 🌎 Sculpin - A tool that converts Markdown and Twig into static HTML.
Libraries for working with HTTP.
1919⭐250🍴Buzz) - Another HTTP client.23453⭐2390🍴Guzzle) - A comprehensive HTTP client.- 🌎 HTTPlug - An HTTP client abstraction without binding to a specific implementation.
1276⭐79🍴Nyholm PSR-7) - A super lightweight PSR-7 implementation. Very strict and very fast.- 🌎 PHP VCR - A library for recording and replaying HTTP requests.
3577⭐502🍴Requests) - A simple HTTP library.155⭐23🍴Retrofit) - A library to ease creation of REST API clients.2419⭐125🍴Saloon) - A framework for building beautiful API integrations and SDKs.2040⭐52🍴Symfony HTTP Client) - A component to fetch HTTP resources synchronously or asynchronously.550⭐78🍴Laminas Diactoros) - PSR-7 HTTP Message implementation.
Libraries for scraping websites and detecting crawlers.
2669⭐318🍴Chrome PHP) - Instrument headless Chrome/Chromium instances from PHP.2370⭐279🍴CrawlerDetect) - A PHP class for detecting bots/crawlers/spiders via the user agent.2201⭐200🍴DiDOM) - A super-fast HTML scrapper and parser.2143⭐320🍴Embed) - An information extractor from any web service or page.1346⭐231🍴PHP Spider) - A configurable and extensible PHP web spider.3069⭐231🍴Symfony Panther) - A browser testing and web crawling library for PHP and Symfony.
Libraries for building application using middlewares.
411⭐14🍴PSR-15 Middlewares) - Inspiring collection of handy middlewares.- Stack - A library of stackable middleware for Symfony.
58⭐12🍴Laminas Stratigility) - Middleware for PHP built on top of PSR-7.
Libraries for parsing URLs.
1239⭐126🍴PHP Domain Parser) - A domain suffix parser library.295⭐22🍴sabre/uri) - A functional URI manipulation library.1133⭐71🍴Uri) - Another URL manipulation library.
Libraries for sending and parsing email.
5832⭐190🍴CssToInlineStyles) - A library to inline CSS in email templates.920⭐254🍴ddeboer/imap) - Object-oriented, fully tested PHP IMAP library.650⭐81🍴Email Reply Parser) - An email reply parser library.507⭐155🍴Fetch) - An IMAP library.10124⭐3366🍴Mautic) - Email marketing automation.22244⭐9822🍴PHPMailer) - Another mailer solution.294⭐30🍴Stampie) - A library for email services such as 🌎 SendGrid, 🌎 PostMark, 🌎 MailGun and 🌎 MailChimp.1600⭐49🍴Symfony Mailer) - A powerful library for creating and sending emails.
Libraries for file manipulation and MIME type detection.
3481⭐348🍴CSV) - A CSV data manipulation library.13577⭐855🍴Flysystem) - Abstraction for local and remote filesystems.2468⭐353🍴Gaufrette) - A filesystem abstraction layer.?⭐?🍴PHP FFmpeg) - A wrapper for the 🌎 FFmpeg video library.282⭐24🍴UnifiedArchive) - A unified reader and writer of compressed archives.60⭐3🍴Parquet) - PHP implementation of Parquet file format.
Libraries for working with streams.
- 🌎 ByteStream - An asynchronous stream abstraction.
Libraries that implement the dependency injection design pattern.
353⭐63🍴Aura.Di) - A serializable dependency injection container with constructor and setter injection, interface and trait awareness, configuration inheritance, and much more.220⭐17🍴Acclimate) - A common interface to dependency injection containers and service locators.724⭐63🍴Auryn) - A recursive dependency injector.868⭐105🍴Container) - Another flexible dependency injection container.140⭐16🍴Disco) - A PSR-11 compatible, annotation-based dependency injection container.- 🌎 PHP-DI - A dependency injection container that supports autowiring.
2667⭐302🍴Pimple) - A tiny dependency injection container.4171⭐91🍴Symfony DI) - A dependency injection container component.
Libraries for manipulating images.
1322⭐156🍴Color Extractor) - A library for extracting colours from images.2637⭐206🍴Glide) - An on-demand image manipulation library.2058⭐174🍴Image Hash) - A library for generating perceptual image hashes.915⭐140🍴Image Optimizer) - A library for optimizing images.- 🌎 Imagine - An image manipulation library.
14351⭐1490🍴Intervention Image) - Another image manipulation library.854⭐186🍴PHP Image Workshop) - Another image manipulation library.?⭐?🍴PHP QR Code) - QR Code generator and reader.
Libraries for testing codebases and generating test data.
2541⭐328🍴Alice) - An expressive fixture generation library.- 🌎 Behat - A behaviour driven development (BDD) testing framework.
4856⭐1282🍴Codeception) - A full stack testing framework.3984⭐421🍴Faker) - A fake data generator library.797⭐112🍴Foundry) - A fixture factory generation library for Doctrine.2222⭐186🍴Infection) - An AST-based PHP Mutation testing framework.1148⭐70🍴Kahlan) - Full stack Unit/BDD testing framework with built-in stub, mock and code-coverage support.- 🌎 Mink - Web acceptance testing.
10725⭐466🍴Mockery) - A mock object library for testing.486⭐73🍴Nette Tester) - A productive and enjoyable parallel unit testing framework.2481⭐253🍴ParaTest) - A parallel testing library for PHPUnit.- 🌎 Pest - A testing framework with a focus on simplicity.
476⭐86🍴Phake) - Another mock object library for testing.370⭐20🍴PHP-Mock) - A mock library for built-in PHP functions (e.g. time()).562⭐49🍴PHP MySQL Engine) - A MySQL engine written in pure PHP.1904⭐287🍴PHPSpec) - A design by specification unit testing library.- 🌎 PHPT - A test tool used by PHP itself.
20038⭐2224🍴PHPUnit) - A unit testing framework.?⭐?🍴PHPUnit Polyfills) - Simplifies running PHPUnit tests on multiple PHPUnit versions.8481⭐246🍴Prophecy) - A highly opinionated mocking framework.1436⭐104🍴VFS Stream) - A virtual filesystem stream wrapper for testing.
Libraries and applications for continuous integration.
- 🌎 CircleCI - A continuous integration platform.
- 🌎 GitLab CI - A continuous integration platform.
- 🌎 Jenkins - A continuous integration platform with 🌎 PHP support.
- 🌎 SemaphoreCI - A continuous integration platform for open-source and private projects.
- 🌎 Travis CI - A continuous integration platform.
3240⭐413🍴Setup PHP) - A GitHub Action for PHP.
Libraries for generating project documentation.
2167⭐307🍴APIGen) - Another API documentation generator.827⭐191🍴daux.io) - A documentation generator that uses Markdown files.- 🌎 phpDocumentor - A documentation generator.
2141⭐201🍴Scramble) - Automatically generates OpenAPI documentation from your code without annotations.5301⭐939🍴zircote/swagger-php) - Generate OpenAPI documentation for your RESTful API.
Libraries for generating secure random numbers, encrypting data and scanning and testing for vulnerabilities.
713⭐117🍴AntiXSS) - A library that tries to preventing Cross-Site Scripting (XSS) attacks by blacklisting.- 🌎 Halite - A simple library for encryption using
13804⭐1885🍴libsodium). 1274⭐75🍴Optimus) - Id obfuscation based on Knuth's multiplicative hashing method.- 🌎 OWASP - Explore the world of cyber security.
3850⭐557🍴PHPGGC) - A library of PHP unserializable payloads along with a tool to generate them.3865⭐308🍴PHP Encryption) - Secure PHP Encryption Library.5576⭐908🍴PHPSecLib) - A pure PHP secure communications library.2910⭐111🍴Roave Security Advisories) - This package ensures that your application doesn't have installed dependencies with known security vulnerabilities.550⭐47🍴Secure Headers) - A package that adds security related headers to HTTP response.37887⭐6312🍴SQLMap) - An automatic SQL injection and database takeover tool.15406⭐2591🍴Zap) - An integrated penetration testing tool for web applications.
Libraries and tools for working with and storing passwords.
115⭐9🍴GenPhrase) - A library for generating secure random passphrases.142⭐16🍴Password Validator) - A library for validating and upgrading password hashes.306⭐36🍴Password-Generator) - PHP library to generate random passwords.- 🌎 phpass - A portable password hashing framework.
873⭐114🍴Zxcvbn PHP) - A realistic PHP password strength estimate library based on Zxcvbn JS.
Libraries and tools for analysing, parsing and manipulating codebases.
1246⭐137🍴Better Reflection) - An AST-based reflection library that allows analysis and manipulation of code.373⭐27🍴Bladestan) - A PHPStan extension for static analysis of Blade templates.- 🌎 Code Climate - An automated code review.
75⭐18🍴Editorconfig-Checker) - A command line utility which verifies that your files implement your.editorconfigrules.4304⭐448🍴GrumPHP) - A PHP code-quality tool.- 🌎 PHP AST Viewer - A tool for viewing the Abstract Syntax Tree of PHP code.
585⭐47🍴PHP Magic Number Detector) - A library that detects magic numbers in code.17449⭐1127🍴PHP Parser) - A PHP parser written in PHP.436⭐28🍴PHP Semantic Versioning Checker) - A command line utility that compares two source sets and determines the appropriate semantic versioning to apply.1899⭐160🍴Phpactor) - PHP completion, refactoring and introspection tool.564⭐59🍴PHPQA) - A tool for running QA tools (phploc, phpcpd, phpcs, pdepend, phpmd, phpmetrics).10361⭐741🍴Rector) - A tool to upgrade and refactor code.- 🌎 Scrutinizer - A web tool to
439⭐50🍴scrutinise PHP code). 564⭐70🍴UBench) - A simple micro-benchmark library.
Libraries for managing code quality, formatting and linting.
1114⭐88🍴CaptainHook) - An easy-to-use and flexible Git hook library.3137⭐187🍴Laravel Pint) - A coding standards fixer library for Laravel.1531⭐112🍴PHP CodeSniffer) - A library that detects and can auto-fix PHP, CSS and JS coding standard violations.13543⭐1634🍴PHP CS Fixer) - A coding standards fixer library.- 🌎 PHP CS Fixer Configurator - A web application to help configure PHP CS Fixer rule sets.
2440⭐352🍴PHP Mess Detector) - A library that scans code for bugs, sub-optimal code, unused parameters and more.166⭐32🍴PHPCheckstyle) - A tool to help adhere to certain coding conventions.
Libraries for performing static analysis of PHP code.
492⭐26🍴Dead Code Detector) - A PHPStan extension for finding unused PHP code.2974⭐154🍴Deptrac) - A static analysis tool for enforcing dependency rules between architectural layers.380⭐42🍴Exakat) - A static analysis engine for PHP.6449⭐495🍴Larastan) - A PHPStan wrapper for Laravel that adds static analysis to Laravel projects.3309⭐167🍴Mago) - A toolchain for PHP that aims to improve the developer experience.5620⭐369🍴phan) - A static analyzer based on PHP 7+ and the php-ast extension.1270⭐62🍴PHP Architecture Tester) - Easy-to-use architecture testing tool for PHP.2295⭐204🍴PHPCompatibility) - A PHP compatibility checker for PHP CodeSniffer.1528⭐74🍴PHPDoc Parser) - Next-gen phpDoc parser with support for intersection types and generics.2600⭐260🍴PHP Metrics) - A static metric library.14032⭐954🍴PHPStan) - A PHP Static Analysis Tool.5867⭐700🍴Psalm) - A static analysis tool for finding errors in PHP applications.
Libraries related to design patterns, programming approaches and ways to organize code.
22186⭐4519🍴Design Patterns PHP) - A repository of software patterns implemented in PHP.1349⭐185🍴Finite) - A simple PHP finite state machine.1988⭐206🍴Functional PHP) - A functional programming library.1144⭐70🍴Iter) - A library that provides iteration primitives using generators.151⭐12🍴IterTools PHP) - A library that provides functionality for working with iterable entities (similar to itertools library in Python).1000⭐74🍴Pipeline) - A pipeline pattern implementation.613⭐25🍴Porter) - Data import abstraction library for consuming Web APIs and other data sources.877⭐95🍴RulerZ) - A powerful rule engine and implementation of the Specification pattern.
Libraries and tools for debugging errors and profiling code.
- 🌎 APM - Monitoring extension collecting errors and statistics into SQLite/MySQL/StatsD.
1335⭐279🍴Barbushin PHP Console) - Another web debugging console using Google Chrome.2819⭐286🍴Kint) - A debugging and profiling tool.1269⭐51🍴LaraDumps) - A debugging tool for Laravel with a dedicated desktop application.323⭐37🍴Metrics) - A simple metrics API library.786⭐38🍴PCOV) - A self-contained code coverage compatible driver.524⭐91🍴PHP Console) - A web debugging console.- 🌎 PHP Debug Bar - A debugging toolbar.
2013⭐134🍴PHPBench) - A benchmarking framework.1499⭐69🍴PHPSpy) - A low-overhead sampling profiler.7437⭐101🍴Symfony VarDumper) - A variable dumper component.1832⭐218🍴Tracy) - A simple error detection, logging and time measuring library.274⭐16🍴Trap) - An extended variable dumper with a web interface and IDE plugin.13239⭐600🍴Whoops) - A pretty error-handling library.3404⭐599🍴xDebug) - A debug and profile tool for PHP.2599⭐905🍴XHProf) - A profiling tool originally developed by Facebook.- 🌎 Z-Ray - A debug and profile tool for Zend Server.
Self-hosted or cloud-based application performance monitoring & error tracking tools
- 🌎 Blackfire - A low-overhead code profiler.
- 🌎 Buggregator - A debug server that aggregates var-dumps, profiling data, emails, logs and Sentry events.
- 🌎 BugSnag - Error and Real User Monitoring.
- 🌎 Honeybadger - Error Tracking & Application Monitoring for Developers.
- 🌎 Rollbar - Error Logging & Tracking Service for Software Teams.
- 🌎 Sentry - Application Performance Monitoring & Error Tracking Software.
- 🌎 Tideways - Monitoring and profiling tool.
Project build and automation tools.
1314⭐110🍴Box) - A utility to build PHAR files.420⭐6🍴PHPacker) - A PHAR builder that compiles PHP apps to standalone executables.- 🌎 Phing - A PHP project build system inspired by Apache Ant.
459⭐46🍴RMT) - A library for versioning and releasing software.
Libraries for automating and running tasks.
1048⭐150🍴Jobby) - A PHP cron job manager without modifying crontab.2708⭐308🍴Robo) - A PHP task runner with object-oriented configurations.
Tools for building navigation structures.
1398⭐190🍴KnpMenu) - A menu library.758⭐102🍴Menu) - A flexible menu library with a fluent interface.
Tools for managing, compressing and minifying website assets.
764⭐147🍴JShrink) - A JavaScript minifier library.5225⭐801🍴Laravel Mix) - An elegant wrapper around Webpack for the 80% use case.3163⭐12🍴Symfony Asset) - Manages URL generation and versioning of web assets.2229⭐201🍴Symfony Encore) - A simple but powerful API for processing and compiling assets built around Webpack.
Libraries for geocoding addresses and working with latitudes and longitudes.
5246⭐1527🍴Country List) - A list of all countries with names and ISO 3166-1 codes.- 🌎 GeoCoder - A geocoding library.
306⭐47🍴GeoJSON) - A GeoJSON implementation.1406⭐128🍴GeoTools) - A library of geo-related tools.1611⭐199🍴PHPGeo) - A simple geo library.
Libraries for working with dates and times.
319⭐14🍴Business Time) - A Carbon extension for handling business hours and working days.467⭐68🍴CalendR) - A calendar management library.16614⭐1285🍴Carbon) - A simple DateTime API extension.1362⭐70🍴Chronos) - A DateTime API extension supporting both mutable and immutable date/time.967⭐151🍴Moment.php) - Moment.js inspired PHP DateTime handler with i18n support.702⭐92🍴PHP RRule) - A library for working with recurring dates and times based on the iCalendar RRule spec.1096⭐167🍴Yasumi) - A library to help you calculate the dates and names of holidays.
Libraries that are event-driven or implement non-blocking event loops.
4430⭐258🍴Amp) - An event-driven non-blocking I/O library.1510⭐171🍴Broadway) - An event source and CQRS library.23⭐3🍴CakePHP Event) - An event dispatcher library.137⭐41🍴Elephant.io) - Yet another web socket library.1355⭐74🍴Evenement) - An event dispatcher library.1567⭐49🍴Event) - An event library with a focus on domain events.564⭐33🍴Fast CGI Client) - A client to make synchronous/asynchronous requests through php-fpm socket.- 🌎 FrankenPHP - A modern PHP app server written in Go.
616⭐97🍴Pawl) - An asynchronous web socket client.548⭐75🍴Prooph Event Store) - An event source component to persist event messages.309⭐18🍴PHP Defer) - Golang's defer statement for PHP.6434⭐791🍴Ratchet) - A web socket library.9091⭐714🍴ReactPHP) - An event-driven non-blocking I/O library.1734⭐141🍴RxPHP) - A reactive extension library.18896⭐3147🍴Swoole) - An event-driven asynchronous and concurrent networking communication framework with high performance for PHP written in C.11551⭐2255🍴Workerman) - An event-driven non-blocking I/O library.
Libraries for generating and working with log files.
21397⭐1904🍴Monolog) - A comprehensive logger.
Libraries and applications for taking payments and building online e-commerce stores.
4852⭐444🍴Money) - A PHP implementation of Fowler's money pattern.1918⭐114🍴Brick Money) - A money library for PHP, with support for contexts, cash roundings, currency conversion.6055⭐931🍴OmniPay) - A framework agnostic multi-gateway payment processing library.1924⭐346🍴Payum) - A payment abstraction library.?⭐?🍴Shopsys Framework) - An open source e-commerce platform for in-house development teams.3386⭐1190🍴Shopware) - Highly customizable e-commerce software.1337⭐146🍴Swap) - An exchange rates library.- 🌎 Sylius - An open source e-commerce solution.
Libraries and software for working with PDF files.
5236⭐509🍴Browsershot) - Convert HTML to an image, PDF or string.11154⭐1829🍴Dompdf) - A HTML to PDF converter.387⭐20🍴Gotenberg) - A PHP client for interacting with Gotenberg.4474⭐437🍴Snappy) - A PDF and image generation library.- 🌎 TCPDF - An open source PHP class for generating PDF documents.
Libraries for working with office suite documents.
1372⭐543🍴PHPPowerPoint) - A library for working with Microsoft PowerPoint Presentations.7576⭐2729🍴PHPWord) - A library for working with Microsoft Word documents.13950⭐3618🍴PHPSpreadsheet) - A pure PHP library for reading and writing spreadsheet files (successor of PHPExcel).1193⭐142🍴OpenSpout) - A community driven fork ofbox/spout, a PHP library to read and write spreadsheet files (CSV, XLSX and ODS), in a fast and scalable way.
Libraries for interacting with databases using object-relational mapping (ORM) or datamapping techniques.
429⭐21🍴Atlas.Orm) - A data mapper implementation for your persistence model in PHP.565⭐103🍴Aura.Sql) - Provides an extension to the native PDO along with a profiler and connection locator.457⭐87🍴Aura.SqlQuery) - Independent query builders for MySQL, PostgreSQL, SQLite, and Microsoft SQL Server.2226⭐451🍴Baum) - A nested set implementation for Eloquent.150⭐15🍴CakePHP ORM) - Object-Relational Mapper, implemented using the DataMapper pattern.1330⭐84🍴Cycle ORM) - PHP DataMapper, ORM.4145⭐1253🍴Doctrine Extensions) - A collection of Doctrine behavioural extensions.- 🌎 Doctrine - A comprehensive DBAL and ORM.
2769⭐608🍴Laravel Eloquent) - A simple ORM.4964⭐190🍴ProxyManager) - A set of utilities to generate proxy objects for data mappers.- 🌎 RedBean - A lightweight, configuration-less ORM.
193⭐28🍴Slimdump) - An easy dumper tool for MySQL.598⭐97🍴Spot2) - A MySQL datamapper ORM.
Libraries to help manage database schemas and migrations.
- 🌎 Doctrine Migrations - A migration library for Doctrine.
4539⭐884🍴Phinx) - Another database migration library.565⭐92🍴PHPMig) - Another migration management library.501⭐96🍴Ruckusing) - Database migrations for PHP ala ActiveRecord Migrations with support for MySQL, Postgres, SQLite.
Libraries for working with "NoSQL" backends.
922⭐216🍴MongoDB) - MongoDB PHP Driver.1614⭐263🍴MongoDB PHP Library) - The official high-level MongoDB PHP library built on top of the MongoDB PHP Driver.7764⭐993🍴Predis) - A feature-complete Redis library.
Libraries for working with event and task queues.
746⭐107🍴BunnyPHP) - A performant pure-PHP AMQP (RabbitMQ) sync and also async (ReactPHP) library.1924⭐281🍴Pheanstalk) - A Beanstalkd client library.4600⭐1025🍴PHP AMQP) - A pure PHP AMQP library.65⭐7🍴Tarantool Queue) - PHP bindings for Tarantool Queue.277⭐62🍴Thumper) - A RabbitMQ pattern library.2218⭐431🍴Enqueue) - A message queue package for PHP that supports RabbitMQ, AMQP, STOMP, Amazon SQS, Redis and Doctrine transports.
Libraries and software for indexing and performing search queries on data.
2274⭐730🍴Elastica) - A client library for ElasticSearch.5340⭐968🍴ElasticSearch PHP) - The official client library for 🌎 ElasticSearch.- 🌎 Solarium - A client library for 🌎 Solr.
- 🌎 SphinxQL Query Builder - A query library for the 🌎 Sphinx and 🌎 Manticore search engines.
Libraries related to the command line.
102⭐20🍴Aura.Cli) - Provides the equivalent of request ( Context ) and response ( Stdio ) objects for the command line interface, including Getopt support, and an independent Help object for describing commands.1947⭐106🍴CLI Menu) - A library for building CLI menus.435⭐52🍴CLIFramework) - A command-line framework that supports zsh/bash completion generation, subcommands and option constraints. It also powers phpbrew.1892⭐124🍴CLImate) - A library for outputting colors and special formatting.803⭐81🍴Commando) - Another simple command line opt parser.4865⭐340🍴Cron Expression) - A library to calculate cron run dates.344⭐63🍴GetOpt) - A command line opt parser.149⭐23🍴GetOptionKit) - Another command line opt parser.9830⭐318🍴PsySH) - Another PHP REPL.739⭐55🍴ShellWrap) - A simple command line wrapper library.
Libraries for implementing user authentication and authorization.
135⭐29🍴Aura.Auth) - Provides authentication functionality and session tracking using various adapters.565⭐108🍴SocialConnect Auth) - An open source social sign (OAuth1\OAuth2\OpenID\OpenIDConnect).7480⭐598🍴Json Web Token) - Json Tokens to authenticate and transmit information.996⭐77🍴OAuth 1.0 Client) - An OAuth 1.0 client library.3812⭐769🍴OAuth 2.0 Client) - An OAuth 2.0 client library.- 🌎 OAuth2 Server - Another OAuth2 server implementation.
- 🌎 OAuth2 Server - An OAuth2 authentication server, resource server and client library.
3397⭐109🍴Paseto) - Platform-Agnostic Security Tokens.1078⭐447🍴PHP oAuthLib) - Another OAuth library.4309⭐1683🍴TwitterOAuth) - A Twitter OAuth library.
Libraries for working with markup and CSS formats.
1011⭐137🍴Cebe Markdown) - A fast and extensible Markdown parser.2965⭐213🍴CommonMark PHP) - Highly-extensible Markdown parser which fully supports the 🌎 CommonMark spec.192⭐49🍴Decoda) - A lightweight markup parser library.25⭐2🍴Djot) - A PHP parser for 🌎 Djot, a modern light markup language (successor of Markdown).772⭐80🍴Essence) - A library for extracting web media.354⭐61🍴Embera) - An Oembed consumer library.1897⭐215🍴HTML to Markdown) - Converts HTML into Markdown.1784⭐121🍴HTML5 PHP) - An HTML5 parser and serializer library.15059⭐1138🍴Parsedown) - Another Markdown parser.1824⭐152🍴PHP CSS Parser) - A Parser for CSS Files written in PHP.3464⭐520🍴PHP Markdown) - A Markdown parser.311⭐32🍴Shiki PHP) - A13535⭐595🍴Shiki) code highlighting package in PHP.599⭐134🍴VObject) - A library for parsing VCard and iCalendar objects.
Libraries for working with JSON.
1325⭐59🍴JSON Lint) - A JSON lint utility.220⭐29🍴JSONMapper) - A library for mapping JSON to PHP objects.255⭐4🍴Lazy JSON) - A memory-efficient lazy parser for large JSON files.
Libraries for parsing and manipulating strings.
4824⭐529🍴Agent) - A PHP desktop/mobile user agent parser, based on Mobiledetect.254⭐37🍴ANSI to HTML5) - An ANSI to HTML5 converter library.285⭐32🍴Color Jizz) - A library for manipulating and converting colors.3501⭐511🍴Device Detector) - Another library for parsing user agent strings.54⭐13🍴Hyphenation) - Text hyphenation based on the TeX hyphenation algorithm.1379⭐258🍴Jieba-PHP) - A PHP port of Python's jieba. Chinese text segmentation for natural language processing.10682⭐2619🍴Mobile-Detect) - A lightweight PHP class for detecting mobile devices (including tablets).79⭐12🍴Patchwork UTF-8) - A portable library for working with UTF-8 strings.577⭐48🍴Portable ASCII) - A library to convert strings to ASCII.520⭐89🍴Portable UTF-8) - A string manipulation library with UTF-8 safe replacement methods.2903⭐246🍴Slugify) - A library to convert strings to slugs.?⭐?🍴SQL Formatter) - A library for formatting SQL statements.180⭐24🍴Stringy) - A string manipulation library with multibyte support.103⭐1🍴Url highlight) - A library for parsing URLs from text and converting them into clickable links.675⭐75🍴URLify) - A PHP port of Django's URLify.js.12630⭐525🍴UUID) - A library for generating UUIDs.
Libraries for working with numbers.
2151⭐96🍴Brick Math) - A library providing large number support:BigInteger,BigDecimalandBigRational.168⭐17🍴ByteUnits) - A library to parse, format and convert byte units in binary and metric systems.26⭐4🍴DecimalObject) - A value object to handle decimals/floats easily and more precisely.257⭐20🍴IP) - An immutable value object for working with IPv4 and IPv6 addresses.132⭐19🍴PHP Conversion) - Another library for converting between units of measure.22⭐5🍴PHP Units of Measure) - A library for converting between units of measure.2411⭐240🍴MathPHP) - A math library for PHP.
Libraries for filtering, sanitizing and validating data.
2429⭐186🍴Assert) - A validation library with a rich set of assertions. Supports assertion chaining and lazy assertions.158⭐33🍴Aura.Filter) - Provides tools to validate and sanitize objects and arrays.43⭐8🍴CakePHP Validation) - Another validation library.446⭐52🍴Filterus) - A simple PHP filtering library.3351⭐354🍴HTML Purifier) - A standards compliant HTML filter.804⭐79🍴ISO-codes) - A library for validating inputs according to standards from ISO, International Finance, Public Administrations, GS1, Book Industry, Phone numbers & Zipcodes for many countries.3629⭐369🍴JSON Schema) - A 🌎 JSON Schema validation library.5042⭐479🍴LibPhoneNumber for PHP) - A PHP implementation of Google's phone number handling library.103⭐21🍴MetaYaml) - A schema validation library that supports YAML, JSON and XML.6031⭐772🍴Respect Validation) - A simple validation library.281⭐13🍴Symfony HTML Sanitizer) - An HTML sanitizer library.1605⭐249🍴Valitron) - Another validation library.1519⭐90🍴Valinor) - A library for mapping to strongly typed value objects.44⭐10🍴Volan) - Another simplified validation library.
Libraries and web tools for developing APIs.
- 🌎 API Platform - Expose in minutes a hypermedia REST API that embraces JSON-LD, Hydra format.
53⭐70🍴Laminas API Tool Skeleton) - An API builder built with the Laminas Framework.201⭐43🍴HAL) - A Hypertext Application Language (HAL) builder library.1041⭐119🍴Hateoas) - A HATEOAS REST web service library.?⭐?🍴Jane) - An OpenApi client generator with validation support.1422⭐64🍴Negotiation) - A content negotiation library.1383⭐312🍴Restler) - A lightweight framework to expose PHP methods as RESTful web API.434⭐74🍴PackageGenerator) - Package Generator generates a PHP SDK from any WSDL.
Libraries for caching data and acquiring locks.
114⭐24🍴APIx Cache) - A thin PSR-6 cache wrapper to various caching backends emphasizing cache tagging and indexing.1821⭐157🍴CacheTool) - A tool to clear APC/opcode caches from the command line.50⭐7🍴CakePHP Cache) - A caching library.7864⭐212🍴Doctrine Cache) - A caching library.100⭐9🍴Metaphore) - Cache slam defense using a semaphore to prevent dogpile effect.964⭐131🍴Stash) - Another library for caching.107⭐61🍴Laminas Cache) - Another caching library.950⭐92🍴Lock) - A lock library to provide exclusive execution.
Libraries that implement data structure or storage techniques.
91⭐6🍴CakePHP Collection) - A simple collections library.3548⭐345🍴Fractal) - A library for converting complex data structures to JSON output.1577⭐188🍴JsonMapper) - A library that maps nested JSON structures onto PHP classes.1321⭐74🍴JSON Machine) - Provides iteration over huge JSONs using simpleforeach.407⭐19🍴msgpack.php) - A pure PHP implementation of the 🌎 MessagePack serialization format.2344⭐589🍴Serializer) - A library for serializing and de-serializing data.454⭐40🍴YaLinqo) - Yet Another LINQ to Objects for PHP.36⭐22🍴Laminas Serializer) - Another library for serialising and de-serialising data.
Libraries for working with notification software.
1442⭐100🍴JoliNotif) - A cross-platform library for desktop notification (support for Growl, notify-send, toaster, etc).
Libraries for project deployment.
Libraries for Internationalization (I18n) and Localization (L10n).
90⭐22🍴Aura.Intl) - Provides internationalization (I18N) tools, specifically package-oriented per-locale message translation.29⭐4🍴CakePHP I18n) - Message translation and localization for dates and numbers.
Libraries and tools to help build serverless web applications.
- 🌎 Bref - Serverless PHP on AWS Lambda.
- 🌎 OpenWhisk - An open-source serverless cloud platform.
- 🌎 Serverless Framework - An open-source framework for building serverless applications.
- 🌎 Laravel Vapor - A serverless deployment platform for Laravel, powered by AWS.
Libraries and tools for configuration.
13541⭐659🍴PHP Dotenv) - Parse and load environment variables from.envfiles.3794⭐28🍴Symfony Dotenv) - Parse and load environment variables from.envfiles.14⭐0🍴Toml) - A TOML parser and encoder with AST access and error recovery.
Libraries for working with Large Language Models.
48⭐9🍴Anthropic) - A PHP client for the Anthropic API, supporting messages, streaming, tool use, and batch processing.74⭐6🍴Anthropic for Laravel) - A Laravel wrapper for the Anthropic PHP client with Facades, config publishing, and testing fakes.324⭐27🍴Instructor for PHP) - Structured data outputs with LLMs, in PHP.1698⭐167🍴LLPhant) - A comprehensive PHP Generative AI Framework using OpenAI GPT 4. Inspired by Langchain.5816⭐678🍴OpenAI Client) - OpenAI PHP is a supercharged community-maintained PHP API client that allows you to interact with OpenAI API.3742⭐264🍴OpenAI Client for Laravel) - OpenAI PHP for Laravel is a supercharged PHP API client that allows you to interact with OpenAI API.17⭐3🍴PHP Mistral AI SDK) - A powerful and easy-to-use PHP SDK for the Mistral AI API, allowing seamless integration of advanced AI-powered features into your PHP projects.
Libraries for accessing third party APIs.
6194⭐1248🍴Amazon Web Service SDK) - The official PHP AWS SDK library.- 🌎 AsyncAWS - An unofficial asynchronous PHP AWS SDK.
- 🌎 Campaign Monitor - The official Campaign Monitor PHP library.
2204⭐588🍴Github) - A library to interface with the Github API.1137⭐315🍴Mailgun) - The official Mailgun PHP API.4019⭐891🍴Stripe) - The official Stripe PHP library.1636⭐571🍴Twilio) - The official Twilio PHP REST API.
Libraries to help build PHP extensions.
- 🌎 PHP CPP - A C++ library for developing PHP extensions.
3377⭐463🍴Zephir) - A compiled language between PHP and C++ for developing PHP extensions.
Useful libraries or utilities that don't fit into the categories above.
6737⭐231🍴Annotations) - An annotation library (part of Doctrine).6163⭐813🍴BotMan) - A framework agnostic PHP library to build cross-platform chatbots.376⭐31🍴ClassPreloader) - A library for optimizing autoloading.668⭐49🍴Ganesha) - A PHP implementation of Circuit Breaker pattern.1996⭐381🍴Hprose-PHP) - A cross-language RPC.605⭐47🍴Laravel Serializable Closure) - A library that allows Closures to be serialized.365⭐55🍴noCAPTCHA) - Helper for Google's noCAPTCHA (reCAPTCHA).1577⭐2🍴Pagerfanta) - A pagination library.2491⭐168🍴Safe) - All PHP functions, rewritten to throw exceptions instead of returning false.
Software for creating a development environment.
Tools to help install and manage PHP on your computer.
1007⭐92🍴Brew PHP Switcher) - Brew PHP switcher.- 🌎 Homebrew - A package manager for macOS.
5526⭐364🍴PHP Brew) - A PHP version manager and installer.1047⭐158🍴PHP Build) - Another PHP version installer.1908⭐394🍴Static PHP CLI) - Build or 🌎 download static versions of PHP CLI and FPM.
Software and tools for creating and sharing a development environment.
- 🌎 Ansible - A radically simple orchestration framework.
3682⭐713🍴DDEV) - A local web development environment system for PHP.- 🌎 Docker - A containerization platform.
4943⭐432🍴Docker PHP Extension Installer) - Easily install PHP extensions in Docker containers.720⭐174🍴Docksal) - Unified, Docker 🐳 powered web development environments for macOS, Windows, and Linux.4570⭐309🍴Expose) - An open-source PHP tunneling service.- 🌎 Lando - Push-button development environments.
- 🌎 Laravel Homestead - A local development environment for Laravel.
- 🌎 Laravel Herd - A one click PHP development environment for macOS and Windows.
- 🌎 Laradock - A full PHP development environment based on Docker.
- 🌎 PHPMon - A macOS menu bar app for managing PHP installations (works with 🌎 Laravel Valet).
- 🌎 Puppet - A server automation framework and application.
1278⭐58🍴Solo) - A terminal application to manage processes for a Laravel application.1650⭐81🍴Takeout) - A Docker-based development-only dependency manager.- 🌎 Vagrant - A portable development environment utility.
Alternative PHP virtual machines.
- 🌎 Hack - A programming language for HHVM.
18643⭐3072🍴HHVM) - A Virtual Machine, Runtime and JIT for PHP by Facebook.2483⭐212🍴PeachPie) - PHP compiler and runtime for .NET and .NET Core.
Text Editors and Integrated Development Environments (IDE) with support for PHP.
- 🌎 Eclipse for PHP Developers - A PHP IDE based on the Eclipse platform.
- 🌎 Apache NetBeans - An IDE with support for PHP and HTML5.
- 🌎 PhpEd - An IDE with professional commercial debugger.
- 🌎 PhpStorm - A commercial PHP IDE.
- 🌎 VS Code - An open source code editor.
Web-based applications and tools.
- 🌎 3V4L - An online PHP & HHVM shell.
- 🌎 Adminer - Database management in a single PHP file.
15127⭐1621🍴Cachet) - The open source status page system.6361⭐653🍴Lychee) - An easy to use and great looking photo-management-system.- 🌎 Leantime - Strategic project management system for the non project manager.
6768⭐603🍴MailCatcher) - A web tool for capturing and viewing emails.9860⭐306🍴Mailpit) - An email and SMTP testing tool for developers.7900⭐3591🍴phpMyAdmin) - A web interface for MySQL/MariaDB.665⭐68🍴PHP Queue) - An application for managing queueing backends.3181⭐662🍴phpRedisAdmin) - A simple web interface to manage 🌎 Redis databases.- 🌎 PHPSandbox - An online IDE for PHP in the browser.
Infrastructure for providing PHP applications and services.
961⭐101🍴appserver.io) - A multithreaded application server for PHP, written in PHP.6552⭐369🍴php-pm) - A process manager, supercharger and load balancer for PHP applications.8488⭐424🍴RoadRunner) - High-performance PHP application server, load-balancer and process manager.
Various resources, such as books, websites and articles, for improving your PHP development skills and knowledge.
Useful PHP-related websites.
- 🌎 Nomad PHP - A online PHP learning resource.
- 🌎 Laravel News - The official Laravel blog.
- 🌎 PHP Annotated Monthly - A monthly digest of PHP news.
- 🌎 PHP FIG - The PHP Framework Interoperability Group.
- 🌎 PHP Package Development Standards - Package development standards for PHP.
- 🌎 PHP School - Open Source Learning for PHP.
- 🌎 PHP The Right Way - A PHP best practice quick reference guide.
- 🌎 PHP UG - A website to help people locate their nearest PHP user group (UG).
- 🌎 PHP Watch - PHP articles, news, upcoming changes, RFCs and more.
- 🌎 Unit Testing Tips - Unit Testing Tips by examples in PHP.
Fantastic PHP-related books.
- 🌎 Domain-Driven Design in PHP - Real examples written in PHP showcasing DDD Architectural Styles.
- 🌎 Functional Programming in PHP - A book on applying functional programming principles and techniques in PHP.
- 🌎 Mastering Object-Orientated PHP - A book about object-orientated PHP by Brandon Savage.
- 🌎 PHP Cookbook - This cookbook provides code recipes to help you resolve a variety of coding issues.
- 🌎 Modernizing Legacy Applications in PHP - A book about modernizing legacy PHP applications by Paul M. Jones.
- 🌎 Scaling PHP Applications - An ebook about scaling PHP applications by Steve Corona.
- 🌎 Securing PHP: Core Concepts - A book about common security terms and practices for PHP by Chris Cornutt.
- 🌎 Signaling PHP - A book about catching PCNTL signals in CLI scripts by Cal Evans.
- 🌎 XML Parsing with PHP - This book covers parsing and validating XML documents, leveraging XPath expressions, and working with namespaces as well as how to create and modify XML files programmatically.
Fantastic PHP-related videos.
- 🌎 Laracasts - Screencasts about Laravel, Vue JS and more.
- 🌎 Laravel YouTube Channel - The official Laravel YouTube channel.
- 🌎 Program With Gio - PHP 8 course by Gio.
- 🌎 Programming with Anthony - A video series by Anthony Ferrara.
- 🌎 SymfonyCasts - Screencasts and tutorials about PHP and Symfony.
PHP conferences.
- 🌎 Laracon EU - Laracon EU is a 2-day event for people who are interested in learning Laravel and related technologies, or who want to share their knowledge with others.
- PHP[TEK] - The longest-running web developer conference in the United States that has a focus on the PHP programming language.
- 🌎 PHP UK Conference - A collection of videos from the PHP UK Conference.
Podcasts with a focus on PHP topics.
- 🌎 Laravel News Podcast - The Laravel News Podcast brings you all the latest news and events related to the Laravel PHP Framework.
- 🌎 Mostly Technical - Hosted by Ian Landsman and Aaron Francis, Mostly Technical is a lively discussion on Laravel, business, and an eclectic mix of related topics.
- 🌎 No Compromises - Two seasoned salty programming veterans talk best practices based on years of working with Laravel SaaS teams.
- 🌎 North Meets South Web Podcast - Jacob Bennett and Michael Dyrynda conquer a 14.5 hour time difference to talk about life as web developers.
- 🌎 Over Engineered - A podcast in mini-series where we explore unimportant programming questions in extreme detail.
- 🌎 PHP Internals News - A podcast about PHP internals.
- 🌎 PHP Town Hall - A casual PHP podcast by Ben Edmunds and Phil Sturgeon.
- php[podcast] episodes from php[architect] - The official podcast of php[architect] the industry's leading tech magazine and publisher focused on PHP and web development.
- 🌎 PHPUgly - The ramblings of a few overworked PHP Developers.
- 🌎 The Laracasts Snippet - The Laracasts snippet, each episode, offers a single thought on some aspect of web development.
- 🌎 The Laravel Podcast - Laravel and PHP development news and discussion.
- 🌎 The PHP Roundtable - The PHP Roundtable is a casual gathering of developers discussing topics that PHP nerds care about.
PHP-related news directly to your inbox.
- 🌎 PHP Weekly - A weekly newsletter about PHP.
PHP-related reading materials.
- php[architect] - A monthly magazine dedicated to PHP.
Reading materials related to the PHP internals or performance.
- 🌎 PHP RFCs - The home of PHP RFCs (Request for Comments).
- 🌎 Externals - PHP internal discussions.
128⭐15🍴PHP RFC Watch) - Watch the latest PHP 🌎 RFCs.- 🌎 PHP Internals Book - An online book about PHP internals, written by three core developers.
32616⭐ 5144🍴 ziadoz/awesome-php)