PHPackages                             jincor/verify-php-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. jincor/verify-php-client

ActiveLibrary

jincor/verify-php-client
========================

A PHP library which encapsulates interaction with Jincor Verify service

051PHP

Since Nov 30Pushed 8y ago2 watchersCompare

[ Source](https://github.com/JincorTech/verify-php-client)[ Packagist](https://packagist.org/packages/jincor/verify-php-client)[ RSS](/packages/jincor-verify-php-client/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (3)Used By (0)

Verify client
=============

[](#verify-client)

[![](https://camo.githubusercontent.com/e014cf17fff80ed17bf32d78886995b31a8702a3807218b18380876a8ae93f22/68747470733a2f2f686162726173746f726167652e6f72672f776562742f35392f64352f34322f353964353432323036616662653238303831373432302e706e67)](https://camo.githubusercontent.com/e014cf17fff80ed17bf32d78886995b31a8702a3807218b18380876a8ae93f22/68747470733a2f2f686162726173746f726167652e6f72672f776562742f35392f64352f34322f353964353432323036616662653238303831373432302e706e67)

This is a client library which encapsulates interaction with [Jincor Verify](https://github.com/JincorTech/backend-verufy). With its help you can:

1. Initiate verification process for methods: email, google\_auth.
2. Validate code.
3. Invalidate code.

Usage
-----

[](#usage)

### Initialize Verify client

[](#initialize-verify-client)

To interact with the HTTP protocol use [Guzzle](https://github.com/guzzle/guzzle). Headers `Accept: application/vnd.jincor+json; version=1` , `Content-Type: application/json`, `Authorization: Bearer JWT_TOKEN` are mandatory.

```
$verifyClient = new VerifyClient(new Client([
    'base_uri' => 'verify:3000',
    'headers' => [
        'Accept'        => 'application/vnd.jincor+json; version=1',
        'Content-Type'  => 'application/json',
        'Authorization' => 'Bearer JWT_TOKEN',
    ]
]));
```

### Initiate Verification process

[](#initiate-verification-process)

```
$verificationDetails = $verifyClient->initiate(
    (new EmailVerification())
        ->setTemplate('{{{CODE}}}')
        ->setConsumer('test@test.com')
        ->setExpiredOn('01:00:00')
);
```

### Validate Code

[](#validate-code)

```
$result = $verifyClient->validate(new EmailValidationData(
    new Uuid('d6b78279-db85-467e-b965-c938d043ffac'),
    '123456'
));
// true
```

### Invalidate Code

[](#invalidate-code)

```
$result = $verifyClient->invalidate(new GoogleAuthInvalidationData(
    new Uuid('d6b78279-db85-467e-b965-c938d043ffab')
));
// true
```

More details can be received in the tests.

### Project setup

[](#project-setup)

1. Clone the repo
2. `cd /path/to/repo`
3. `docker-compose build` - build development containers
4. `docker-compose up -d` - run container
5. `docker-compose exec workspace composer install`

#### Local testing

[](#local-testing)

To run all tests just type `docker-compose exec workspace ./vendor/bin/codecept run`

Credits
-------

[](#credits)

- [Aleserche](https://github.com/Aleserche)
- [Jincor Team](https://jincor.com)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE) for more information.

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity44

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/ea9e2b3a319e528eee2ccf364e3f7e5cb84cbecd58e042dca528c9a492cd0352?d=identicon)[Jincor](/maintainers/Jincor)

---

Top Contributors

[![Aleserche](https://avatars.githubusercontent.com/u/2920837?v=4)](https://github.com/Aleserche "Aleserche (18 commits)")

### Embed Badge

![Health badge](/badges/jincor-verify-php-client/health.svg)

```
[![Health](https://phpackages.com/badges/jincor-verify-php-client/health.svg)](https://phpackages.com/packages/jincor-verify-php-client)
```

PHPackages © 2026

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