Skip to content

isometriks/linode-php

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Credits

This has been forked from the original to be PSR-0 compatable, and added to packagist for easy download.

Installation (Composer)

{
    "require": {
        "isometriks/linode-php": "dev-master"
    }
}

Usage

<?php

try {
    $linode = new Linode\Api('apikey');
    $a = $linode->linode_list();
    $b = $linode->domain_list(array('DomainID' => 23233));
    
    var_dump($a);
    var_dump($b);
} catch (Linode\Exception $e) {
    echo $e->getMessage();
}

To perform a batch request

<?php
    
try {
    $linode = new Linode\Api('apikey');
    $linode->batching = true;
    $linode->linode_list();
    $linode->domain_list();
    $result = $linode->batchFlush();
        
    var_dump($result);
} catch (Linode\Exception $e) {
    echo $e->getMessage();
}

For more information about api methods visit http://www.linode.com/api

About

PHP wrapper for Linode API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%