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

Freelance webdeveloper & Entreprenerd Specialized in developing, scaling and optimizing of succesful web applications, community websites and small/corporate business websites using technologies such as PHP 5, Laravel, HTML5, jQuery, .. Trying to find optimal Google love for every website. I'm always interested and open for new business opportunities.