定制 jeffreyhyer/bamboohr 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

jeffreyhyer/bamboohr

最新稳定版本:1.0.7

Composer 安装命令:

composer require jeffreyhyer/bamboohr

包简介

PHP SDK for the BambooHR API

README 文档

README

This repository contains a PHP SDK for use with the BambooHR API.

If you're looking to use this package inside a Laravel application you may want to check out this package instead: jeffreyhyer/bamboohr-laravel. It wraps this package in a Service Provider and provides access via a Facade so the API is the same but you'll write less code and get the same results 👍

DISCLAIMER: This is NOT an official SDK, it is not affiliated with nor endorsed by BambooHR in any way.

Installation

NOTE: This package currently requires PHP >= 7.0.0

Via Composer

$ composer require jeffreyhyer/bamboohr

Or add the following to your composer.json file:

{
    "require": {
        "jeffreyhyer/bamboohr": "~1.0.7"
    }
}

From within the same directory as your composer.json file execute:

$ composer install

In your PHP file (if you're not using a fancy framework that handles autoloading for you):

<?php

require './vendor/autoload.php';

Usage

From within your PHP application you can access the BambooHR API with just a couple lines:

<?php

require './vendor/autoload.php';

use BambooHR\BambooHR;

$api_token = "[BAMBOOHR API TOKEN]";
$company = "[BAMBOO COMPANY NAME]";

$bamboo = new BambooHR($company, $api_token);

// Get the employee directory
$employees = $bamboo->employees->directory();

统计信息

  • 总下载量: 69.4k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 10
  • 点击次数: 1
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 10
  • Watchers: 1
  • Forks: 9
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-09-21