20/05
2018
Social plugin for CakePHP
NOTE: It's still in development mode, do not use in production yet!, (*1)
It is developed for CakePHP 4.x., (*2)
You can install plugin into your CakePHP application using composer., (*3)
The recommended way to install composer packages is:, (*4)
composer require kicaj/social dev-master
Ensure the Social plugin is loaded in your src/Application.php file, (*5)
$this->addPlugin('Social');
In your config/bootstrap.php
or app_local.php
add providers configuration, (*6)
Configure::write('Social.Google.client_id', '[CLIENT_ID]'); Configure::write('Social.Google.client_secret', '[CLIENT_SECRET]');
When user correctly login, you can use event listener named Social.login
., (*7)