PHPackages                             mimso/oauth-client-php - 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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. mimso/oauth-client-php

AbandonedArchivedLibrary[Authentication &amp; Authorization](/categories/authentication)

mimso/oauth-client-php
======================

Authentification with social network

1.1(4y ago)05MITPHPPHP ^7.3 || ^8.0

Since Jun 13Pushed 4y ago1 watchersCompare

[ Source](https://github.com/Mimso/oauth-client-php)[ Packagist](https://packagist.org/packages/mimso/oauth-client-php)[ RSS](/packages/mimso-oauth-client-php/feed)WikiDiscussions main Synced 6d ago

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

OAuth Client
============

[](#oauth-client)

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

[](#requirements)

- [GuzzleHTTP](https://github.com/guzzle/guzzle)
- [PHP](https://www.php.net/) &gt;= 7.3

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

[](#installation)

Download and install Composer by following the [official instructions](https://getcomposer.org/download/).

For usage, [see the documentation](https://getcomposer.org/doc/).

Run this command to install the package with composer

```
composer require mimso/oauth-client-php
```

Usage
-----

[](#usage)

Example for google oauth API.

```
$oauth = new \Mnt\OAuth\OAuth([
    'clientId'                => '0000',
    'clientSecret'            => '0000',
    'redirectUri'             => 'https://my.url/',
    'authEndpoint'            => 'https://accounts.google.com/o/oauth2/v2/auth',
    'accessTokenEndpoint'     => 'https://oauth2.googleapis.com/token',
    'userInfoEndpoint'        => 'https://openidconnect.googleapis.com/v1/userinfo',
    'scope'                   => ['openid', 'email', 'profile'],
]);

if(isset($_GET['code'])) {
    $accessToken = $oauth->getToken($_GET['code']);
    $user = $oauth->getResource();
    var_dump($user) //logged
} else {
    echo "login with google";
}
```

License
-------

[](#license)

oauth-client-php is available under [MIT LICENSE](https://github.com/Mimso/oauth-client-php/blob/main/LICENSE).

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

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 ~0 days

Total

2

Last Release

1799d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6bca213c70fb6ecc94bdff57b13bc23dad3c167093e13c31d6682af2a9ab9651?d=identicon)[Mimso](/maintainers/Mimso)

### Embed Badge

![Health badge](/badges/mimso-oauth-client-php/health.svg)

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

###  Alternatives

[josiasmontag/laravel-recaptchav3

Recaptcha V3 for Laravel package

2641.6M2](/packages/josiasmontag-laravel-recaptchav3)[rahul900day/laravel-captcha

Different types of Captcha implementation for Laravel Application.

10715.9k](/packages/rahul900day-laravel-captcha)[simplesamlphp/simplesamlphp-module-oidc

A SimpleSAMLphp module adding support for the OpenID Connect protocol

5016.9k1](/packages/simplesamlphp-simplesamlphp-module-oidc)[kinde-oss/kinde-auth-php

Kinde PHP SDK for authentication

2369.5k3](/packages/kinde-oss-kinde-auth-php)[descope/descope-php

Descope SDK for PHP

3814.0k](/packages/descope-descope-php)[njoguamos/laravel-turnstile

A laravel wrapper for https://developers.cloudflare.com/turnstile/

2315.9k2](/packages/njoguamos-laravel-turnstile)

PHPackages © 2026

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