Ultimate PHP Resource List: Libraries, Frameworks, Tools & More
This comprehensive PHP resource list compiles essential libraries, frameworks, templating engines, security tools, code analysis utilities, logging solutions, third‑party APIs, configuration helpers, web tools, books, e‑books, classic blog posts and more, providing developers with a one‑stop reference for modern PHP development.
A PHP resource list covering libraries, frameworks, templating engines, security tools, code analysis utilities, logging solutions, third‑party APIs, configuration helpers, web tools, books, e‑books, classic blog posts and more.
The content can also be browsed on the related GitHub projects.
English version: awesome-php
Chinese version: awesome-php-zh_CN
The awesome-php-zh_CN project on GitHub is regularly updated based on the awesome-php project.
Dependency Management
Dependency and package management libraries
Composer/Packagist – a package and dependency manager
Composer Installers – a multi‑framework Composer library installer
Pickle – a PHP extension installer
Dependency Management Extras
Other related dependency management tools
Satis – a static Composer repository generator
Toran Proxy – a static Composer repository and proxy
Composition – a library for runtime Composer environment checks
Version – a semantic version parsing and comparison library
NameSpacer – a library that converts underscores to namespaces
Patch Installer – a library for installing patches via Composer
Composer Checker – a tool for validating Composer configurations
Frameworks
Web development frameworks
Symfony2 – a framework composed of independent components
Zend Framework 2 – another component‑based framework
Laravel 5 – a popular PHP framework
Aura PHP – a framework of independent components
Yii2 – another PHP framework
Nette – a framework built from individual components
PPI Framework 2 – an interoperability framework
CakePHP – a rapid application development framework
Phalcon – a framework implemented via a C extension
Framework Extras
Other web development frameworks
Symfony CMF – a content‑management framework for building custom CMSs
Knp RAD Bundle – a rapid‑application‑development bundle for Symfony 2
Components
Standalone components from web development frameworks
Symfony2 Components – Symfony2 components
Zend Framework 2 Components – ZF2 components
Aura Components – a PHP 5.4 component package
Hoa Project – another PHP component package
League of Extraordinary Packages – a PHP software development group
Micro Frameworks
Micro‑frameworks and routing
Silex – a micro‑framework based on Symfony2 components
Slim – another simple micro‑framework
Bullet PHP – a micro‑framework for building REST APIs
Micro Framework Extras
Other related micro‑frameworks and routing tools
Silex Skeleton – project skeleton for Silex
Silex Web Profiler – a debugging tool for Silex web applications
Slim Skeleton – Slim project skeleton
Slim View – a collection of custom views for Slim
Routers
Libraries for handling application routing
Fast Route – a fast routing library
Route – a routing library based on Fast Route
Pux – another fast routing library
Klein – a flexible routing library
Templating
Templating and lexical analysis libraries and tools
Twig – a comprehensive templating language
Twig Cache Extension – a fragment‑caching library for Twig
Mustache – a PHP implementation of the Mustache templating language
Phly Mustache – another Mustache implementation
MtHaml – a PHP implementation of the HAML templating language
PHPTAL – a PHP implementation of the TAL templating language
Plates – a native PHP templating library
Lex – a lightweight template parser
Static Site Generators
Tools for pre‑processing content to generate web pages
Sculpin – converts Markdown and Twig to static HTML
Phrozn – another tool that converts Textile, Markdown and Twig to HTML
HTTP
Libraries for HTTP and web crawling
Guzzle – a comprehensive HTTP client
Buzz – another HTTP client
Requests – a simple HTTP library
HTTPFul – a chainable HTTP library
Goutte – a simple web crawler
PHP VCR – a library for recording and replaying HTTP requests
Middlewares
Libraries for building applications with middleware
Stack – a stackable middleware library for Silex/Symfony
Slim Middleware – a collection of custom middleware for Slim
Conduit – a port of Sencha Connect to PHP
URL
Libraries for parsing URLs
Purl – a URL handling library
PHP Domain Parser – a library for parsing domain prefixes
Url – a simple URL handling library
Libraries for sending and parsing email
SwiftMailer – an email solution
PHPMailer – another email solution
Fetch – an IMAP library
Email Reply Parser – a library for parsing email replies
Stampie – an email service library (SendGrid, PostMark, MailGun, Mandrill)
CssToInlineStyles – a library for inlining CSS in email templates
Files
File handling and MIME type detection libraries
Gaufrette – a filesystem abstraction layer
Flysystem – another filesystem abstraction layer
Canal – a library for detecting internet media types
Apache MIME Types – a library for parsing Apache MIME types
Ferret – a MIME detection library
Hoa Mime – another MIME detection library
Lurker – a resource tracking library
PHP File Locator – a library for locating files in large projects
PHP FFmpeg – a library for wrapping FFmpeg video processing
CSV – a CSV data handling library
Streams
Libraries for handling streams
Streamer – a simple object‑oriented stream wrapper library
Dependency Injection
Libraries implementing the dependency injection design pattern
Pimple – a small dependency injection container
Auryn – another dependency injection container
Container – a scalable dependency injection container
PHP DI – a dependency injection container using annotations
Acclimate – a generic interface for dependency injection containers and service locators
Imagery
Image processing libraries
Imagine – an image processing library
PHP Image Workshop – another image processing library
Intervention Image – another image processing library
GIF Frame Extractor – a library for extracting GIF animation frame information
GIF Creator – a library for creating GIF animations from multiple images
Image With Text – a library for embedding text into images
Color Extractor – a library for extracting colors from images
Glide – an on‑demand image processing library
Testing
Libraries for testing code and generating test data
PHPUnit – a unit testing framework
DBUnit – a database testing library for PHPUnit
ParaTest – a parallel testing library for PHPUnit
PHPSpec – a behavior‑driven unit testing library
Codeception – a full‑stack testing framework
AspectMock – a mocking framework for PHPUnit/Codeception
Atoum – a simple testing library
Mockery – a library for mock objects in testing
Phake – another mock object library
Prophecy – a highly expressive mocking framework
Faker – a fake data generation library
Samsui – another fake data generation library
Alice – an expressive data generation library
Behat – a behavior‑driven development (BDD) testing framework
Pho – another BDD testing framework
Mink – web acceptance testing
HTTP Mock – a library for mocking HTTP requests in unit tests
VFS Stream – a virtual file system stream wrapper for testing
VFS – another virtual file system library
Locust – a modern load testing library written in Python
Peridot – an event‑driven testing framework
Continuous Integration
Libraries and applications for continuous integration
Travis CI – a continuous integration platform
PHPCI – an open‑source CI platform for PHP
Sismo – a service library for continuous testing
Jenkins – a CI platform with PHP support
JoliCi – a Docker‑based CI client written in PHP
Documentation
Libraries for generating project documentation
Sami – an API documentation generator
APIGen – another API documentation generator
PHP Documentor 2 – an API documentation generator
phpDox – a documentation generator for PHP projects (not limited to APIs)
Security
Libraries for generating secure random numbers, encrypting data, and scanning for vulnerabilities
HTML Purifier – a standards‑compliant HTML filter
RandomLib – a library for generating random numbers and strings
True Random – a library that uses www.random.org to generate random numbers
SecurityMultiTool – a PHP security library
PHPSecLib – a pure‑PHP secure communications library
TCrypto – a simple key‑value encryption storage library
PHP IDS – a structured PHP security layer
PHP SSH – an experimental object‑oriented SSH wrapper library
IniScan – a library for scanning PHP INI files for security
SensioLabs Security Check – a web tool that provides security advice for Composer dependencies
Zed – an integrated web application penetration testing tool
Passwords
Libraries and tools for handling and storing passwords
Password Compat – a compatibility library for the new PHP 5.5 password functions
phpass – a portable password hashing framework
PHP Password Lib – a library for generating and verifying passwords
Password Policy – a password policy library for PHP and JavaScript
Password Validator – a library for validating and upgrading password hashes
Zxcvbn PHP – a realistic PHP password strength estimator based on the Zxcvbn JS library
Code Analysis
Libraries and tools for analyzing, parsing, and processing codebases
PHP Parser – a PHP parser written in PHP
PHPPHP – a PHP virtual machine implemented in PHP
PHPSandbox – a PHP sandbox environment
Dissect – a collection of lexical and syntactic analysis tools
PHP Mess Detector – a library that scans for code defects, sub‑optimal code, unused parameters, etc.
PHP Code Sniffer – a library that detects coding standard violations in PHP, CSS and JS
PHPCPD – a library that detects copied and pasted code
PHP Analyser – a library that analyzes PHP code for defects and errors
PHP CS Fixer – a coding standards library
PHP Manipulator – a library for analyzing and modifying PHP source code
PHP Metrics – a static measurement library
PHP Refactoring Browser – a command‑line toolset for refactoring PHP code
UBench – a simple micro‑benchmarking library
Athletic – a benchmark library based on annotations
Mondrian – a code analysis tool using graph theory
Scrutinizer – a web tool for reviewing PHP code
PHPLOC – a fast tool for measuring PHP project size
xHprof – another PHP profiling tool
PHPCheckstyle – a tool that helps enforce specific coding conventions
Debugging
Libraries and tools for debugging code
xDebug – a debugging and profiling tool for PHP
PHP Debug Bar – a debugging toolbar
PHP Console – a web debugging console
Barbushin PHP Console – another web debugging console using Google Chrome
PHPDBG – an interactive PHP debugger
Tracy – a simple error detection, logging and timing library
Z‑Ray – a tool for debugging and configuring Zend Server
Build Tools
Project build and automation tools
Go – a simple PHP build tool
Bob – a simple project automation tool
Phake – a PHP cloning library
Box – a tool for building PHAR files
Phing – a PHP project build system inspired by Apache Ant
Task Runners
Libraries for automatically running tasks
Task – a pure‑PHP task runner inspired by Grunt and Gulp
Robo – an object‑oriented PHP task runner
Bldr – a PHP task runner built on Symfony components
Navigation
Tools for building navigation structures
KnpMenu – a menu library
Cartographer – a sitemap generation library
Asset Management
Tools for managing, compressing and minifying web site assets
Assetic – an asset management pipeline library
Pipe – another asset management pipeline library
Munee – an asset optimization library
JShrink – a JavaScript minification library
Puli – a library for detecting absolute paths of assets
Geolocation
Geocoding address and latitude/longitude libraries
GeoCoder – a geocoding library
GeoTools – a library of geographic tools
PHPGeo – a simple geographic library
GeoJSON – an implementation of GeoJSON
Date and Time
Libraries for handling dates and times
Carbon – a simple date‑time API extension
ExpressiveDate – another date‑time API extension
CalendR – a calendar management library
Event
Libraries and software for indexing and executing queries on data
ElasticSearch PHP – the official client library for ElasticSearch
Elastica – an ElasticSearch client library
Solarium – a client library for Solr
SphinxQL query builder – a query library for the Sphinx search engine
Command Line
Libraries for building command‑line tools
Boris – a micro PHP REPL
PsySH – another PHP REPL
Pecan – an event‑driven and non‑blocking shell
GetOpt – a command‑line option parser
OptParse – another command‑line option parser
Commando – another simple command‑line option parser
GetOptionKit – another command‑line option parser
Cron Expression – a library for calculating cron run dates
ShellWrap – a simple command‑line wrapper library
Hoa Console – another command‑line library
Shunt – a library for running commands in parallel on multiple remote machines
Cilex – a micro‑framework for building command‑line tools
CLImate – a library for colored and specially formatted output
Authentication and Authorization
Libraries for implementing authentication and authorization
Sentry – a mixed authentication and authorization framework library
Sentry Social – a social network authentication library
Opauth – a multi‑channel authentication framework
OAuth2 Server – an OAuth2 authentication service, resource server and client library
OAuth2 Server – another OAuth2 server implementation
PHP oAuthLib – another OAuth library
TwitterOAuth – a Twitter OAuth library
TwitterSDK – a fully tested Twitter SDK
Hawk – a Hawk HTTP authentication library
HybridAuth – an open‑source social login library
Lock – a library implementing an access‑control‑list (ACL) system
OAuth 1.0 Client – an OAuth 1.0 client library
OAuth 2.0 Client – an OAuth 2.0 client library
Markup
Libraries for handling markup
Decoda – a lightweight markup parsing library
PHP Markdown – a Markdown parser
CommonMark PHP – a fully spec‑compliant Markdown parser
Dflydev Markdown – another Markdown parser
Parsedown – another Markdown parser
Ciconia – a Markdown parser supporting GitHub‑flavored Markdown
Cebe Markdown – a fast, extensible Markdown parser
HTML5 PHP – an HTML5 parsing and serialization library
Strings
Libraries for parsing and handling strings
ANSI to HTML5 – a library that converts ANSI to HTML5
Patchwork UTF‑8 – a portable library for handling UTF‑8 strings
Hoa String – another UTF‑8 string library
Stringy – a multibyte‑aware string handling library
Color Jizz – a library for handling and converting colors
UUID – a library for generating UUIDs
Slugify – a library for converting strings to slugs
Urlify – a PHP port of the Urlify.js library from Django
Text – a text handling library
SQL Formatter – a library for formatting SQL statements
UA Parser – a library for parsing user‑agent strings
Numbers
Libraries for handling numbers
Numbers PHP – a library for handling numbers
Math – a library for handling huge numbers
ByteUnits – a library for parsing, formatting and converting byte units in binary and metric systems
PHP Units of Measure – a library for converting measurement units
PHP Conversion – another measurement unit conversion library
LibPhoneNumber for PHP – a PHP implementation of Google’s phone number handling library
Filtering and Validation
Libraries for filtering and validating data
Filterus – a simple PHP filtering library
Respect Validate – a simple validation library
Valitron – another validation library
Upload – a library for handling file uploads and validation
DMS Filter – an annotation‑based filtering library
MetaYaml – a schema validation library supporting YAML, JSON and XML
ISO‑codes – a library for validating various ISO and ZIP codes (IBAN, SWIFT/BIC, BBAN, VAT, SSN, UKNIN)
REST and API
Libraries and web tools for developing REST‑ful APIs
Apigility – an API builder using Zend Framework 2
Hateoas – a HATEOAS REST web service library
HAL – a Hypertext Application Language (HAL) building library
Negotiation – a content negotiation library
Drest – a library that exposes Doctrine entities as REST resources
Restler – a lightweight framework that exposes PHP methods as RESTful web APIs
Caching
Libraries for caching data
Alternative PHP Cache (APC) – enables PHP opcode caching
Cache – a caching library (part of Doctrine)
Stash – another caching library
Data Structure and Storage
Libraries implementing data structures and storage techniques
Ardent – a data‑structure library
PHP Collections – a simple collections library
Serializer – a library for serializing and deserializing data
PHP Object Storage – an object storage library
Fractal – a library for transforming complex data structures into JSON output
Totem – a library for managing and creating data exchange sets
PINQ – a LINQ library implemented in PHP
JsonMapper – a library that maps embedded JSON structures to PHP classes
Notifications
Libraries for handling notification software
Nod – a notification library (Growl, etc.)
Notificato – a library for handling push notifications
Notification Pusher – a standalone library for device push notifications
Notificator – a lightweight notification library
Deployment
Project deployment libraries
Pomander – a PHP application deployment tool
Rocketeer – a fast, simple deployment tool for the PHP world
Envoy – a tool for running SSH tasks with PHP
Plum – a deployment library
Deployer – a deployment tool
Internationalisation and Localisation
Libraries for internationalisation (I18n) and localisation (L10n)
Aura Intl
Third Party APIs
Libraries for accessing third‑party APIs
Amazon Web Service SDK – the official PHP AWS SDK
S3 Stream Wrapper – an Amazon S3 stream wrapper library
Stripe – the official PHP Stripe library
Campaign Monitor – the official PHP Campaign Monitor library
Digital Ocean – a Digital Ocean API client library
Github – a Github API interaction library
PHP Github API – another Github API interaction library
Twitter OAuth – a Twitter OAuth workflow library
Twitter REST – a Twitter REST API interaction library
Dropbox SDK – the official Dropbox SDK for PHP
Twilio – the official Twilio PHP REST API
Mailgun – the official Mailgun PHP REST API
Extensions
Libraries that help build PHP extensions
Zephir – a compiled language for developing PHP extensions, sitting between PHP and C++
PHP CPP – a C++ library for developing PHP extensions
Miscellaneous
Useful libraries and tools that don’t fit into the above categories
Spork – a library for handling forking
JSON Lint – a JSON lint tool
JSONPCallbackValidator – a library for validating JSONP callbacks
Pagerfanta – a pagination library
Ruler – a simple stateless production‑environment rule engine
LiteCQRS – a CQRS (Command Query Responsibility Segregation) library
Sslurp – a library that reduces SSL handling complexity
PHP Option – an optional type library
Metrics – a simple metrics API library
Sabre VObject – a library for parsing VCard and iCalendar objects
Annotations – an annotation library (part of Doctrine)
Whoops – a nice error handling library
Finite – a simple PHP finite state machine
LadyBug – a dumper library
Procrastinator – a library for running time‑consuming tasks
Compose – a function composition library
SuperClosure – a library that allows closure serialization
Jumper – a remote service execution library
Underscore – a PHP implementation of the Underscore.js library
PHP PassBook – an iOS PassBook PHP library
PHP Expression – a PHP expression language
RMT – a library for writing version and release software
Wise – a configuration manager
Opengraph – an open‑graph library
Essence – a library for extracting web media
Embera – an Oembed consumer library
Graphviz – a graph library
Monad PHP – a simple monad library
Flux – a regular expression building library
Patchwork – a library for redefining user functions
Galapagos – language conversion evolution
Design Patterns PHP – a repository of design patterns implemented in PHP
PHPCR – a PHP implementation of the Java Content Repository (JCR)
Functional PHP – a functional programming library
ClassPreloader – a library for optimizing autoloading
Lib Country – a library of country and region data
Lib Accessor – a library that simplifies access
PHPStack – a concept of a TCP/IP stack written in PHP
Nmap – a PHP wrapper for Nmap
Code Mover – a library for moving code
Iter – a library that provides iteration primitives using generators
Lambda PHP – a parser for lambda calculus in PHP
Country List – a list of all countries with names and ISO 3166‑1 codes
PHP‑GPIO – a library for GPIO pins on Raspberry PI
print_o – an object‑graph visualizer
Alias – a class alias library
Signed-in readers can open the original source through BestHub's protected redirect.
This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactand we will review it promptly.
21CTO
21CTO (21CTO.com) offers developers community, training, and services, making it your go‑to learning and service platform.
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.
