Skip to content

cremadesign/pingboard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Pingboard API

Stephen Ginn at Crema Design Studio

This PHP script checks for the existence of a cache file. If one doesn't exist, it connects to Pingboard and saves a new one.

Installation

You can install the package via composer:

composer config repositories.crema/pingboard git https://github.com/cremadesign/pingboard
composer require crema/pingboard:@dev

Usage

Add this code to your PHP file:

require_once '../vendor/autoload.php';
use Crema\Pingboard;

$credentials = json_decode(file_get_contents('../config.json'))->pingboard;
$pingboard = new Pingboard($credentials);
header('Content-Type: application/json');
echo json_encode($pingboard->getUsers(), JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES);

About

Simple Pingboard API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages