DirectAdmin API packagist/composer package

Because Laravel Four is trading in bundles for Composer I decided it’s time to create a package for this. After all, it’s a very handy library!

You can find it here:
https://packagist.org/packages/directadmin/directadmin

And here:
https://github.com/kryap/php-directadmin

Test case:

$da = new \DirectAdmin\DirectAdmin();
$da->connect('domain.be', 2222);
$da->set_login('username', 'password');
 
$da->set_method('get');
$da->query('/CMD_API_SHOW_DOMAINS');
$da = $da->fetch_body();
 
var_dump($da);

Again, make sure you read the DirectAdmin API docs @ http://www.directadmin.com/api.html