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:

PHP Geo – Geo Location Library : For calculating distances between geographic coordinates with high precision.

ColorJizz-PHP – Color Manipulation Library: Can convert between different color formats and do simple color arithmetic.

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.

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:

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.

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.

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

Filterus – Filtering Library: Filtering library, but it can not only validate, but also filter input to match a preset pattern.

Validation – Input Validation Engine: Validation claims to be the most awesome validation engine ever created for PHP.

Ubench – Micro Benchmarking Library : Monitors execution time and memory usage.

Goutte – Web Scraping Library : Goutte is a library for scraping websites and extracting data.

Buzz – Simple HTTP Request Library: For issuing HTTP requests.

Requests – Easy HTTP Requests: To issue HTTP requests.

nappy – Snapshot/PDF Library: Allows you to take snapshots or PDFs of URLs or HTML documents.

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

Written by

Software Engineer, Data Scientist, Machine Learning Engineer.