HTML_Common2
, (*1)
This is a repository for PEAR HTML_Common2 package that has been migrated from PEAR SVN., (*2)
The package contains an abstract HTML_Common2
class that implements methods for HTML attributes handling and
setting document-wide options. It is quite helpful as a building block for packages generating HTML and is currently
used as such by PEAR HTML_QuickForm2 package. The package is a PHP5 rewrite of PEAR HTML_Common., (*3)
Features:, (*4)
Please report all issues via the [PEAR bug tracker] or Github issues., (*5)
End-user documentation as well as
generated API documentation for current release is available
on PEAR website., (*6)
Pull requests are welcome., (*7)
Installation
The package may be installed either with PEAR, (*8)
$ pear install HTML_Common2
or with composer, (*9)
$ composer require pear/html_common2
Note that composer.json
does not define include-path
option: require_once 'HTML/Common2.php'
will not
work with composer installation, use autoloading., (*10)
Testing, Packaging and Installing (Pear)
To test, run either, (*11)
$ phpunit tests/
or, (*12)
$ pear run-tests -r
To build, simply, (*13)
$ pear package
To install from scratch, (*14)
$ pear install package.xml
To upgrade, (*15)
$ pear upgrade -f package.xml