Whole document tree
    

Whole document tree

PHP HOW-TO: PHP Libraries Next Previous Contents

9. PHP Libraries

The PHP is a object-oriented scripting language. Hence PHP code is "classes, classes, classes and classes". When you write PHP code you must design your classes such that they are re-usable or they use existing PHP classes. There are hundreds of PHP classes already written and ready to use. There are classes for accessing databases, classes for generating XML, HTML forms, classes for creating tables, forms and other HTML objects. If you write some generic classes then please upload to sites. By year 2005, there will be more than hundred million re-usable PHP classes. Advantage of PHP classes are they provide - data hiding, inheritance, encapsulation, reliability, reusability and polymorphism. The most important PHP sites are PHP classes and PEAR as given below.

9.1 Classes and PEAR

Visit the following web sites which have large collections of ready to use PHP class libraries.

9.2 Other PHP Utilities

Other PHP utilities are at :

  • User Login sample: http://www.devshed.com/Server_Side/PHP/Commerce1

  • phpPDFtable is a class written in php to ease the creation of tables in PDF files. It requires php (4.0 but should run with 3.x too), and pdflib http://sourceforge.net/projects/phppdftable

  • Data-Admin aims to provide a PHP based interface to Database Administration. This will not be limited to just one or two databases. Also, the underlying class library encapsulates the native PHP database calls allowing the programmer to use one set of fu http://sourceforge.net/projects/dadmin

  • PSlib is a PHP library for generating PostScript files. It offers an easy way of generating PostScript files: simple call PSlib functions from within your PHP script and the PS files are created on the fly http://sourceforge.net/projects/pslib

  • A complete collection of php scripts that work tightly together to create a highly customizable, dynamic and module oriented website http://sourceforge.net/projects/twebs

  • phpOpenTracker is a comprehensive solution for your site- and visitor-tracking needs. The collected data is stored in a SQL database, allowing complex, yet easy analysis. A powerful API for analysis and report generation (HTML or PDF output) is included. http://www.phpopentracker.de

  • PHPShopCart is a shopping-cart web application demo written in PHP and designed to connect to a MySQL database. It was written for the book, "A Guide to Databases under Linux" (Syngress Media) but is available under the GNU Public License. http://sourceforge.net/projects/phpshopcart

Next Previous Contents