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 2w 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 41% 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

4283d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/447849?v=4)[Fred Delrieu](/maintainers/caouecs)[@caouecs](https://github.com/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

[directorytree/ldaprecord-laravel

LDAP Authentication &amp; Management for Laravel.

5752.2M17](/packages/directorytree-ldaprecord-laravel)[hasinhayder/tyro

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

6783.6k5](/packages/hasinhayder-tyro)[masterix21/laravel-licensing

Laravel licensing package with polymorphic assignment to any model, activation keys, expirations/renewals, and seat control via LicenseUsage. Supports offline verification with public-key–signed tokens, a CLI to generate/rotate/revoke keys, and an extensible architecture via config and contracts.

1542.1k4](/packages/masterix21-laravel-licensing)

PHPackages © 2026

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