2017 © Pedro Peláez
 

library bamboohr-api

Client for BambooHR Api. Easy way to get your Employees data.

image

shubinmi/bamboohr-api

Client for BambooHR Api. Easy way to get your Employees data.

  • Monday, October 9, 2017
  • by shubinmi
  • Repository
  • 1 Watchers
  • 0 Stars
  • 45 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 7 % Grown

The README.md

Client for BambooHR Api

Easy way to manipulate your Employees data

Don't worry, Be happy, (*1)

Installation

Install the latest version with, (*2)

$ composer require shubinmi/bamboohr-api

Basic Usage

<?php

use BambooHRApi\services\BambooHrApi;

// Init Api
$api = new BambooHrApi('myCompanySubdomain', 'myApiKey');

// Get all employees
$employees = $api->getAllEmployees();
// Get additional information of each employee
$employees = $api->getMoreInfoForEmployees($employees, ['bestEmail', 'facebook']);

foreach ($employees as $employee) {
    echo 'Email: ' .$employee->workEmail . PHP_EOL;
    echo 'First name: ' .$employee->firstName . PHP_EOL;
    echo 'Last name: ' .$employee->lastName . PHP_EOL;
    echo 'Facebook: ' .$employee->facebook . PHP_EOL;
}

Other way to get same, (*3)

<?php

use BambooHRApi\api\EmployeesApi;
use BambooHRApi\BambooHrClient;
use BambooHRApi\conf\BambooHrConf;

// Init Api client
$conf = new BambooHrConf();
$conf->setApiKey('apiKey')
    ->setSubdomain('subdomain');
$client = new BambooHrClient($conf);

// Get all employees
$employees = EmployeesApi::getDirectoryEmployees($client);
// Get additional information of first employee
$firstEmployee = EmployeesApi::getEmployee($client, current($employees)->id, ['bestEmail', 'facebook']);

foreach ($employees as $employee) {
    echo 'Email: ' . $employee->workEmail . PHP_EOL;
    echo 'First name: ' . $employee->firstName . PHP_EOL;
    echo 'Last name: ' . $employee->lastName . PHP_EOL;
    echo 'Facebook: ' . $employee->facebook . PHP_EOL;
}

echo 'Best email: ' . $firstEmployee->bestEmail . PHP_EOL;
echo 'Facebook: ' . $firstEmployee->facebook . PHP_EOL;

Easy for contribute

Extend coverage bambooHR api at once. Just look at "api" folder and put your code here., (*4)

The Versions

09/10 2017

dev-master

9999999-dev https://github.com/shubinmi/bamboohr-api

Client for BambooHR Api. Easy way to get your Employees data.

  Sources   Download

BSD-3-Clause

The Requires

 

api client bamboo hr bamboohr bamboohr api bamboo hr bamboo hr api

09/10 2017

1.0.3

1.0.3.0 https://github.com/shubinmi/bamboohr-api

Client for BambooHR Api. Easy way to get your Employees data.

  Sources   Download

BSD-3-Clause

The Requires

 

api client bamboo hr bamboohr bamboohr api bamboo hr bamboo hr api

27/06 2017

1.0.2

1.0.2.0 https://github.com/shubinmi/bamboohr-api

Client for BambooHR Api. Easy way to get your Employees data.

  Sources   Download

BSD-3-Clause

The Requires

 

api client bamboo hr bamboohr bamboohr api bamboo hr bamboo hr api

28/04 2017

1.0.0

1.0.0.0 https://github.com/shubinmi/bamboohr-api

Client for BambooHR Api. Easy way to get your Employees data.

  Sources   Download

BSD-3-Clause

The Requires

 

api client bamboo hr bamboohr bamboohr api bamboo hr bamboo hr api

28/04 2017

1.0.1

1.0.1.0 https://github.com/shubinmi/bamboohr-api

Client for BambooHR Api. Easy way to get your Employees data.

  Sources   Download

BSD-3-Clause

The Requires

 

api client bamboo hr bamboohr bamboohr api bamboo hr bamboo hr api