PHPackages                             nham/verify - 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. nham/verify

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

nham/verify
===========

1.0(10y ago)060PHPPHP &gt;=5.4.0

Since Jul 8Pushed 10y ago1 watchersCompare

[ Source](https://github.com/hoangnham01/verify)[ Packagist](https://packagist.org/packages/nham/verify)[ RSS](/packages/nham-verify/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (3)Versions (2)Used By (0)

Verify Access Token Facebook &amp; ID Token Google
--------------------------------------------------

[](#verify-access-token-facebook--id-token-google)

Require this package with composer using the following command:

```
composer require nham/verify

```

After updating composer, add the ServiceProvider to the providers array in `app/config/app.php`

```
'Nham\Verify\VerifyServiceProvider',

```

You can also publish the config-file to change implementations.

```
php artisan config:publish nham/verify

```

Verify Google ID Token

```
VerifyToken::google("eyJhbGciOiJSUzI1NiIsImtpZCI6ImU1MzEzOTk4NGJkMzZkMmMyMzA1NTI0NDE2MDhjYzBiNTE3OTQ4N2EifQ.eyJpc3MiOiJhY2NvdW50cy5nb29nbGUuY29tIiwic3ViIjoiMTE0OTk5OTI4Mjc1MzQ4MzIwNzkyIiwiYXpwIjoiNzExNjgwNjM1ODUtaWExdTZmZTJ2OWptZTZ1ZjdmNmozaGtmYzZwdHFxbjYuYXBwcy5nb29nbGV1c2VyY29udGVudC5jb20iLCJlbWFpbCI6ImhvYW5nbmhhbTAxQGdtYWlsLmNvbSIsImF0X2hhc2giOiJjQUptNjFfbVBLbzlsRVBDN0FuZ3JBIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImF1ZCI6IjcxMTY4MDYzNTg1LWlhMXU2ZmUydjlqbWU2dWY3ZjZqM2hrZmM2cHRxcW42LmFwcHMuZ29vZ2xldXNlcmNvbnRlbnQuY29tIiwiY19oYXNoIjoiMDB2TDU5UnhhemdsbGl4TUZmcV9PUSIsImlhdCI6MTQzNjI1OTU5MSwiZXhwIjoxNDM2MjYzMTkxfQ.kdD1wayTJZPf5rpqaMJ1JuKwtTS3SsHlSc9Lb8VYFfuTFJ5Tx3THdbqB1Vcu2a6jrpBJ7Y9OQ5SRgsVmwcZWAN6MfdgJhgUevTlmjCi4NC4QBqLHbkb96XD-IWmIe6aSji3zfSx3P3v9ospUavodtzi7lqhrDz0wHVYBCLg4_RWQLxf9zsav9_DO7k91sWp8XgxqxmY4hS5bzzKHz6W49-v_DKo_9SUNeltL4EFku9DOAcdxldw4xB6T8TThlxpJ1aD4TEM0RVN46PrS_AusFZGbBIE0XQJ2d_Fcm2CCeSpnRV7q_lZHZkhY0EN8jfbKqAxnfyJA1dyxM316ko7Fxw");

```

return TRUE

```
array(
    'valid'    => true,
    'gplus_id' => GOOGLE_PLUS_ID,
    'email'    => GOOGLE_PLUS_EMAIL,
    'message'  => 'ID Token is valid.'
    )

```

FALSE

```
array(
        'valid'    => false,
        'gplus_id' => null,
        'message'  => 'Invalid ID Token.'
    )

```

Verify Facebook Access Token

```
VerifyToken::facebook('CAAWoi9ObEV4BAD1iEDXzSZAMfXClnY6jiH7GcVI188PgL2ZBFnqlxoZBEm7TZCfCb7hOqYEhCfI4ZAl7iyDy80shrYC2EcNOrDOgEdneQFbTjQbPZBscelnIyrYH1TafmOJiQEndM9znB4auJUWTE4glOXVv63ZB0mKZCgJ9qJJwyC1YqzV5lAyyHHyzqs12OZAyhefN3SVMSDn7K5S2e4yIclVT5ADTqsZCIZD');

```

return TRUE

```
     array(
         'valid'    => true,
         'user_id' => FACEBOOK_ID,
         'app_id'    => APP_FACEBOOK_ID,
         'message'  =>
     )

```

FALSE

```
     array(
         'valid'    => false,
         'message'  =>
     )

```

### License

[](#license)

The Verify is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT)

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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

Unknown

Total

1

Last Release

3968d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5c993252fe17d6ea6da862b3bdd921efc991b80716e1fa97755ad73976eb0435?d=identicon)[hoangnham01](/maintainers/hoangnham01)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/nham-verify/health.svg)

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

###  Alternatives

[spatie/laravel-honeypot

Preventing spam submitted through forms

1.6k6.0M60](/packages/spatie-laravel-honeypot)[proengsoft/laravel-jsvalidation

Validate forms transparently with Javascript reusing your Laravel Validation Rules, Messages, and FormRequest

1.1k2.3M49](/packages/proengsoft-laravel-jsvalidation)[stevebauman/purify

An HTML Purifier / Sanitizer for Laravel

5325.6M19](/packages/stevebauman-purify)[axlon/laravel-postal-code-validation

Worldwide postal code validation for Laravel and Lumen

3853.3M1](/packages/axlon-laravel-postal-code-validation)[sunspikes/clamav-validator

Custom Laravel 5 anti-virus validator for file uploads.

3651.8M3](/packages/sunspikes-clamav-validator)[laravel-validation-rules/credit-card

Validate credit card number, expiration date, cvc

2412.2M5](/packages/laravel-validation-rules-credit-card)

PHPackages © 2026

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