PHPackages                             linelab-studio/zf2-validator-api-client - 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. linelab-studio/zf2-validator-api-client

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

linelab-studio/zf2-validator-api-client
=======================================

ZF2 Validator

1.1.1(6y ago)033MITPHPPHP &gt;=5.5

Since Oct 2Pushed 6y ago1 watchersCompare

[ Source](https://github.com/linelab-studio/zf2-validator-api-clinet)[ Packagist](https://packagist.org/packages/linelab-studio/zf2-validator-api-client)[ RSS](/packages/linelab-studio-zf2-validator-api-client/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (3)Versions (12)Used By (0)

Validator
=========

[](#validator)

Validator Email and Phone - Zend Framework 2.

Requirements
------------

[](#requirements)

PHP 5.5 and later

Installation &amp; Usage
------------------------

[](#installation--usage)

### Composer

[](#composer)

To install the bindings via [Composer](http://getcomposer.org/), add the following to `composer.json`:

```
{
  "require": {
    "linelab-studio/zf2-validator-api-client": "1.0.1"
  }
}
```

Then run `composer install`

### Usage

[](#usage)

Add configuration data. The configuration can be in the module configuration or in the project autoload files.

```
'LabValidator' => [
    'apiKey' => 'exampleApiKey',
    'host' => 'https://localhost/validator/api'
],
```

Creation of the ZF2 Validator class.

Two validators are available:

- EmailValidator (namespace LabValidator\\EmailValidator)
- PhoneValidator (namespace LabValidator\\PhoneValidator)

```

```

Adding a validator to the field in the form

```
public function validatorAction()
{
    $form = new Form();
    $form
       ->add([
            'name' => 'email',
            'type' => 'email',
            'attributes' => [
                'required' => true,
            ],
            'options' => [
                'label' => 'Email',
                'validators' => [
                    $this->serviceLocator->get(EmailAddressValidator::class)
                ]
            ]
        ]);
}
```

Author
------

[](#author)

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~10 days

Recently: every ~25 days

Total

11

Last Release

2307d ago

PHP version history (2 changes)1.0.1PHP &gt;=7.1

1.0.5PHP &gt;=5.5

### Community

Maintainers

![](https://www.gravatar.com/avatar/17de37f40ab01ff8410ae50c59e116de692903e376fb4a9779eaf72a27b1552c?d=identicon)[pawella](/maintainers/pawella)

---

Top Contributors

[![jakub-gloc](https://avatars.githubusercontent.com/u/26434235?v=4)](https://github.com/jakub-gloc "jakub-gloc (22 commits)")

---

Tags

validatorZend Framework

### Embed Badge

![Health badge](/badges/linelab-studio-zf2-validator-api-client/health.svg)

```
[![Health](https://phpackages.com/badges/linelab-studio-zf2-validator-api-client/health.svg)](https://phpackages.com/packages/linelab-studio-zf2-validator-api-client)
```

###  Alternatives

[respect/validation

The most awesome validation engine ever created for PHP

5.9k37.4M380](/packages/respect-validation)[seld/jsonlint

JSON Linter

1.3k217.8M206](/packages/seld-jsonlint)[composer/spdx-licenses

SPDX licenses list and validation library.

1.4k184.2M25](/packages/composer-spdx-licenses)[opis/json-schema

Json Schema Validator for PHP

64236.9M185](/packages/opis-json-schema)[laminas/laminas-validator

Validation classes for a wide range of domains, and the ability to chain validators to create complex validation criteria

15544.9M187](/packages/laminas-laminas-validator)[ergebnis/json-schema-validator

Provides a JSON schema validator, building on top of justinrainbow/json-schema.

3626.9M7](/packages/ergebnis-json-schema-validator)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
