PHPackages                             compredict/users-sdk-laravel - 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. [API Development](/categories/api)
4. /
5. compredict/users-sdk-laravel

ActiveLibrary[API Development](/categories/api)

compredict/users-sdk-laravel
============================

Compredict's Users API for laravel.

01.1kPHPCI failing

Since May 12Pushed 5y ago2 watchersCompare

[ Source](https://github.com/COMPREDICT-GmbH/users-sdk-laravel)[ Packagist](https://packagist.org/packages/compredict/users-sdk-laravel)[ RSS](/packages/compredict-users-sdk-laravel/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (8)Used By (0)

COMPREDICT Users Service Provider for Laravel 5
===============================================

[](#compredict-users-service-provider-for-laravel-5)

This is a simple [Laravel](http://laravel.com/) service provider for making it easy to include the official [COMPREDICT Users SDK for PHP](https://github.com/compredict/users-sdk-php) in your Laravel.

This README is for version 1.x of the service provider, which is implemented to work with Version 1 of the COMPREDICT Users SDK for PHP and Laravel 5.x.

Installation via Composer
-------------------------

[](#installation-via-composer)

The COMPREDICT Service Provider can be installed via [Composer](http://getcomposer.org) by requiring the `compredict/users-sdk-laravel` package in your project's `composer.json`.

```
{
    "require": {
        "compredict/users-sdk-laravel": "dev-master"
    }
}
```

Then run a composer update

```
php composer.phar update
```

COMPREDICT Configuration
------------------------

[](#compredict-configuration)

By default, the package uses the following environment variables to auto-configure the plugin without modification:

```
COMPREDICT_USERS_ADMIN_KEY=  # Only needed if your application requires to register new users.
COMPREDICT_USERS_FAIL_ON_ERROR=True

```

To customize the configuration file, publish the package configuration using Artisan.

```
php artisan vendor:publish  --provider="Compredict\User\Providers\CompredictServiceProvider" --force
```

Update your settings in the generated `app/config/compredict.php` configuration file.

Additionally, publishing will provide you the following:

- Login and password reset views.
- The routes associated to login and password reset.
- Add User class that inherits the Compredict User.

Registration view and route will only be added when you set the value `COMPREDICT_USERS_ADMIN_KEY`.

User
----

[](#user)

The User class has the following attributes:

- token, APIKey.
- id.
- username.
- first\_name.
- last\_name.
- email.
- organization.

Currently we support only username for login.

To update user information:

```
$user = \Auth::guard()->user();
$user->first_name = "Ousama";
$user->last_name = "Esbel";
$user->organization = "COMPREDICT";
$user->update();
```

To refresh user's information from the API:

```
$user = \Auth::guard()->user();
$user->fresh();
```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 69.6% 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.

### Community

Maintainers

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

---

Top Contributors

[![uzi0espil](https://avatars.githubusercontent.com/u/5475253?v=4)](https://github.com/uzi0espil "uzi0espil (39 commits)")[![fadighattas100](https://avatars.githubusercontent.com/u/8566982?v=4)](https://github.com/fadighattas100 "fadighattas100 (16 commits)")[![paspetsch](https://avatars.githubusercontent.com/u/25506451?v=4)](https://github.com/paspetsch "paspetsch (1 commits)")

### Embed Badge

![Health badge](/badges/compredict-users-sdk-laravel/health.svg)

```
[![Health](https://phpackages.com/badges/compredict-users-sdk-laravel/health.svg)](https://phpackages.com/packages/compredict-users-sdk-laravel)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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