Cool PHP Libraries to Use in Your Projects

Sayed Ahmed
Nov 29 · 2 min read
Cool PHP Libraries to Use in Your Projects1. 
ShellWrap – Shell Wrapper: ShellWrap allows you to work powerful Linux/Unix command line tools in PHP through an easy syntax: https://github.com/MrRio/shellwrap2.

PHP Geo – Geo Location Library : For calculating distances between geographic coordinates with high precision.https://github.com/mjaschen/phpgeo3.

ColorJizz-PHP – Color Manipulation Library: Can convert between different color formats and do simple color arithmetic.https://github.com/mikeemoo/ColorJizz-PHP4.

HTMLPurifier – HTML XSS Protection: it protects your code from XSS attacks by using a combination of robust whitelists and aggressive parsing. It also makes sure that the resulting markup is standards compliant.http://htmlpurifier.org/5.

Upload – For Handling File Uploads : Simplifies file uploading and validation. When a form is submitted, the library can check the type of file and size:https://github.com/codeguy/Upload6.

Omnipay – Payment Processing Library: A payment processing library for PHP. It has a clear and consistent API and supports dozens of gateways. With this library, you only need to learn one API and work with a variety of payment processors.https://github.com/adrianmacneil/omnipay7.

Gaufrette – File System Abstraction Layer: Provides a filesystem abstraction layer.It makes it possible to work with local files, FTP servers, Amazon S3 and more in the same way.https://github.com/KnpLabs/Gaufrette8.

Faker – Fake Data Generator: Generates fake data for you such as populating a test database or generate sample data for your web application.https://github.com/fzaninotto/Faker9.

Filterus – Filtering Library: Filtering library, but it can not only validate, but also filter input to match a preset pattern.https://github.com/ircmaxell/filterus10.

Validation – Input Validation Engine: Validation claims to be the most awesome validation engine ever created for PHP.https://github.com/Respect/Validation11.

Ubench – Micro Benchmarking Library : Monitors execution time and memory usage.https://github.com/devster/ubench12.

Goutte – Web Scraping Library : Goutte is a library for scraping websites and extracting data.https://github.com/fabpot/Goutte13.

Buzz – Simple HTTP Request Library: For issuing HTTP requests.https://github.com/kriswallsmith/Buzz14.

Requests – Easy HTTP Requests: To issue HTTP requests.https://github.com/rmccue/Requests15.

nappy – Snapshot/PDF Library: Allows you to take snapshots or PDFs of URLs or HTML documents.https://github.com/KnpLabs/snappy16.

ImageWorkshop – Image Manipulation with Layers : Lets you manipulate images with layers. With it you can resize, crop, make thumbnails, add watermarks and more.
http://phpimageworkshop.com/
Sayed Ahmed

Written by

Software Engineer, Data Scientist, Machine Learning Engineer.