There is no license information available for the latest version (0.0.4) of this package.

0.0.4 2014-07-22 15:10 UTC


#SpaceGDN Bridge

Usage Examples:

$bridge = new Mcprohosting\Spacegdn\Bridge();

// Sets the location of the GDN

// Gets all jars:
$results = $bridge->get('jars');

// Gets the second page of jars:
$results = $bridge->get('jars')->page(2);

// Gets all versions owned by jar #2:
$results = $bridge->jar(2)->get('versions');

// Query demonstrating most GDN properties.
$results = $bridge
    ->where('build', '>', 1234)
    ->orderBy('build', 'desc')

// Results can be iterated over like an array:
foreach ($results as $result) {
    echo $result->checksum . "\n";

// Can be turned into json, explicitly or implicitly as a string (both do the same thing):
echo $results->toJson();
echo $results;

// And also can be accessed by property: