PHPackages                             bhawdeadlydan/laravel-accountkit - 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. bhawdeadlydan/laravel-accountkit

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

bhawdeadlydan/laravel-accountkit
================================

Two factor authentication using facebook account kit

v1.5(7y ago)022MITPHPPHP &gt;=5.5.9

Since Oct 7Pushed 7y ago1 watchersCompare

[ Source](https://github.com/bhawdeadlydan/laravel-accountkit)[ Packagist](https://packagist.org/packages/bhawdeadlydan/laravel-accountkit)[ RSS](/packages/bhawdeadlydan-laravel-accountkit/feed)WikiDiscussions master Synced yesterday

READMEChangelog (3)Dependencies (8)Versions (10)Used By (0)

Laravel Facebook Account Kit
============================

[](#laravel-facebook-account-kit)

[![License](https://camo.githubusercontent.com/e498eead712d82d9ee1af0a4850acd2e46ea48c48fb9ce5a3d2ab64f28f95b34/687474703a2f2f696d672e736869656c64732e696f2f3a6c6963656e73652d6d69742d626c75652e737667)](https://github.com/andela-sakande/PotatoORM/blob/master/LICENSE)

A simple package to make Password-less Login possible in Laravel using [Facebook's Account Kit](https://developers.facebook.com/docs/accountkit).

See Example [Here](https://lagosworkshop.herokuapp.com).

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

[](#requirements)

> php 7.0+

> Composer

> Laravel 5.x

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

[](#installation)

To use this package in a Laravel Project, install via [Composer](https://getcomposer.org/)

```
$ composer require ibonly/laravel-accountkit
```

Register the package to the [Service Provider](https://laravel.com/docs/5.4/providers) in the `config/app.php` file:

```
'providers' => [
    ...
    Ibonly\FacebookAccountKit\FacebookAccountKitServiceProvider::class,
],

'aliases' => [
    ...
    'AccountKit' => Ibonly\FacebookAccountKit\Facades\FacebookAccountKitFacade::class,
],
```

You can make of some assets provided in this package to speed up your implementation: run

```
$ php artisan vendor:publish
```

Usage
-----

[](#usage)

Create your app on Facebook following guidelines [here](https://developers.facebook.com/docs/accountkit).

You can view example [here](https://m.dotdev.co/implementing-account-kit-in-laravel-a40fbce516ad).

Update `.env` file with credentials from Facebook:

```
ACCOUNTKIT_APP_ID=XXXXXXXXXXXX
ACCOUNTKIT_APP_SECRET=XXXXXXXXXXXXXXXXXXXXXXXX
```

Define your route in `routes/web.php`. E.g:

```
Route::post('/otp-login', 'LoginController@otpLogin');
```

Import the package in your Controller and use it therein. E.g:

```
use AccountKit;
use Illuminate\Http\Request;

class LoginController extends Controller
{
    ...
    public function otpLogin(Request $request)
    {
        $otpLogin = AccountKit::accountKitData($request->code);
        ...
    }
}
```

The above return an array similar to this:

```
[▼
  "id" => "1802782826673865"
  "phoneNumber" => "+234XXXXXXXXXXX",
  "email" => ""
]
```

### Views

[](#views)

Update the `public/js/accountkit.js` file with your `appId`. Same as the one in your env.

Ensure you add Accounkit SDK to your HTML file:

```

```

Ensure your form has `csrf_token` , hidden input `code` along with email and phone number inputs. E.g:

```

```

Testing
-------

[](#testing)

Run any of the following commands in your terminal.

```
$ composer test
```

Credits
-------

[](#credits)

This package is maintained by [Ibrahim Adeniyi](ibonly01@gmail.com) and [Surajudeen AKANDE](surajudeen.akande@andela.com).

Contributing
------------

[](#contributing)

Please check out [CONTRIBUTING](CONTRIBUTING.md) file for detailed contribution guidelines.

Change log
----------

[](#change-log)

Please check out [CHANGELOG](CHANGELOG.md) file for information on what has changed recently.

License
-------

[](#license)

This package is released under the MIT Licence. See the bundled [LICENSE](LICENSE.md) file for details.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 93.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 ~50 days

Recently: every ~56 days

Total

7

Last Release

2914d ago

Major Versions

0.4.8.x-dev → v1.02017-07-24

### Community

Maintainers

![](https://www.gravatar.com/avatar/6395072da6eb085f13621777d25505ed8cd70474f5c37812859d781692b38344?d=identicon)[bhawdeadlydan](/maintainers/bhawdeadlydan)

---

Top Contributors

[![ibonly](https://avatars.githubusercontent.com/u/7251019?v=4)](https://github.com/ibonly "ibonly (28 commits)")[![osule](https://avatars.githubusercontent.com/u/13223818?v=4)](https://github.com/osule "osule (2 commits)")

---

Tags

phplaravelfacebookgithubloginregisteropen-sourceaccountkitaccount kitfacebook account kitlaravel facebook account kitlaravel-accountkit

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/bhawdeadlydan-laravel-accountkit/health.svg)

```
[![Health](https://phpackages.com/badges/bhawdeadlydan-laravel-accountkit/health.svg)](https://phpackages.com/packages/bhawdeadlydan-laravel-accountkit)
```

###  Alternatives

[ibonly/laravel-accountkit

Two factor authentication using facebook account kit

2816.4k](/packages/ibonly-laravel-accountkit)[josiasmontag/laravel-recaptchav3

Recaptcha V3 for Laravel package

2641.6M2](/packages/josiasmontag-laravel-recaptchav3)[unicodeveloper/laravel-paystack

A Laravel Package for Paystack

650975.6k11](/packages/unicodeveloper-laravel-paystack)[org_heigl/hybridauth

Lightweight Authentication Module for Zend-Framework 2 using the hybridauth-library

211.9k](/packages/org-heigl-hybridauth)

PHPackages © 2026

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