Download the PHP package ibonly/laravel-accountkit without Composer
On this page you can find all versions of the php package ibonly/laravel-accountkit. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ibonly/laravel-accountkit
More information about ibonly/laravel-accountkit
Files in ibonly/laravel-accountkit
Package laravel-accountkit
Short Description Two factor authentication using facebook account kit
License MIT
Informations about the package laravel-accountkit
Account Kit services no longer available starting in March - click here
Laravel Facebook Account Kit
A simple package to make Password-less Login possible in Laravel using Facebook's Account Kit.
See Example Here.
Requirements
php 7.0+
Composer
Laravel 5.x
Installation
To use this package in a Laravel Project, install via Composer
Register the package to the Service Provider in the config/app.php
file:
You can make of some assets provided in this package to speed up your implementation: run
Usage
Create your app on Facebook following guidelines here.
You can view example here.
Update .env
file with credentials from Facebook:
Define your route in routes/web.php
. E.g:
Import the package in your Controller and use it therein. E.g:
The above return an array similar to this:
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
Run any of the following commands in your terminal.
Credits
This package is maintained by Surajudeen AKANDE.
Contributing
Please check out CONTRIBUTING file for detailed contribution guidelines.
Change log
Please check out CHANGELOG file for information on what has changed recently.
License
This package is released under the MIT Licence. See the bundled LICENSE file for details.