Best libraries / plugins for CakePHP 3/4

If you love CakePHP as much as me, here is a quick gift for you.
A curated list of amazingly awesome CakePHP 3.x+ plugins, resources and shiny things.

https://github.com/FriendsOfCake/awesome-cakephp

You will find a little of everything, plugins for images, I18n, pdf, search…
Cherry on the cake, some of this ressources are compatible with CakePHP 4.

Which plugins for CakePHP are the most useful ?

This is only my personal opinion but here is some plugins of this amazing list that i use in almost my projects.


For image, file upload, this is a classic, easy to configure.

https://github.com/FriendsOfCake/cakephp-upload


For making PDF, this is the best library, my advise is to use wkhtmltopdf (https://wkhtmltopdf.org/) for rendering.
With that, you can do PDF very easily with bootstrap

https://github.com/FriendsOfCake/CakePdf


If you have background tasks to do with cron, or you need deferred actions (like sending email) Queue Plugin is the perfect solution.

https://github.com/dereuromark/cakephp-queue


You need to put your site on maintenance, no problem there is also a plugin for that.

https://github.com/dereuromark/cakephp-setup/blob/master/docs/Maintenance/Maintenance.md


Because sanitize your data is primordial before insertion on database, I personnaly use this plugin based on htmlpurifier (http://htmlpurifier.org/).
With this, you can say bye bye to xss injection (especially if you don’t use h() function in your .ctp )

https://github.com/chrisShick/CakePHP3-HtmlPurifier –> before 3.6
https://github.com/chrisShick/CakePHP3-HtmlPurifier/tree/v2 —> for 3.6 +


And a last one, if you need to quickly integrate boostrapt for your forms.
It’s also do Modal, Paginator, etc…
Just read the doc for use good version.

https://github.com/Holt59/cakephp3-bootstrap-helpers


After that, you are free to explore the list according to your needs 😉

Leave a Reply