PHPackages                             wedevbr/mati-laravel - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. wedevbr/mati-laravel

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

wedevbr/mati-laravel
====================

Mati library for Laravel

v1.2.0(5y ago)36883MITPHPPHP ^7.2.5|^8.0

Since Sep 28Pushed 5y ago3 watchersCompare

[ Source](https://github.com/wedevBr/mati-laravel)[ Packagist](https://packagist.org/packages/wedevbr/mati-laravel)[ Docs](https://github.com/wedevbr/mati-laravel)[ RSS](/packages/wedevbr-mati-laravel/feed)WikiDiscussions development Synced yesterday

READMEChangelog (4)Dependencies (4)Versions (16)Used By (0)

Mati library for Laravel
========================

[](#mati-library-for-laravel)

[![Latest Version on Packagist](https://camo.githubusercontent.com/f80104c63ab03527b58b4681697609b5d9a39ff379e945a9b314c1712e1fad34/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f776564657662722f6d6174692d6c61726176656c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/wedevbr/mati-laravel)[![Build Status](https://camo.githubusercontent.com/ad802229d8a5e536d607b2b7621430b58f276d95fb77de1d5b54f88988f2faea/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f776564657662722f6d6174692d6c61726176656c2f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/wedevbr/mati-laravel)[![Quality Score](https://camo.githubusercontent.com/e197ea4c5cd5a35dfc1c852878648f00024ea3597a42328ada8c72b75f5cf6fa/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f776564657662722f6d6174692d6c61726176656c2e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/wedevbr/mati-laravel)[![Total Downloads](https://camo.githubusercontent.com/9a75bf2b4e7d0f2576fdbf4d7b2eb9bac89f36e95ef90c229688dd4ebcea1695/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f776564657662722f6d6174692d6c61726176656c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/wedevbr/mati-laravel)

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

[](#installation)

You can install the package via composer:

```
composer require wedevbr/mati-laravel
```

After installed publish the config file:

```
php artisan vendor:publish --provider="WeDevBr\Mati\MatiServiceProvider"
```

Usage
-----

[](#usage)

Mati class can be accessed via facade, singleton or IoC container

```
// Using facade
use WeDevBr\Mati\MatiFacade;
$result = MatiFacade::createVerification();

// Using singleton
$result = $this->mati->createVerification();

// Using IoC container
use WeDevBr\Mati\Mati;
# ...
public function myFunction(Mati $mati) {
    $result = $mati->createVerification();
    # ...
}
```

A complete process looks like this:

```
$verification = MatiFacade::createVerification(['id' => 'localUserId'], 'flowId', '10.20.30.40', 'User-Agent String');

$document1 = new \WeDevBr\Mati\Inputs\DocumentPhoto;
$document1->setGroup(0)
    ->setType('national-id')
    ->setCountry('US')
    ->setRegion('CA')
    ->setPage('front')
    ->setFilePath('/tmp/doc001.jpg');

Mati::sendInputs($verification->identity, [$document1]);

// After the webhook notification, data can be acquired doing this:
$status = MatiFacade::retrieveResourceDataFromUrl($webhook_data->resource);
```

### Configuration

[](#configuration)

The recommended way to configure is to set the environment variables `MATI_CLIENT_ID` and `MATI_CLIENT_SECRET`. This way no further step is required to authorize for the verification. Additionally, `MATI_AUTH_URL` and `MATI_API_URL` can be set for test purposes. If you don't want to use the environment to config, client ID and secret can be passed to the constructor of `Mati` class instead, and the constructor will deal with authorization. If you already have a valid access token, you can instantiate `Mati` without build parameters and call the method `setAccessToken`

### Testing

[](#testing)

```
composer test
```

### Changelog

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### Security

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [We Dev Tecnologia](https://github.com/wedevbr)
- [Gabriel Mineiro](https://github.com/Mineirovsky)

License
-------

[](#license)

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

Laravel Package Boilerplate
---------------------------

[](#laravel-package-boilerplate)

This package was generated using the [Laravel Package Boilerplate](https://laravelpackageboilerplate.com).

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 61.4% 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 ~48 days

Total

5

Last Release

1899d ago

PHP version history (2 changes)v1.0.0PHP ^7.2.5

v1.2.0PHP ^7.2.5|^8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/48887121?v=4)[WeDev - Software](/maintainers/wedevBr)[@wedevBr](https://github.com/wedevBr)

---

Top Contributors

[![Mineirovsky](https://avatars.githubusercontent.com/u/5934553?v=4)](https://github.com/Mineirovsky "Mineirovsky (51 commits)")[![adeildo-jr](https://avatars.githubusercontent.com/u/5920323?v=4)](https://github.com/adeildo-jr "adeildo-jr (28 commits)")[![rafaeldemeirateixeira](https://avatars.githubusercontent.com/u/4206453?v=4)](https://github.com/rafaeldemeirateixeira "rafaeldemeirateixeira (3 commits)")[![wedevBr](https://avatars.githubusercontent.com/u/48887121?v=4)](https://github.com/wedevBr "wedevBr (1 commits)")

---

Tags

wedevbrmati-laravel

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/wedevbr-mati-laravel/health.svg)

```
[![Health](https://phpackages.com/badges/wedevbr-mati-laravel/health.svg)](https://phpackages.com/packages/wedevbr-mati-laravel)
```

###  Alternatives

[markwalet/nova-modal-response

A Laravel Nova asset for Modal responses on an action.

17878.9k](/packages/markwalet-nova-modal-response)[crumbls/layup

A visual page builder plugin for Filament 5 — Divi-style grid layouts with extensible widgets.

592.7k2](/packages/crumbls-layup)[team-nifty-gmbh/tall-datatables

Server-side rendered datatables for Laravel and Livewire

1320.9k4](/packages/team-nifty-gmbh-tall-datatables)[tomshaw/electricgrid

A feature-rich Livewire package designed for projects that require dynamic, interactive data tables.

119.4k](/packages/tomshaw-electricgrid)

PHPackages © 2026

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