/Binero-php

PHP API Client for Binero.se

Primary LanguagePHPMIT LicenseMIT

Binero

Latest Unstable Version Build Status

A PHP library to communicate with Binero's (private & undocumented) mobile API.

Example

<?php
use tsjost\Binero;

$username = 'my@username.se';
$password = 'my_password';

$Binero = new Binero\Client;

$login = $Binero->login($username, $password);
if ( ! $login['success']) {
  die('Unable to log in: '. $login['message']);
}

$DomainList = $Binero->getDomainList();

echo "There are ". $DomainList->getNumResults() ." domains!\n";
foreach ($DomainList->getDomains() as $Domain) {
	echo " * ". $Domain->getName() ." (". $Domain->getExpireDateShort() .")\n";
}