PHP code example of aluvia-connect / aluvia-php-sdk
1. Go to this page and download the library: Download aluvia-connect/aluvia-php-sdk 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/ */
aluvia-connect / aluvia-php-sdk example snippets
use Aluvia\Aluvia;
$sdk = new Aluvia('your-api-token');
// Get your first connectivity credential
$credential = $sdk->first();
if ($credential) {
echo "Connection URL: " . $credential->toUrl() . "\n";
echo "Username: " . $credential->getUsername() . "\n";
echo "Password: " . $credential->getPassword() . "\n";
} else {
echo "No credentials available. Create one first.\n";
}