Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A simple component for writing output to the console for CLI PHP apps
PHP
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
src
.gitignore
.hgignore
LICENSE.txt
README.md
build.properties
build.xml
package.xml

README.md

ValidationLib

ValidationLib is a lightweight collection of classes for validating data. It is inspired by Zend_Validation, but put on a much-needed diet :)

System-Wide Installation

ValidationLib should be installed using the PEAR Installer. This installer is the community's de-facto standard for distributing PHP components.

sudo pear channel-discover pear.gradwell.com
sudo pear install --alldeps Gradwell/ValidationLib

After installation, you will find ValidationLib inside your local PEAR repository, which on Linux systems is normally /usr/share/php.

Documentation

The best documentation for ValidationLib are the unit tests, which are shipped in the package. You will find them installed into your PEAR repository, which on Linux systems is normally /usr/share/php/test.

Development Environment

If you want to patch or enhance this component, you will need to create a suitable development environment. All components created by phix

#phpunit
sudo pear channel-discover pear.phpunit.de
sudo pear channel-discover components.ez.no
sudo pear channel-discover pear.symfony-project.com
sudo pear install --alldeps phpunit/PHPUnit

# phing
sudo pear channel-discover pear.phing.info
sudo pear install --alldeps phing/phing

# pdepend
sudo pear channel-discover pear.pdepend.org
sudo pear install --alldeps pdepend/PHP_Depend-beta

# phpdoc
sudo pear install --alldeps pear/PhpDocumentor

# phpmd
sudo apt-get install php5-imagick
sudo pear channel-discover pear.phpmd.org
sudo pear install --alldeps phpmd/PHP_PMD-alpha

# phpcpd
sudo pear install --alldeps phpunit/phpcpd

# phpcs
sudo pear install --alldeps pear/PHP_CodeSniffer-beta

# phpcb
sudo pear install --alldeps phpunit/PHP_CodeBrowser

# phix
sudo pear channel-discover pear.gradwell.com
sudo pear install --alldeps Gradwell/phix

You can then clone the git repository:

# ValidationLib
git clone git://github.com/Gradwell/ValidationLib.git
Something went wrong with that request. Please try again.