PHPackages                             client-for-authentication-provider/client-for-authentication-provider - 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. client-for-authentication-provider/client-for-authentication-provider

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

client-for-authentication-provider/client-for-authentication-provider
=====================================================================

Laravel package for client authentication provider with mini app login functionality

v1.1.2(8mo ago)228MITPHPPHP &gt;=7.2.5

Since Aug 26Pushed 8mo agoCompare

[ Source](https://github.com/AshirButt925/client-for-authentication-provider)[ Packagist](https://packagist.org/packages/client-for-authentication-provider/client-for-authentication-provider)[ Docs](https://github.com/ashirbutt925/client-for-authentication-provider)[ RSS](/packages/client-for-authentication-provider-client-for-authentication-provider/feed)WikiDiscussions main Synced 1mo ago

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

Client For Authentication Provider
==================================

[](#client-for-authentication-provider)

A Laravel package for handling client authentication with mini app login functionality.

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

[](#installation)

1. Add the package to your Laravel project:

```
composer require client-for-authentication-provider/client-for-authentication-provider
```

2. Publish the configuration file:

```
php artisan vendor:publish --tag=client-for-authentication-provider-config
```

3. Publish the routes (optional):

```
php artisan vendor:publish --tag=client-for-authentication-provider-routes
```

4. Publish the controllers (optional):

```
php artisan vendor:publish --tag=client-for-authentication-provider-controllers
```

Configuration
-------------

[](#configuration)

The package configuration file is located at `config/client-for-authentication-provider.php`. You can customize the following options:

- `default_role_id`: Default role ID for new users (default: 2)
- `default_country_code`: Default country code (default: '+92')
- `default_country_iso_code`: Default country ISO code (default: 'PK')
- `provider_name`: Provider name (default: 'Bullseye')
- `route_prefix`: Route prefix (default: 'api')
- `route_middleware`: Route middleware (default: 'api')

Usage
-----

[](#usage)

### API Endpoint

[](#api-endpoint)

The package provides the following API endpoint:

**POST** `/api/create-or-login-user`

#### Request Body

[](#request-body)

```
{
    "user_data": {
        "email": "user@example.com",
        "mobile": "1234567890",
        "first_name": "John",
        "last_name": "Doe",
        "country_code": "+92",
        "country_iso_code": "PK",
        "password": "password123"
    }
}
```

#### Response

[](#response)

```
{
    "success": true,
    "token": "1|abc123...",
    "data": {
        "id": 1,
        "name": "John Doe",
        "email": "user@example.com",
        "phone": "1234567890",
        // ... other user fields
    }
}
```

Customization
-------------

[](#customization)

### Publishing Controllers

[](#publishing-controllers)

If you want to customize the controllers, publish them to your application:

```
php artisan vendor:publish --tag=client-for-authentication-provider-controllers
```

The controllers will be published to `app/Http/Controllers/ClientForAuthenticationProvider/`.

### Publishing Routes

[](#publishing-routes)

If you want to customize the routes, publish them to your application:

```
php artisan vendor:publish --tag=client-for-authentication-provider-routes
```

The routes will be published to `routes/client/authentication-provider.php`.

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

[](#requirements)

- PHP &gt;= 8.2
- Laravel &gt;= 10.0
- Laravel Sanctum

License
-------

[](#license)

This package is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance60

Regular maintenance activity

Popularity11

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity36

Early-stage or recently created project

 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

Every ~0 days

Total

8

Last Release

256d ago

Major Versions

v0.5.2 → v1.1.22025-08-26

PHP version history (3 changes)v1.0.0PHP ^8.2

v1.1.0PHP &gt;=7.2.5

v0.5.0PHP ^7.0|^7.1|^7.2|^7.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/e74b3bcaac1902e3bb9359cf15050dce17dca646c551532856c3eff337a3a188?d=identicon)[ashiralibutt](/maintainers/ashiralibutt)

---

Top Contributors

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

---

Tags

clientlaravelAuthenticationsanctumloginmini-app

### Embed Badge

![Health badge](/badges/client-for-authentication-provider-client-for-authentication-provider/health.svg)

```
[![Health](https://phpackages.com/badges/client-for-authentication-provider-client-for-authentication-provider/health.svg)](https://phpackages.com/packages/client-for-authentication-provider-client-for-authentication-provider)
```

###  Alternatives

[hasinhayder/tyro

Tyro - The ultimate Authentication, Authorization, and Role &amp; Privilege Management solution for Laravel 12 &amp; 13

6712.1k2](/packages/hasinhayder-tyro)[zefy/laravel-sso

Simple PHP SSO integration for Laravel

1033.0k](/packages/zefy-laravel-sso)

PHPackages © 2026

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