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

ActiveLibrary

ibonly/laravel-accountkit
=========================

Two factor authentication using facebook account kit

v1.2(8y ago)2816.4k10[3 PRs](https://github.com/andela-iadeniyi/laravel-accountkit/pulls)MITPHPPHP &gt;=5.5.9

Since Oct 7Pushed 3y ago6 watchersCompare

[ Source](https://github.com/andela-iadeniyi/laravel-accountkit)[ Packagist](https://packagist.org/packages/ibonly/laravel-accountkit)[ RSS](/packages/ibonly-laravel-accountkit/feed)WikiDiscussions master Synced 1mo ago

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

Account Kit services no longer available starting in March - [click here](https://developers.facebook.com/blog/post/2019/09/09/account-kit-services-no-longer-available-starting-march)
=======================================================================================================================================================================================

[](#account-kit-services-no-longer-available-starting-in-march---click-here)

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://akantkit.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 --provider="Ibonly\FacebookAccountKit\FacebookAccountKitServiceProvider"
```

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

37

—

LowBetter than 83% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity36

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 91.2% 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 ~25 days

Total

4

Last Release

3140d ago

Major Versions

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

### Community

Maintainers

![](https://www.gravatar.com/avatar/4028d0b1999062969f9d9784052f850751f879e3a8d5adcfe0e7933025db6612?d=identicon)[andela-iadeniyi](/maintainers/andela-iadeniyi)

---

Top Contributors

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

---

Tags

facebook-account-kitlaravelphplaravelfacebookgithubloginregisteropen-sourceaccountkitaccount kitfacebook account kitlaravel facebook account kitlaravel-accountkit

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[unicodeveloper/laravel-paystack

A Laravel Package for Paystack

650975.6k11](/packages/unicodeveloper-laravel-paystack)

PHPackages © 2026

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