1. Go to this page and download the library: Download polaris/social library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
new SocialPlugin(
baseUrl: 'https://app.example.com/auth',
providers: [...],
httpClient: $client, requestFactory: $requests, streamFactory: $streams,
redirectUris: ['https://app.example.com/signed-in'], // exact; the first is the default
trustedProviders: ['google', 'apple'], // auto-link by verified email
allowDifferentEmails: ['github'], // may link from a session with another email
signUp: true,
respectMfa: true, // core's MFA gate applies to social sign-ins
proxy: null,
);
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.