# Awesome PHP Libraries A list of amazingly awesome PHP libraries that you should consider using (and some other shiny extras). * [Composer](http://getcomposer.org/)/[Packagist](http://packagist.org/) - A package and dependency manager. * [Symfony2](http://symfony.com/) - A framework comprised of individual components. * [Zend Framework 2](https://github.com/zendframework/zf2) - Another framework comprised of individual components. * [Laravel 4](https://github.com/laravel/framework) - A simple PHP framework. * [Lithium](http://lithify.me/) - Another framework of components. * [Symfony2 Components](http://symfony.com/doc/master/components/index.html) - The components that make Symfony2. * [Aura Components](http://auraphp.github.com/) - A package of PHP 5.4 components. * [Silex](http://silex.sensiolabs.org/) - A micro framework built around Symfony2 components. * [Slim](http://www.slimframework.com/) - Another simple micro framework. * [Twig](http://twig.sensiolabs.org/) - A comprehensive templating language. * [Mustache](https://packagist.org/packages/phly/mustache) - A PHP implementation of the Mustache template language. * [MtHaml](https://github.com/arnaud-lb/MtHaml) - A PHP implementation of the HAML template language. * [SwiftMailer](http://swiftmailer.org/) - A mailer solution. * [Pimple](http://pimple.sensiolabs.org/) - A tiny dependency injection container. * [Auryn](https://github.com/rdlowrey/Auryn) - Another dependency injection container. * [PHP DI](http://mnapoli.github.com/PHP-DI/) - A dependency injection implementation using annotations. * [Doctrine](http://www.doctrine-project.org/) - A comprehensive DBAL and ORM. * [Doctrine Migrations](http://docs.doctrine-project.org/projects/doctrine-migrations/en/latest/toc.html) - A migration library for Doctrine. * [Migrations](https://github.com/icomefromthenet/Migrations) - A migration management library. * [Propel](http://www.propelorm.org/) - A fast ORM. * [Goutte](https://github.com/fabpot/Goutte) - A simple web scraper. * [Assetic](https://github.com/kriswallsmith/assetic) - An asset manager pipeline library. * [Pipe](https://github.com/CHH/pipe) - Another asset manager pipeline library. * [Imagine](http://imagine.readthedocs.org/en/latest/index.html) - An image manipulation library. * [PHP Image Workshop](https://github.com/Sybio/ImageWorkshop) - Another image manipulation library. * [GIF Frame Extractor](https://github.com/Sybio/GifFrameExtractor) - A library to extract GIF animation frame information. * [GIF Creator](https://github.com/Sybio/GifCreator) - A library to create GIF animations from multiple images. * [Monolog](https://github.com/Seldaek/monolog) - A comprehensive logger. * [Behat](http://behat.org/) - A Behaviour Driven Development framework. * [Mink](http://mink.behat.org/) - Web acceptance testing. * [Buzz](https://github.com/kriswallsmith/Buzz) - A HTTP client. * [Guzzle](http://guzzlephp.org/) - Another HTTP client. * [PHPUnit](https://github.com/sebastianbergmann/phpunit) - A unit testing framework. * [RunkitTestCase](https://github.com/kherge/RunkitTestCase) - A library for creating PHPUnit test cases that use runkit. * [PHPSpec](https://github.com/phpspec/phpspec2) - A design by specification unit testing library. * [Mockery](https://github.com/padraic/mockery) - A mock object library for testing. * [Phake](https://github.com/mlively/Phake) - Another mock object library for testing. * [Parody](https://github.com/dotink/Parody) - Yet another mock object library for testing. * [KnpMenu](https://github.com/KnpLabs/KnpMenu) - A menu library. * [Gaufrette](https://github.com/KnpLabs/Gaufrette) - A filesystem abstraction layer. * [Snappy](https://github.com/KnpLabs/snappy) - A PDF and image generation library (uses [WKHTMLToPDF](https://github.com/antialize/wkhtmltopdf)). * [Pagerfanta](https://github.com/whiteoctober/Pagerfanta) - A pagination library. * [GeoCoder](http://geocoder-php.org/) - A geocoding library. * [Faker](https://github.com/fzaninotto/Faker) - A fake data generator library. * [Spork](https://github.com/kriswallsmith/spork) - A process forking library. * [HTML Purifier](https://github.com/ezyang/htmlpurifier) - A standards compliant HTML filter. * [React](https://github.com/react-php/react) - An event driven non-blocking I/O library. * [Événement](https://github.com/igorw/evenement) - An event dispatcher library. * [FuelPHP Event](https://github.com/fuelphp/event) - Another event dispatcher library. * [Sami](https://github.com/fabpot/Sami) - An API documentation generator. * [Bob](https://github.com/CHH/bob) - A simple project automation tool. * [Phake](https://github.com/jaz303/phake) - A rake PHP clone library. * [JSON Lint](https://github.com/Seldaek/jsonlint) - A JSON lint utility. * [PHPAss](http://www.openwall.com/phpass/) - A portable password hashing framework. * [PHPSecLib](http://phpseclib.sourceforge.net/) - A pure PHP secure communications library. * [PHP Password Lib](https://github.com/ircmaxell/PHP-PasswordLib) - A library for generating and validating passwords. * [Password Compat](https://github.com/ircmaxell/password_compat) - A library that provides compatibility with the new PHP 5.5 password functions. * [Password Policy](https://github.com/ircmaxell/password-policy) - A password policy library for PHP and JavaScript. * [Box](https://github.com/kherge/Box) - A utility to build PHAR files. * [Wisdom](https://github.com/kherge/Wisdom) - A library for loading config data. * [GetOpt](ulrichsg/getopt-php) - A command line opt parser. * [OptParse](https://github.com/CHH/optparse) - Another command line opt parser. * [Commando](https://github.com/nategood/commando) - Another simple command line opt parser. * [TCrypto](https://github.com/timoh6/TCrypto) - A simple encrypted key-value storage library. * [Tala Payments](https://github.com/adrianmacneil/tala-payments) - A payment processing library. * [Ruler](https://github.com/bobthecow/Ruler) - A simple stateless production rules engine. * [Carbon](https://github.com/briannesbitt/Carbon) - A simple DateTime API extension. * [Datum](https://github.com/dandoescode/datum) - A fork of the Carbon DateTime API extension. * [ExpressiveDate](https://github.com/jasonlewis/expressive-date) - Another DateTime API extension. * [Upload](https://github.com/codeguy/Upload) - A library for handling file uploads and validation. * [Sismo](http://sismo.sensiolabs.org/) - A continuous testing server library. * [Fetch](https://github.com/tedivm/Fetch) - An IMAP library. * [Lex](https://github.com/pyrocms/lex) - A lightweight template parser. * [Sslurp](https://github.com/EvanDotPro/Sslurp) - A library that makes dealing with SSL suck less. * [Composition](https://github.com/composition/composition) - A library to check your Composer environment at runtime. * [Entities](https://github.com/kherge/Entities) - A Doctrine ORM service provider for Silex. * [Elf](https://github.com/kherge/Elf) - A collection of helpers for the Symfony Console component. * [Amend](https://github.com/kherge/Amend) - A Symfony Console helper and command set for updating and upgrading applications. * [Doctrine Extensions](https://github.com/l3pp4rd/DoctrineExtensions) - A collection of Doctrine behavioural extensions. * [Color Jizz](https://github.com/mikeemoo/ColorJizz-PHP) - A library for manipulating and converting colours. * [Poser](https://github.com/FrenkyNet/Poser) - A Composer class aliasing library. * [Version](https://github.com/kherge/Version) - A parsing and comparison library for semantic versioning. * [Respect Validate](https://github.com/Respect/Validation) - A simple validation library. * [BCrypt](https://github.com/kherge/Bcrypt) - A BCrypt password hashing library. * [ShellWrap](https://github.com/MrRio/shellwrap) - A simple command line wrapper library. * [Streamer](https://github.com/fzaninotto/Streamer) - A simple object-orientated stream wrapper library. * [Cron Expression](https://github.com/mtdowling/cron-expression) - A library to calculate cron run dates. * [OPAuth](https://github.com/uzyn/opauth) - A multi-provider authentication framework. * [Ratchet](https://github.com/cboden/Ratchet) - A web socket library. * [Alice](https://github.com/nelmio/alice) - An expressive fixture generation library. * [PHP Option](https://github.com/schmittjoh/php-option) An option type library. * [Hateoas](https://github.com/willdurand/Hateoas) - A HATEOAS REST web service library. * [Metrics](https://github.com/beberlei/metrics) - A simple metrics API library. * [JShrink](https://github.com/tedivm/JShrink) - A JavaScript minifier library. * [Ardent](https://github.com/morrisonlevi/Ardent) - A library of data structures. * [HAL](https://github.com/blongden/hal) - A Hypertext Application Language (HAL) builder library. * [MongoQB](https://github.com/alexbilbie/MongoQB) - A MongoDB query builder library. * [Monga](https://github.com/FrenkyNet/Monga) - A MongoDB abstraction library. * [Predis](https://github.com/nrk/predis) - A feature complete Redis library. * [Sabre VObject](https://github.com/evert/sabre-vobject) - A library for parsing VCard and iCalendar objects. * [OAuth2](https://github.com/lncd/OAuth2) - An OAuth2 authentication server, resource server and client library. * [CurlBack](https://github.com/jwoodcock/CurlBack) - A simple wrapper library for cURL. * [Annotations](https://github.com/doctrine/annotations) - An annotations library (part of Doctrine). * [Cache](https://github.com/doctrine/cache) - A caching library (part of Doctrine). * [Filterus](https://github.com/ircmaxell/filterus) - A simple PHP filtering library. * [PHP Collections](https://github.com/schmittjoh/php-collection) - A simple collections library. * [PHP Domain Parser](https://github.com/jeremykendall/php-domain-parser) - A domain suffix parser library. * [Country List](https://github.com/umpirsky/country-list) - A list of all countries with names and ISO 3166-1 codes. * [Elastica](https://github.com/ruflin/Elastica) - A client library for [Elastic Search](http://www.elasticsearch.org/). # Official APIs * [Amazon Web Service SDK](https://github.com/aws/aws-sdk-php) - The official PHP AWS SDK library. * [Stripe](https://github.com/stripe/stripe-php) - The official Stripe PHP library. # C Extension Frameworks * [Phalcon PHP](http://phalconphp.com/) - A high performance C extension framework. * [Yaf](http://php.net/manual/en/book.yaf.php) - A PECL extension framework. # Utilities * [HomeBrew](http://mxcl.github.com/homebrew/) - A package manager for OSX. * [HomeBrew PHP](https://github.com/josegonzalez/homebrew-php) - A PHP tap for HomeBrew. * [PHP Brew](https://github.com/c9s/phpbrew) - A PHP version manager and installer. * [PHP Env](https://github.com/CHH/phpenv) - Another PHP version manager. * [PHP Build](https://github.com/CHH/php-build) - Another PHP version installer. * [PHP CS Fixer](https://github.com/fabpot/PHP-CS-Fixer) - A coding standard fixer library. * [PHP Parser](https://github.com/nikic/PHP-Parser) - A PHP parser written in PHP. * [PHP Manipulator](https://github.com/schmittjoh/php-manipulator) - A library for analysing and modifying PHP Source Code. * [PHP Queue](https://github.com/miccheng/php-queue) - An application for managing queueing backends. * [PHPPHP](https://github.com/ircmaxell/PHPPHP) - A PHP VM implementation in PHP. * [DBV](http://dbv.vizuina.com/) - A database version control application. # Resources * [PHP The Right Way](http://www.phptherightway.com/) - A PHP best practice quick reference guide. * [PHP Best Practices](http://phpbestpractices.org/) - A PHP best practice guide. * [PHP Security](http://phpsecurity.readthedocs.org/en/latest/index.html) - A guide to PHP security. * [PHP Standards Working Group](https://groups.google.com/group/php-standards) - The PHP standards working group. * [The Open Web Application Security Project (OWASP)](https://www.owasp.org/index.php/Main_Page) - An open software security community. * [WebSec IO](http://websec.io/) - A web security community resource. * [Web Advent](http://webadvent.org) - An advent calendar for web developers. * [Programming with Anthony](http://www.youtube.com/playlist?list=PLM-218uGSX3DQ3KsB5NJnuOqPqc5CW2kW) - A video series by Anthony Ferrara. * [Scaling PHP Applications](http://www.scalingphpbook.com) - A paid ebook about scaling PHP applications by Steve Corona. * [Semantic Versioning](http://semver.org/) - A website explaining semantic versioning. # Reading * [OWASP PHP Security Cheat Sheet](https://www.owasp.org/index.php/PHP_Security_Cheat_Sheet) - A PHP security cheatsheet. * [Seven Ways to Screw Up BCrypt](http://blog.ircmaxell.com/2012/12/seven-ways-to-screw-up-bcrypt.html) - An article about correct BCrypt implementation. * [Print vs Echo, Which One is Faster?](http://fabien.potencier.org/article/8/print-vs-echo-which-one-is-faster) - An article about print and echo performance. * [The PHP Ternary Operator. Fast or Not?](http://fabien.potencier.org/article/48/the-php-ternary-operator-fast-or-not) - An article ternary performance. * [On PHP 5.3, Lamda Functions and Closures](http://fabien.potencier.org/article/17/on-php-5-3-lambda-functions-and-closures) - An article about lambda functions and closures. * [Use Env](http://seancoates.com/blogs/use-env) - An article about using the unix environment helper. * [Disproving the Single Quotes Myth](http://nikic.github.com/2012/01/09/Disproving-the-Single-Quotes-Performance-Myth.html) - An article about performance of single and double quoted strings. * [You're Being Lied To](http://blog.golemon.com/2007/01/youre-being-lied-to.html) - An article about internal ZVALs. * [How Long is a Piece of String](http://blog.golemon.com/2006/06/how-long-is-piece-of-string.html) - An article about string internals. * [Understanding OpCodes](http://blog.golemon.com/2008/01/understanding-opcodes.html) - An article about opcodes. * [When Does Foreach Copy?](http://nikic.github.com/2011/11/11/PHP-Internals-When-does-foreach-copy.html) - An article about the internals of foreach. * [How Big Are PHP Arrays (And Values) Really?](http://nikic.github.com/2011/12/12/How-big-are-PHP-arrays-really-Hint-BIG.html) - An article about array internals. * PHP Source Code for Developers: [1](http://blog.ircmaxell.com/2012/03/phps-source-code-for-php-developers.html) [2](http://nikic.github.com/2012/03/16/Understanding-PHPs-internal-function-definitions.html) [3](http://blog.ircmaxell.com/2012/03/phps-source-code-for-php-developers_21.html) [4](http://nikic.github.com/2012/03/28/Understanding-PHPs-internal-array-implementation.html) - A series about the PHP source code. * Collecting Garbage: [1](http://derickrethans.nl/collecting-garbage-phps-take-on-variables.html) [2](http://derickrethans.nl/collecting-garbage-cleaning-up.html) [3](http://derickrethans.nl/collecting-garbage-performance-considerations.html) - A series about the PHP garbage collection internals. * [PHP Sucks! But I Like It!](http://blog.ircmaxell.com/2012/04/php-sucks-but-i-like-it.html) - An article about the pros and cons of PHP. * [PHP Is Much Better Than You Think](http://fabien.potencier.org/article/64/php-is-much-better-than-you-think) - An article about the eovlution of the PHP lanaguage and ecosystem.