PHPackages                             caouecs/clef - 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. caouecs/clef

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

caouecs/clef
============

Implementation of Clef authentication in Laravel 4

0.2.0(11y ago)51102[1 PRs](https://github.com/caouecs/Laravel4-Clef/pulls)MITPHPPHP &gt;=5.3.0

Since Feb 28Pushed 6y agoCompare

[ Source](https://github.com/caouecs/Laravel4-Clef)[ Packagist](https://packagist.org/packages/caouecs/clef)[ RSS](/packages/caouecs-clef/feed)WikiDiscussions master Synced 3d ago

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

Laravel4-Clef
=============

[](#laravel4-clef)

[![Bitdeli Badge](https://camo.githubusercontent.com/bd1d8bea79c7c9f7c254bdddbc0b27e5d49962d552d1bb6c8d4407a7c25debe7/68747470733a2f2f64327765637a68766c38323376302e636c6f756466726f6e742e6e65742f63616f756563732f6c61726176656c342d636c65662f7472656e642e706e67)](https://bitdeli.com/free "Bitdeli Badge")

Integrate the Clef.io tools in a Laravel project.

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

[](#installation)

This package is available through `Packagist` and `Composer`.

Add `"caouecs/clef": "dev-master"` to your composer.json or run `composer require caouecs/clef`.

Then you have to add `"Caouecs\Clef\Laravel4ClefServiceProvider"` to your list of providers in your `app/config/app.php`, and a list of elements for aliases :

```
'Clef' => 'Caouecs\Clef\Clef'

```

So, I recommend you use [Package Installer](https://github.com/rtablada/package-installer), Laravel4-Clef has a valid provides.json file. After installation of Package Installer, just run `php artisan package:install caouecs/clef` ; the lists of providers and aliases will be up-to-date.

Next, you must migrate config :

```
php artisan config:publish caouecs/clef

```

Configuration file
------------------

[](#configuration-file)

After installation, the config file is located at *app/config/packages/caouecs/clef/clef.php*.

You must define :

- the app\_id of your application
- the app\_secret of your application

You can add an application in [Clef.io](https://getclef.com/developer/).

Clef class
----------

[](#clef-class)

- logout : response to Logout Webhook from Clef.io
- authorize : return authorization from Clef.io for an account
- info : return info about membre from Clef.io
- authentication : get authentication of a Clef account
- button : display button for Login, by javascript
- customButtom : display custom button for Login

Example
-------

[](#example)

In `example` directory, you can find three files :

- ClefController.php : examples for authentication and logout ( not finish for new account )
- create\_authentications\_table.php : `Authentication` table
- routes.php : routes for ClefController.php

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

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

Total

2

Last Release

4237d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/39244cf52537871184b25c749473924c80fb0556c5707a34407e701dc0e33e3e?d=identicon)[caouecs](/maintainers/caouecs)

---

Top Contributors

[![caouecs](https://avatars.githubusercontent.com/u/447849?v=4)](https://github.com/caouecs "caouecs (12 commits)")

---

Tags

laravelcleflpm

### Embed Badge

![Health badge](/badges/caouecs-clef/health.svg)

```
[![Health](https://phpackages.com/badges/caouecs-clef/health.svg)](https://phpackages.com/packages/caouecs-clef)
```

###  Alternatives

[bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

2.8k2.9M88](/packages/bezhansalleh-filament-shield)[socialiteproviders/manager

Easily add new or override built-in providers in Laravel Socialite.

42442.0M544](/packages/socialiteproviders-manager)[php-open-source-saver/jwt-auth

JSON Web Token Authentication for Laravel and Lumen

8359.8M53](/packages/php-open-source-saver-jwt-auth)[directorytree/ldaprecord-laravel

LDAP Authentication &amp; Management for Laravel.

5682.0M15](/packages/directorytree-ldaprecord-laravel)[josiasmontag/laravel-recaptchav3

Recaptcha V3 for Laravel package

2641.6M2](/packages/josiasmontag-laravel-recaptchav3)[olssonm/l5-very-basic-auth

Laravel stateless HTTP basic auth without the need for a database

1662.5M1](/packages/olssonm-l5-very-basic-auth)

PHPackages © 2026

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