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.
Visit the following web sites which have large collections of
ready to use PHP class libraries.
- PHP classes are at
- PEAR (PHP Extension and Application Repository) is a code repository
for PHP extensions and PHP library code similar to Perl's CPAN and is at
- ADODB (Active Data Objects Data Base)
PHP's database access functions are not standardised. Every database extension uses a different
and incompatibile API. This creates a need for a database class library to hide the
differences between the different databases (encapsulate the differences) so we can easily
ADODB currently support MySQL,
, Interbase, Oracle, MS SQL 7,
Foxpro, Access, ADO, Sybase and generic ODBC.
PhpLens is based on ADODB.
- Metabase (Database independent access and management)
- PHP Hot scripts
- Very popular PHP resources
- PHP projects are at
- PHP Lib Netuse
http://phplib.netuse.de (This is deprecated, merged with PEAR)
- PHP widgets
- Generic Framework PHP4
- Source Forge PHP Lib
- Source Forge PHP Snippets, go and click on PHP here
- E-gineer PHP lib
- FAQ PHP
- PHP Lib
- PHP Factory
- PHP Builder site
- PHP developer
- PHP newbie
- PHP walrus
Other PHP utilities are at :
- User Login sample:
- 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
- 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
- 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
- A complete collection of php scripts that work tightly together to
create a highly customizable, dynamic and module oriented website
- 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.
- 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.