2017 © Pedro Peláez
 

library bamboohr-laravel

Laravel 5.x Service Provider and Facade for the jeffreyhyer/bamboohr package

image

jeffreyhyer/bamboohr-laravel

Laravel 5.x Service Provider and Facade for the jeffreyhyer/bamboohr package

  • Wednesday, May 2, 2018
  • by JeffreyHyer
  • Repository
  • 1 Watchers
  • 1 Stars
  • 55 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 28 % Grown

The README.md

BambooHR for Laravel 5

NOTE: This package currently requires PHP >= 7.0.0, (*1)

If you have a need for PHP 5.x support let me know by opening an issue ., (*2)

Installation

$ composer require jeffreyhyer/bamboohr-laravel

Laravel 5.5+

This package supports auto-discovery of the Service Provder and Facade, you can skip to the Configuration section below., (*3)

Laravel <= 5.4

For Laravel <= 5.4 you'll need to add the Service Provider and Facade to the config/app.php file., (*4)

<?php

'providers' => [
    // ...
    JeffreyHyer\BambooHR\ServiceProvider::class,
],

'aliases' => [
    // ...
    'BambooHR' => JeffreyHyer\BambooHR\Facade::class,
],

Configuration

In order to access the BambooHR API you'll need to configure your company's subdomain and provide an API key., (*5)

Add the following to the config/services.php file:, (*6)

'bamboohr' => [
    'domain' => env('BAMBOOHR_DOMAIN'),
    'key' => env('BAMBOOHR_APIKEY'),
],

If you decide to use the .env file to store the domain and API Key (recommended) you'll need to add the following to your .env file:, (*7)

BAMBOOHR_DOMAIN=company             # Company Subdomain (e.g. http://COMPANY.bamboohr.com/)
BAMBOOHR_APIKEY=0123456789abcdef    # API Key

Usage

Once installed you should be able to access the BambooHR API through the facade:, (*8)

<?php

// Get employee directory
BambooHR::employees()->directory();

For full API documentation and additional usage options see https://jeffreyhyer.github.io/bamboohr/, (*9)

The Versions

02/05 2018

dev-master

9999999-dev https://github.com/jeffreyhyer/bamboohr-laravel

Laravel 5.x Service Provider and Facade for the jeffreyhyer/bamboohr package

  Sources   Download

MIT

The Requires

 

laravel api bamboohr

02/05 2018

1.0.4

1.0.4.0 https://github.com/jeffreyhyer/bamboohr-laravel

Laravel 5.x Service Provider and Facade for the jeffreyhyer/bamboohr package

  Sources   Download

MIT

The Requires

 

laravel api bamboohr

27/11 2017

1.0.3

1.0.3.0 https://github.com/jeffreyhyer/bamboohr-laravel

Laravel 5.x Service Provider and Facade for the jeffreyhyer/bamboohr package

  Sources   Download

MIT

The Requires

 

laravel api bamboohr

20/11 2017

1.0.1

1.0.1.0 https://github.com/jeffreyhyer/bamboohr-laravel

Laravel 5.x Service Provider and Facade for the jeffreyhyer/bamboohr package

  Sources   Download

MIT

The Requires

 

laravel api bamboohr

11/10 2017

1.0.0

1.0.0.0 https://github.com/jeffreyhyer/bamboohr-laravel

Laravel 5.x Service Provider and Facade for the jeffreyhyer/bamboohr package

  Sources   Download

MIT

The Requires

 

laravel api bamboohr

11/10 2017

0.1.0

0.1.0.0 https://github.com/jeffreyhyer/bamboohr-laravel

Laravel 5.x Service Provider and Facade for the jeffreyhyer/bamboohr package

  Sources   Download

MIT

The Requires

 

laravel api bamboohr