PHPackages                             ebidtech/ebt-validator - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Validation &amp; Sanitization](/categories/validation)
4. /
5. ebidtech/ebt-validator

ActiveLibrary[Validation &amp; Sanitization](/categories/validation)

ebidtech/ebt-validator
======================

A simple service that provides common PHP validations

v2.0.4(9y ago)01.5k1MITPHPPHP &gt;=5.4.0

Since Jul 13Pushed 9y ago14 watchersCompare

[ Source](https://github.com/ebidtech/ebt-validator)[ Packagist](https://packagist.org/packages/ebidtech/ebt-validator)[ Docs](https://github.com/ebidtech/ebt-validator)[ RSS](/packages/ebidtech-ebt-validator/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (10)Dependencies (4)Versions (15)Used By (1)

EBT Validator
=============

[](#ebt-validator)

This project provides the `ValidatorService` class. This class encapsulates a few common validations, allowing both **required** and **optional** validations.

Installation
------------

[](#installation)

The recommended way to install is through composer.

Just create a `composer.json` file for your project:

```
{
    "require": {
        "ebidtech/ebt-validator": "2.*"
    }
}
```

And run these two commands to install it:

```
$ curl -sS https://getcomposer.org/installer | php
$ composer install
```

Now you can add the autoloader, and you will have access to the library:

```
