Instantly share code, notes, and snippets.

Embed
What would you like to do?
Awesome PHP — A curated list of amazingly awesome PHP libraries, resources and shiny things.
@ghost

This comment has been minimized.

ghost commented Mar 13, 2013

Your awesome list is awesome!
TYVM!

@maxailloud

This comment has been minimized.

maxailloud commented Mar 16, 2013

Link for Composition is dead, or the library is dead I don't know.

@mageekguy

This comment has been minimized.

mageekguy commented Mar 16, 2013

You can add atoum, the simple, modern and intuitive unit testing framework for PHP ≥ 5.3.

@mickaelandrieu

This comment has been minimized.

mickaelandrieu commented Mar 17, 2013

Yay, many Sensio Labs tools :) atoum is a serious concurrent of PHPUnit ;)

@Ragazzo

This comment has been minimized.

Ragazzo commented Mar 17, 2013

what about another tool for acceptance/functional tests - https://github.com/Codeception/Codeception? i see behat+mink are noticed here)

@jubianchi

This comment has been minimized.

jubianchi commented Mar 18, 2013

You could also add phpswitch to the list of PHP versions managers : https://github.com/jubianchi/phpswitch/ / http://jubianchi.fr/phpswitch/

Also, +1 for atoum which is a serious concurrent for PHPUnit!

@gnugat

This comment has been minimized.

gnugat commented Mar 18, 2013

Maybe you can add PHP: Innocent villagefolk or a Pillagin’ Pirate? in the Reading section?
It's an article explaining how PHP steals great things from other languages, making it awesome :) .

@ziadoz

This comment has been minimized.

Owner

ziadoz commented Mar 18, 2013

@maxailloud I've fixed the dead link, looks like it moved. Thanks for letting me know.

I've added a bunch more libraries to the list, as well as Pádraic's article.

I'm planning to split everything out into categories at some point, as things are bit chaotic right now. I also want to add a new People section, that lists noteworthy members of the community too.

@dmartuszewski

This comment has been minimized.

dmartuszewski commented Mar 18, 2013

You should add CakePHP - Full Stack Framework

@iRay

This comment has been minimized.

iRay commented Mar 18, 2013

Where is Yii Framework??? You should add it!

@foertel

This comment has been minimized.

foertel commented Mar 19, 2013

Is there nothing pretty, standalone to deal with yaml?

Thanks for the list big time!

@ziadoz

This comment has been minimized.

Owner

ziadoz commented Mar 19, 2013

@foertel Check out the Symfony Components, they have one specifically for parsing YAML. Alternatively there is a PECL library you can install too.

@vlucas

This comment has been minimized.

vlucas commented Mar 19, 2013

You should add Bullet - It's a functional-style micro framework that conforms to the HTTP spec.

@skyzyx

This comment has been minimized.

skyzyx commented Mar 20, 2013

Mimetypes handles file extension → mimetype conversion, sourcing data from the Apache Web Server project.

@pvorb

This comment has been minimized.

pvorb commented Mar 20, 2013

@ziadoz

This comment has been minimized.

Owner

ziadoz commented Mar 21, 2013

@pvorb Thanks. I've updated the link.

@czogori

This comment has been minimized.

czogori commented Mar 23, 2013

You can add Phinx - database migrations, https://github.com/robmorgan/phinx

@KOLANICH

This comment has been minimized.

KOLANICH commented Mar 26, 2013

https://github.com/KOLANICH/PHP-Backuper - Pure PHP backup framework.
Used to make incrmental backups of the site and send it to cloud storages.
Now allows to upload using WebDAV (https://www.box.com/ , http://disk.yandex.ru/, skydrive support it and google drive and DropBox via some services such as https://dav-pocket.appspot.com/, https://dropdav.com/ and http://otixo.com/) , SugarSync and DropBox native uploaders via emulating user activity are obsolete, we are working on OAuth access to them )
PS. It doesn't support Composer (read Readme.md and you will understand why) because I dislike Composer architecture. If you want to make it work using Composer you will need to modify some includes in the top of the files

@KOLANICH

This comment has been minimized.

KOLANICH commented Mar 26, 2013

https://github.com/KOLANICH/dBug - My fork of some good debug output library
Supports Composer, because has no dependences (only default PHP package required).

@geoom

This comment has been minimized.

geoom commented Apr 3, 2013

how is it that there's no kohana on this list?

http://kohanaframework.org/

@Tocacar

This comment has been minimized.

Tocacar commented Apr 3, 2013

Please add ProTalk under 'Resources' http://protalk.me

Thanks!

@ghost

This comment has been minimized.

ghost commented Apr 16, 2013

The new categorization is great, thank you.

@MattKetmo

This comment has been minimized.

MattKetmo commented Apr 17, 2013

Some usefull utilities :

@ziadoz

This comment has been minimized.

Owner

ziadoz commented Apr 17, 2013

@MattKetmo Thanks for the suggestions. I've added them to the list.

@frangeris

This comment has been minimized.

frangeris commented Apr 18, 2013

Just awesome....! thx so much for list it....!

@ivan1986

This comment has been minimized.

ivan1986 commented Apr 19, 2013

Hello
please add

@dracony

This comment has been minimized.

dracony commented Apr 29, 2013

@peschee

This comment has been minimized.

peschee commented May 6, 2013

You could also include unicorn. It's a set of HTTP libraries, it includes a php version as well: http://unirest.io/#php

@horechek

This comment has been minimized.

horechek commented May 19, 2013

mPDF - A PHP class to generate PDF files from HTML with Unicode/UTF-8 and CJK support.

@darkphoenixff4

This comment has been minimized.

darkphoenixff4 commented May 22, 2013

Carbon's up there, but you forgot Datum, which I believe was on this list before...

Datum - https://github.com/dandoescode/datum

Also, the templates section seems to be missing the granddaddy of PHP templating systems, Smarty, and also PHPTAL. And what about Log4PHP under logging?

@goncin

This comment has been minimized.

goncin commented Jun 18, 2013

I missed mention to Yii Framework - http://yiiframework.com

@GeeH

This comment has been minimized.

GeeH commented Jun 18, 2013

Argh, you haven't added my favourite framework, "X Framework", please add it to the list now you hater!!!!1!!!

@makasim

This comment has been minimized.

makasim commented Jun 18, 2013

Would it be possible to add a payment lib payum lib?

P.S. I just want you be informed it exists.

@willdurand

This comment has been minimized.

willdurand commented Jun 18, 2013

Nice! You may love Negotiation - https://github.com/willdurand/Negotiation - too, a standalone lib that allows you to implement content negotiation into your app.

@Ph3nol

This comment has been minimized.

Ph3nol commented Jun 18, 2013

About "Notifications" part, I humbly suggest my NotificationPusher library, for easy devices notifications push (Apple, Android).

https://github.com/Ph3nol/NotificationPusher

@cebe

This comment has been minimized.

cebe commented Jun 18, 2013

Where is Yii Framework??? You should add it!

+1 this list lacks an important framework

@arnolanglade

This comment has been minimized.

arnolanglade commented Jun 18, 2013

Nice !!

@KingCrunch

This comment has been minimized.

KingCrunch commented Jun 18, 2013

I missed mention to Yii Framework

We are talking about "Awesome PHP Libraries and Resources" 😄

@cordoval

This comment has been minimized.

cordoval commented Jun 18, 2013

you miss the best one #YOLO framework

/cc @igorw how dare they

@martinbean

This comment has been minimized.

martinbean commented Jun 18, 2013

Suggestion to add ToroPHP, a micro-framework.

@ghost

This comment has been minimized.

ghost commented Jun 18, 2013

This list is incomplete without Yii

@ghost

This comment has been minimized.

ghost commented Jun 18, 2013

Hey @ziadoz, very nice list and thank you for adding my projects to it!

I just wanted to give you a heads up on some of my projects listed.

  • Version has been deprecated in favor of my newer semantic version handling library. It is also called Version, but hosted under my herrera-io organization. The library has a more broken out API, and supports v2.0.0-rc.2 of the Semantic Versioning specification as opposed to v2.0.0-rc.1.
  • RunkitTestCase does not exist anymore. The project was abandoned due to how outdated the official runkit extension is, and after realizing that there are better ways to perform testing. (I am aware of zenovich's work on an unofficial extension.) Using my experience with PHPUnit, I have created a suped up version of the standard PHPUnit_Framework_TestCase class: TestCase. It manages the creation and clean up of temporary directories and files, as well as providing a simple way to access protected and private class members.
  • Bcrypt has been dropped in favor of ircmaxell's PHP Password Lib project. There were some flaws in the design of my library which ircmaxell's library had already taken care of.

I have another project that may be interesting to others, which could be added to your list if worthy:

Wise is a project built on the Symfony Config library. Its purpose is to try and bring the configuration system found in Symfony (imports, placeholder values, normalization, validation, etc) and make them available for general use outside of Symfony.

@panique

This comment has been minimized.

panique commented Jun 18, 2013

Wow! When i see this, then all concerns a la "PHP is the wrong language!" are busted away! This gist should be transformed to a larger interactive website in a very prominent spot in the PHP Community.

@ziadoz

This comment has been minimized.

Owner

ziadoz commented Jun 18, 2013

@panique Thanks. I plan on making a website at some point, I just need to find some time in my schedule. :)

@meenie

This comment has been minimized.

meenie commented Jun 18, 2013

@ziadoz - Just noticed you added my library (Munee) to your list a couple months ago. Thanks for doing that :). Also, great work putting this all together! Definitely a great resource for the PHP Community.

@lisachenko

This comment has been minimized.

lisachenko commented Jun 19, 2013

Suggestion to add Go! Aspect-Oriented Framework for PHP

@DanKing123

This comment has been minimized.

DanKing123 commented Jun 19, 2013

Excellent list!

Someone else has already mentioned it - but should definitely include log4php: http://logging.apache.org/log4php/

@ghost

This comment has been minimized.

ghost commented Jun 19, 2013

Hello :-)

Some suggestions (only stable libraries):

  • File: Hoa\Mime, to manipulate a MIME types database and get some related informations about streams;
  • Testing: Hoa\Praspel, a specification language for contract-based testing (a research project) and Hoathis\Atoum, an automatic unit test generator from Praspel to atoum;
  • Code Analysis: Hoa\Compiler, a LL(k) (and LL(1)) compiler compiler, grammar are written in the PP language;
  • Command Line: Hoa\Console, tools related to console, like manipulating cursor, window, readline with autocompletion (see it in action), processus, getoption etc.;
  • Text and Numbers: Hoa\String, manipulate UTF-8 string in a natural way;
  • Miscellaneous: Hoa\Websocket, a WebSocket server, and Hoa\Eventsource, an EventSource server.
@erikaheidi

This comment has been minimized.

erikaheidi commented Jun 19, 2013

Awesome, thanks for sharing all these great stuff!

@rdohms

This comment has been minimized.

rdohms commented Jun 19, 2013

Great list @ziadoz, would you consider adding DMS components also, or at least DMS\Filter (https://github.com/rdohms/DMS-Filter)

@ceeram

This comment has been minimized.

ceeram commented Jun 19, 2013

@euskadi31

This comment has been minimized.

euskadi31 commented Jun 19, 2013

Opengraph for PHP5.3+ => https://github.com/euskadi31/Opengraph

@mattsah

This comment has been minimized.

mattsah commented Jun 20, 2013

Wow, the only thing I got on there was Parody under Testing... by far the least useful of my PHP projects.

@warrenski

This comment has been minimized.

warrenski commented Jun 20, 2013

You should add the excellent FPDF library under the "PDF" section.

@praisedpk

This comment has been minimized.

praisedpk commented Jun 20, 2013

Add "Portable UTF8" for unicode handling in PHP. http://pageconfig.com/post/portable-utf8

@caseyamcl

This comment has been minimized.

caseyamcl commented Jun 20, 2013

You should add Solarium to the "Search" libraries: http://www.solarium-project.org/

@ghost

This comment has been minimized.

ghost commented Jun 20, 2013

When I saw this list I felt like a child in candyshop... Great job!

@chanmix51

This comment has been minimized.

chanmix51 commented Jun 26, 2013

Very nice to have a comprehensive list of useful librairies. Nice job. Would you consider adding https://github.com/chanmix51/Pomm to it ?

@MrBoolean

This comment has been minimized.

MrBoolean commented Jun 26, 2013

ty great list!

@toby-griffiths

This comment has been minimized.

toby-griffiths commented Jun 28, 2013

Awesome list! Thanks for sharing :o)

@diarmaid-mcmanus

This comment has been minimized.

diarmaid-mcmanus commented Jul 2, 2013

Great list. I'd recommend adding RIPS Code Scanner, which looks for security issues in PHP code.

@ayanray

This comment has been minimized.

ayanray commented Jul 5, 2013

great list. Ive starred a number of potentially solid ones. Thanks for sharing!

@yiqing-95

This comment has been minimized.

yiqing-95 commented Jul 17, 2013

great list ! thanks for sharing .

@dukuo

This comment has been minimized.

dukuo commented Jul 22, 2013

Thank you for sharing!

@arjanvdbos

This comment has been minimized.

arjanvdbos commented Jul 25, 2013

Awesome list, thanks for sharing! You should add VerbalExpressionsPhp. A library to easily build regular expressions.

@noodlehaus

This comment has been minimized.

noodlehaus commented Aug 6, 2013

This list is really helpful. Also, can you please add Dispatch to the Micro Frameworks section? Regards.

@Aymkdn

This comment has been minimized.

Aymkdn commented Aug 10, 2013

There is also Hermes a very light router for PHP

@hason

This comment has been minimized.

hason commented Aug 23, 2013

Can you please add PsySH to the Command Line section?

@ziadoz

This comment has been minimized.

Owner

ziadoz commented Aug 23, 2013

@Hanson Great suggestion. I've added it.

@terion-name

This comment has been minimized.

terion-name commented Aug 27, 2013

Awesome, awesome list!

Here is one more good thing to add, I think: https://github.com/serbanghita/Mobile-Detect

@triplepoint

This comment has been minimized.

triplepoint commented Sep 21, 2013

Would my units of measure conversion library be appropriate for this list? https://github.com/triplepoint/php-units-of-measure

@mistajolly

This comment has been minimized.

mistajolly commented Sep 25, 2013

Thanks for this list. Does anybody recommend a good HTML Forms library?

@ziadoz

This comment has been minimized.

Owner

ziadoz commented Sep 30, 2013

@triplepoint That looks great. I've added it.

@mistajolly Check out the Symfony form component.

@ziadoz

This comment has been minimized.

Owner

ziadoz commented Oct 15, 2013

Todo List:

  • Add Anthony Ferrara's "Beyond" series to Reading.
@fedir

This comment has been minimized.

@karimahmed

This comment has been minimized.

karimahmed commented Oct 28, 2013

Thanks for a great list, bookmarked. I would add https://github.com/dompdf/dompdf HTML to PDF converter

@lunika

This comment has been minimized.

lunika commented Nov 5, 2013

In the ecommerce section you can add thelia :-)

@ihabunek

This comment has been minimized.

ihabunek commented Nov 21, 2013

A couple of suggestions:

@philsturgeon

This comment has been minimized.

philsturgeon commented Nov 26, 2013

Geotools moved to the League.

https://github.com/php-loep/Geotools

@philsturgeon

This comment has been minimized.

philsturgeon commented Nov 26, 2013

PHP Standards Working Group - The PHP standards working group.

We've been called the PHP-FIG for a really long time :)

http://www.php-fig.org/

@adri

This comment has been minimized.

adri commented Nov 26, 2013

Great list thanks! I noticed that this is a duplicate:
Dissect - A set of tools for lexical and syntactical analysis.

@ziadoz

This comment has been minimized.

Owner

ziadoz commented Nov 27, 2013

@philsturgeon @adri Thanks. I've made those changes at the list's new home: https://github.com/ziadoz/awesome-php

@Zeokat

This comment has been minimized.

Zeokat commented Mar 1, 2014

Amazing list, this project goes directly to Zeokat bookmarks.

@hexhov

This comment has been minimized.

hexhov commented Jul 25, 2014

Big thx very helpful list.

@imagic5004

This comment has been minimized.

imagic5004 commented Jun 25, 2015

You are the best, thanks 😄

@vovech

This comment has been minimized.

vovech commented Mar 22, 2016

People, how about to provide links for PHP Learning? I have some to share..

@pietropr

This comment has been minimized.

pietropr commented Sep 11, 2018

thx, very helpful

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment