10 php classes you must use

by krike in Other / Round-Ups on 19 Jun 2011


Here is a list of 10 excellent php classes you should defenitly consider using into your next projects. Not only will it speed up your process of development, because you won’t have to write it yourself, but it will allow you to focus on more important parts of your project and save you a lot of time and trouble.

HTML helper class

HTML helper class

One of the things that can make your scripts really hard to read and take up much space are inline HTML tags. This helper class makes it possible to write inline html tags in a really simple an clean way.

View php class

FPDF class

FPDF class

FPDF is a PHP class which allows to generate PDF files with pure PHP, that is to say without using the PDFlib library. F from FPDF stands for Free: you may use it for any kind of usage and modify it to suit your needs.

View php class

KeyGen class

KeyGen class

Keygen is a PHP class that can be used to generate random numbers, strings and serial numbers. The class has 3 methods that you can use: random, serial, customSerial.

View php class

File explorer class

File explorer class

you already worked with files and directories in PHP then you will know that the default copy, delete(unlink) functions are ok to use on files but when you want to delete or copy a directory with content in it, it’s an whole other story. This class gives you the ability to easily delete, create, move, copy files and directories with content.

View php class

Data validation

Data validation

The key to a stable and secure application or website is data validation. Validating things like email addresses, numbers, and other data can be very time consuming and add a lot of extra lines of code to your website if you want to do it the right way. This class can make the data validation part of website development a lot easier.

View php class

PHPexcel class

PHPexcel class

PHPexcel provides a set of classes for the PHP programming language, which allow you to write to and read from different file formats, like Excel 2007, PDF, HTML, …

View php class

PHP user class

PHP user class

php user class is an easy to use php snippet for user manipulation (register, login, etc.) for your php & MySQL driven applications. The aim of this project is to provide a generic class that can be used by any developer no matter what are the needs of the project that is going to be used.

View php class

Basic SQL Injection Protection class

Basic SQL Injection Protection class

This class can cleanup harmful text from request parameters. It can check a given parameter value of $_GET, $_POST or $_REQUEST super-global variables and remove certain types of text values that are usually used to perform SQL injection attacks.

View php class

Text Pattern Parser class

Text Pattern Parser class

This class can extract text between two text sections. It can search a given text for a given start text. The class can return the text contained between the initial text and another final text.

View php class

PHPMailer class

PHPMailer class

PHP email transport class featuring multiple file attachments, SMTP servers, CCs, BCCs, HTML messages, and word wrap, and more. It can send email via sendmail, PHP mail(), or with SMTP. Methods are based on the popular AspEmail active server component.

View php class

Written by krike

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam sit amet nisl nisl. Ut interdum libero vitae quam ultricies et lacinia elit aliquet. Praesent tincidunt, sem tempus feugiat feugiat, turpis tellus scelerisque erat, sit amet feugiat neque arcu ac lectus. Sed at mi et elit interdum scelerisque vitae eu felis.

krike has written 77 posts.