Awesome PHP
A curated list of amazingly awesome PHP libraries, resources, and shiny things.
Contributing and Collaborating
Please see CONTRIBUTING, CODE-OF-CONDUCT and COLLABORATING for details.
Table of Contents
- 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
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.
Dependency Management
Libraries for dependency and package management.
- Composer Installers - A multi-framework Composer library installer.
- Composer - A package and dependency manager.
- Phive - A PHAR manager.
- Pickle - A PHP extension installer.
Dependency Management Extras
Extras related to dependency management.
- Composed - A library to parse your project's Composer environment at runtime.
- Composer Merge Plugin - A composer plugin to merge several
composer.json
files. - Composer Normalize - A plugin for normalizing
composer.json
files. - Composer Patches - A plugin for Composer to apply patches.
- Composer Prefer Lowest Validator - A plugin to check if minimum dependencies can be installed and tested.
- Composer Require Checker - CLI tool to analyze composer dependencies and verify that no unknown symbols are used in the sources of a package.
- Composer Unused - A CLI Tool to scan for unused composer packages.
- Repman - A private PHP package repository manager and Packagist proxy.
- Satis - A static Composer repository generator.
- Tooly - A library to manage PHAR files in a project using Composer.
- Toran Proxy - A Composer proxy for speed and reliability. (:warning: Toran Proxy is being phased out.)
Frameworks
Web development frameworks.
- CakePHP - A rapid application development framework.
- CodeIgniter - A powerful PHP framework with a very small footprint.
- 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.
- Yii2 - A fast, secure, and efficient web framework.
Framework Extras
Extras related to web development frameworks.
- CakePHP CRUD - A Rapid Application Development (RAD) plugin for CakePHP.
- Knp RAD Components - A set of Rapid Application Development (RAD) components for Symfony.
- LaravelS - An out-of-the-box adapter between Laravel/Lumen and Swoole.
- Livewire - Powerful, dynamic, front-end UIs without leaving PHP.
Content Management Systems (CMS)
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.
- CraftCMS - A flexible, user-friendly CMS for creating custom digital experiences on the web and beyond.
- Drupal - An enterprise level CMS.
- Grav - A modern flat-file CMS.
- Joomla - Another leading CMS.
- Kirby - A flat-file CMS that adapts to any project.
- Magento - The most popular e-commerce platform.
- Moodle - An open-source learning platform.
- Pico CMS - A stupidly simple, blazing fast, flat file CMS.
- Statamic - Build beautiful, easy-to-manage websites.
- Sulu - A user and developer friendly focused CMS and Platform based on the Symfony Framework.
- WordPress - A blogging platform and CMS.
Components
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.
- 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 Components - The components that make Symfony.
- Laminas Components - The components that make the Laminas Framework.
Micro Frameworks
Micro frameworks and routers.
- Laravel-Zero - A micro-framework for console applications.
- Mezzio - A micro-framework by Laminas.
- Minicli - Minimalist, dependency-free framework for building CLI-centric PHP applications.
- Silly - A micro-framework for CLI applications.
- Slim - Another simple micro framework.
Micro Framework Extras
Extras related to micro frameworks and routers.
- Slim Skeleton - A skeleton for Slim.
- Slim Twig View - Integrate Twig into Slim.
- Slim PHP View - A simple PHP renderer for Slim.
Routers
Libraries for handling application routing.
- Aura.Router - A full-featured routing library.
- Fast Route - A fast routing library.
- Klein - A flexible router.
- Pux - Another fast routing library.
- Route - A routing library built on top of Fast Route.
Templating
Libraries and tools for templating and lexing.
- Latte - The safest and truly intuitive templates for PHP.
- MtHaml - A PHP implementation of the HAML template language.
- 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.
Static Site Generators
Tools for pre-processing content to generate web pages.
- Couscous - Couscous turns Markdown documentation into beautiful websites. It's GitHub Pages on steroids.
- Jigsaw - Simple static sites with Laravel's Blade.
- Sculpin - A tool that converts Markdown and Twig into static HTML.
- Spress - An extensible tool that converts Markdown and Twig into HTML.
HTTP
Libraries for working with HTTP.
- Buzz - Another HTTP client.
- Guzzle - A comprehensive HTTP client.
- HTTPlug - An HTTP client abstraction without binding to a specific implementation.
- Nyholm PSR-7 - A super lightweight PSR-7 implementation. Very strict and very fast.
- PHP VCR - A library for recording and replaying HTTP requests.
- Requests - A simple HTTP library.
- Retrofit - A library to ease creation of REST API clients.
- Symfony HTTP Client - A component to fetch HTTP resources synchronously or asynchronously.
- Laminas Diactoros - PSR-7 HTTP Message implementation.
Scraping
Libraries for scraping websites and detecting crawlers.
- Chrome PHP - Instrument headless Chrome/Chromium instances from PHP.
- CrawlerDetect - A PHP class for detecting bots/crawlers/spiders via the user agent.
- DiDOM - A super-fast HTML scrapper and parser.
- Embed - An information extractor from any web service or page.
- PHP Spider - A configurable and extensible PHP web spider.
- Symfony Panther - A browser testing and web crawling library for PHP and Symfony.
Middlewares
Libraries for building application using middlewares.
- PSR-7 Middlewares - Inspiring collection of handy middlewares.
- Relay - A PHP 5.5 PSR-7 middleware dispatcher.
- Stack - A library of stackable middleware for Symfony.
- Laminas Stratigility - Middleware for PHP built on top of PSR-7.
URL
Libraries for parsing URLs.
- PHP Domain Parser - A domain suffix parser library.
- Purl - A URL manipulation library.
- sabre/uri - A functional URI manipulation library.
- Uri - Another URL manipulation library.
Libraries for sending and parsing email.
- CssToInlineStyles - A library to inline CSS in email templates.
- Email Reply Parser - An email reply parser library.
- Email Validator - A small email address validation library.
- Fetch - An IMAP library.
- Mautic - Email marketing automation
- PHPMailer - Another mailer solution.
- PHP IMAP - A library to access mailboxes via POP3, IMAP and NNTP.