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(5y ago)05MITPHPPHP ^7.3 || ^8.0

Since Jun 13Pushed 5y 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 3w 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 31% 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

1845d 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

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.3k543.5M2.6k](/packages/aws-aws-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k38](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M46](/packages/tencentcloud-tencentcloud-sdk-php)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[ellaisys/aws-cognito

Laravel Authentication using AWS Cognito (Web and API)

123256.9k1](/packages/ellaisys-aws-cognito)[files.com/files-php-sdk

Files.com PHP SDK

2481.1k](/packages/filescom-files-php-sdk)

PHPackages © 2026

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