17 useful PHP classes and libraries

Source: Internet
Author: User
Tags export class php database most popular database

In our daily program development, using a good and mature PHP class can reduce a lot of manual coding. Using these general APIs can greatly reduce our development work. Today, we will focus on some rare but practical PHP classes, libraries, and components, which will help you improve program functions, more importantly, reduce application development time.

I. Databases

1. ADODB-database abstract class

Official website address: http://adodb.sourceforge.net/

ADODB is a PHP database abstract class, it supports the database including: MySQL, PostgreSQL, Oracle, ms SQL, SQLite and so on, it basically covers the current most popular database, it is fully open-source and free, and can be easily and quickly applied to your program. It also has very strong portability. The most important thing is that it has Chinese usage methods!

 

2,PHP dB class-MySQL Database Class

Address: http://slaout.linux62.org/php/index.html

PHP dB class is a convenient PHP/MySQL development class, which is very simple and flexible, and has little code. It also provides debugging functions. You only need to add simple parameters to query related data tables and output errors during debugging.

 

3,Sqlcache-Cache database query result class

: Http://www.phpclasses.org/package/2646-PHP-Cache-database-query-results-in-files-.html

Sqlcache has only one PHP file. It is mainly used to cache SQL database query results. This is done to avoid increasing database access pressure and reduce execution of repeated query languages, this speeds up Website access.

 

4,Iam backup-MySQL database backup and recovery

: Http://freshmeat.net/projects/iambackup/

Iam backup is a MySQL database backup and recovery class. It supports gzip online File compression to improve database backup and recovery performance.

 

5. DataGrid-database output Display Control 

: Http://www.apphp.com/php-datagrid/index.php

DataGrid is a database display control developed using PHP. It is simple, novel, powerful, and specially prepared for Web developers. After the DataGrid is bound to a database, you only need to modify the database to modify the output mode. That is to say, you only need to modify the data and do not have to worry about how to display it!

 

Ii. Security

1. phpcaptcha-generate image Verification Code

: Http://www.ejeliot.com/pages/2

Phpcaptcha can generate image verification codes, which must be supported by gd1 or 2 of PHP 4 and FreeType fonts.

 

2,User input Security Processing

: Http://codeassembly.com/How-to-sanitize-your-php-input/

A simple and practical class that ensures the security of user input data. It checks the data submitted by $ _ Get, $ _ post, $ _ request, and $ _ cookie, filter out the dangerous characters to ensure that the data they submit meets the program requirements.

 

3,HTML Purifier

: Http://www.ecisp.cn/download/htmlpurifier-4.2.0.zip

HTML purifier is a standard HTML filter class written in PhP5. It has the ability to delete, verify, set secure white list code, and filter out malicious code (such as). It can also verify whether the current HTML file meets the standards.

 

4,Phpaes-PHP Encryption Class

: Http://www.ecisp.cn/download/phpAES.zip

Phpaes can implement 128, 192, and 256-bit AES encryption. It does not require mcrypt extensions and can be used in any PHP program. It uses PHP 100% for development and fully complies with FIPS 197 standards.

 

Iii. Image Processing

1,Phpthumb-PHP thumbnail

: Http://phpthumb.gxdlabs.com/

Phpthubm is a lightweight image processing class. Its main function is to generate a thumbnail, which has the ability to scale an image by adjusting the width and height, create a new image, cut or rotate the image.

 

2,Wideimage-Image Processing

: Http://wideimage.sourceforge.net/demos/

Wideimage is an image processing class that uses PhP5 for image writing. It is a pure PHP class and has the advantage that it can process any image without gd2, this class has common image operations and is easy to use.

 

3,PHP will generate text image class

: Http://www.daftlogic.com/projects-text-to-image.htm

This type can convert text into images, such as converting an email address into an image or converting a digital phone number into an image. This helps reduce the amount of your information that has been illegally collected by the Internet.

 

Iv. File Processing

1,Tcpdf-generate PDF files

: Http://www.tcpdf.org/

Tcpdf is a class for generating PDF documents. It is currently the only Php class for generating PDF files on the Internet. It supports UTF-8 encoding and bidirectional encryption PDF file algorithms.

 

2,Parsecsv 

: Http://code.google.com/p/parsecsv-for-php/

Parsecsv is a PHP class used to read CSV files. It can easily process CSV data and supports the identification of data separated by commas, double quotation marks, and spaces.

 

3. Export Excel files 

: Http://phpexcel.codeplex.com/

A lightweight, simple, and fast PHP Data export class to an Excel file. It supports setting the title (author, title, description,...) of an Excel file ,...), multiple worksheets, different fonts and styles, cell border styles, fill, gradient and other functions, you can also add images to workbooks, etc,

 

V. Charts and figures

1,XML/SWF charts-chart generation class

: Http://www.maani.us/xml_charts/

XML/SWF charts is a simple but powerful chart generation tool that can read and generate Attractive Data graphs from XML files. XML data sources can be generated using scripts in any language, such as PHP, ASP, JSP, etc)

 

2,Jpgraph-chart generation class 

: Http://jpgraph.net/

Jpgraph is a graph library developed with PhP5 object-oriented. It can generate common data charts and easily integrate them into your PHP scripts.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.