Download the PHP package ivao-colombia/api-login without Composer
On this page you can find all versions of the php package ivao-colombia/api-login. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ivao-colombia/api-login
More information about ivao-colombia/api-login
Files in ivao-colombia/api-login
Package api-login
Short Description A Laravel Socialite Provider for IVAO
License MIT
Informations about the package api-login
ivao-socialite
A Laravel Socialite Provider for IVAO.
Getting Started
[!NOTE] This repository is outdated and discontinued
In order to use this package in your Laravel projects, you must first install it. The recommended way to install this package is through Composer.
After that, you must add the configuration in your Laravel config file, such as any other Socialite Provider. In order to do it, head over to your config/services.php
file and add the following session:
This callback will be the URL which will be forwarded by IVAO Login API. You can use either an URL or a route path in configuration.
After that, you're good to go. You can use it in your code as any other Socialite Provider.
Note that due to restrictions on IVAO API, Socialite user instance is heavily limited: only getId
and getName
methods are implemented. We recommend you use the getRaw()
method, which will return you an associative array with the parsed Login API data. When you call it, you will get something like:
In case no User Data can be extracted from the API with the provided token, the Socialite user
method will return null
.
Issues and contributions
If you found an error/bug/bad behavior, feel free to open an issue reporting it. Also, pull requests are welcome and pretty much appreciated.
License
This project is MIT Licensed.
All versions of api-login with dependencies
laravel/socialite Version ^5.0
ext-json Version *
guzzlehttp/guzzle Version ^7.0