1. Go to this page and download the library: Download cloudwelder/petitions-api 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/ */
cloudwelder / petitions-api example snippets
use CloudWelder/PetitionsApi/PetitionsApi;
$api = new PetitionsApi('client_id', 'client_secret', 'reidrect_uri');
$redirectUrl = $api->generateRedirectUrl();
echo "<a href='$redirectUrl'>Click here to login</a>";