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

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

mobieve/auth-client
===================

This package provides Classes for Auth Clients made by Mobieve.

v2.2.1(6y ago)1653MITPHPPHP ^7.1.3

Since Jan 9Pushed 6y ago1 watchersCompare

[ Source](https://github.com/mobieve/mobieve-auth-client-php)[ Packagist](https://packagist.org/packages/mobieve/auth-client)[ RSS](/packages/mobieve-auth-client/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (5)Versions (13)Used By (0)

mobieve-auth-client-php
=======================

[](#mobieve-auth-client-php)

Mobieve Auth Client PHP

This package provides Classes for Auth Clients made by Mobieve.

- Mobieve\\AuthClient\\Facades\\CustomClient
- Mobieve\\AuthClient\\Middleware\\MobieveAuthMiddleware
- Mobieve\\AuthClient\\Models\\CustomClient
- Mobieve\\AuthClient\\Providers\\CustomClientServiceProvider

Mobieve Custom HTTP Client
--------------------------

[](#mobieve-custom-http-client)

#### Configuration

[](#configuration)

In config/app.php include:

```
  'providers' => [
      ...
      Mobieve\AuthClient\Providers\CustomClientServiceProvider::class

  ],
```

and:

```
  'aliases' => [
      ...
      'JWTFactory' => Tymon\JWTAuth\Facades\JWTFactory::class,
      'JWTAuth' => Tymon\JWTAuth\Facades\JWTAuth::class,
      'MobieveClient' => Mobieve\AuthClient\Facades\CustomClient::class
  ],
```

If user requests is needed you also need to include:

```
  'aliases' => [
      ...
      'Auth' => Illuminate\Support\Facades\Auth::class,
      'User' => App\User::class,
      'Team' => App\Team::class
  ],
```

You also need to configure auth service info in config/services.php, like:

```
  return [
    ...
    'auth' => [
        'url' => env('MOBIEVE_AUTH_URL') . '/oauth/token',
        'client_id' => env('MOBIEVE_AUTH_CLIENT_ID'),
        'client_secret' => env('MOBIEVE_AUTH_CLIENT_SECRET')
    ]
  ];
```

and include your personal MOBIEVE\_AUTH\_CLIENT\_ID and MOBIEVE\_AUTH\_CLIENT\_SECRET in your environment variables.

#### Usage

[](#usage)

```
  MobieveClient::get(string $url, array $params);
  MobieveClient::post(string $url, array $params);
  MobieveClient::put(string $url, array $params);
  MobieveClient::delete(string $url);
```

Middleware
----------

[](#middleware)

Four different middleware classes are available.

`MobieveClientAuthMiddleware` is used to ensure that the requester is a Client registered in Mobieve Auth server.

`MobieveUserAuthMiddleware`, on the other hand, is used to ensure that the requester is an User registered in Mobieve Auth server.

`MobieveUserTeamAuthMiddleware`, is used to ensure thar the request is an User with Team registered in Mobieve Auth server.

`MobieveAuthMiddleware`, will only check if token is valid.

To use Mobieve Middleware layer in order to check incoming requests authorization include following line in Http/Kernel.php:

You need to include the middleware that you want to use in Http/Kernel.php file, as demonstrated below:

```
  protected $routeMiddleware = [
    ...
    'mobieve.auth-client' => \Mobieve\AuthClient\Middleware\MovieveClientAuthMiddleware::class,
    'mobieve.auth-user' => \Mobieve\AuthClient\Middleware\MovieveClientAuthMiddleware::class
  ];
```

and add `'mobieve.auth-client'` or `'mobieve.auth-user'` in all routes you need to protect, according to the desired behavior.

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 96.3% 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 ~13 days

Total

12

Last Release

2210d ago

Major Versions

v1.0.3 → v2.0.02020-03-05

### Community

Maintainers

![](https://www.gravatar.com/avatar/27acdcfadfe89f6a84203dc9ed85614a1bea499b33737261e1ded85e8564e1a4?d=identicon)[taigfs](/maintainers/taigfs)

---

Top Contributors

[![dreymaior](https://avatars.githubusercontent.com/u/8516135?v=4)](https://github.com/dreymaior "dreymaior (26 commits)")[![taigfs](https://avatars.githubusercontent.com/u/5494265?v=4)](https://github.com/taigfs "taigfs (1 commits)")

### Embed Badge

![Health badge](/badges/mobieve-auth-client/health.svg)

```
[![Health](https://phpackages.com/badges/mobieve-auth-client/health.svg)](https://phpackages.com/packages/mobieve-auth-client)
```

###  Alternatives

[drupal/core

Drupal is an open source content management platform powering millions of websites and applications.

19564.8M1.6k](/packages/drupal-core)[craftcms/cms

Craft CMS

3.6k3.6M2.9k](/packages/craftcms-cms)[illuminate/http

The Illuminate Http package.

11937.2M6.5k](/packages/illuminate-http)[drupal/core-recommended

Locked core dependencies; require this project INSTEAD OF drupal/core.

6941.5M396](/packages/drupal-core-recommended)[spatie/laravel-export

Create a static site bundle from a Laravel app

672139.5k6](/packages/spatie-laravel-export)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.4M514](/packages/shopware-core)

PHPackages © 2026

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