2017 © Pedro Peláez
 

library api

image

bamboohr/api

  • Thursday, February 22, 2018
  • by cdburgess
  • Repository
  • 4 Watchers
  • 11 Stars
  • 1,014 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 9 Forks
  • 5 Open issues
  • 5 Versions
  • 4 % Grown

The README.md

BambooHR API PHP Package

A PHP wrapper for the BambooHR API, (*1)

Quick Start

You will need two pieces of information to get started., (*2)

  1. The company subdomain of your BambooHR account. If you access bamboo at hamsterfarm.bamboohr.com, this is "hamsterfarm"
  2. An API key. You can find instructions on obtaining an API key here
  3. Install with composer composer require bamboohr/api

Once you have that, the following code will get a directory of employees (as long as your user is able to access the directory), (*3)

");
$bhr->setSecretKey("");
$response = $bhr->getDirectory();
if($response->isError()) {
   trigger_error("Error communicating with BambooHR: " . $response->getErrorMessage());
}
$simplexml = $response->getContent();
...
?>

After that, you may want to explore the employee api, or just look through the wrapper code., (*4)

JSON

To get JSON output, change the following line :, (*5)

$bhr = new BambooAPI("<company_subdomain>");

to this:, (*6)

$bhr = new BambooAPI("<company_subdomain>", new BambooJSONHTTP());

The Versions

22/02 2018

dev-master

9999999-dev

  Sources   Download

The Requires

  • ext-curl *
  • php ^5.5 || ^7

 

The Development Requires

22/02 2018
21/02 2018

dev-quality-phpcs

dev-quality-phpcs

  Sources   Download

The Requires

  • php ^5.5 || ^7
  • ext-curl *

 

The Development Requires

04/04 2016

v1.0.0

1.0.0.0

  Sources   Download

The Requires

  • php >=5.3.0
  • ext-curl *

 

12/03 2015

dev-jlesueur/curl_error

dev-jlesueur/curl_error

  Sources   Download

The Requires

  • php >=5.3.0
  • ext-curl *