dev-master
9999999-devMaGIC Connect 2.0 connector
MIT
The Requires
by Rosaan Ramasamy
1.0
1.0.0.0MaGIC Connect 2.0 connector
MIT
The Requires
by Rosaan Ramasamy
MaGIC Connect 2.0 connector
MaGIC Connect 2.0 Wrapper, (*1)
First install,, (*2)
composer require mymagic/connect
, (*3)
Then add this providers to config/app.php :, (*4)
```php 'providers' => [ // Other service providers..., (*5)
MyMagic\Connect\ConnectServiceProvider::class, ], 'aliases' => [ 'Connect' => MyMagic\Connect\Facades\Connect::class, ],
Now, we you fetch the data from MaGIC Connect API : ```php use Connect; Connect::init($request); // initialize connect Connect::getFirstName(); // Get users first name Connect::getLastName(); // Get users last name Connect::getAvatar(); // Get users avatar Connect::getEmail(); // Get users email address Connect::getGender(); // Get users gender
Don't forget to add this in .env file. Get the client ID and client Secret from MaGIC Connect 2.0, (*6)
CONNECT_SERVER= CONNECT_CLIENT= CONNECT_CLIENT_ID= CONNECT_CLIENT_SECRET=
MaGIC Connect 2.0 connector
MIT
MaGIC Connect 2.0 connector
MIT