tsjost / Binero-php

PHP API Client for Binero.se

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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";
}

About

PHP API Client for Binero.se

License:MIT License


Languages

Language:PHP 100.0%