apinstein / birkman-api-php

A PHP wrapper for the Birkman API.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Birkman Slack Bot

Using Birkman XML API

Mostly we're using GetAssessmentReport to get report data, with this CURL:

curl -H "Content-type: text/xml" --data-binary @GetAssessmentReport.xml https://api.birkman.com/xml-3.0-report.php

It's wrapped up in a BirkmanAPI class.

Tech Stack

A barebones PHP app that makes use of the Silex web framework, which can easily be deployed to Heroku.

This application supports the Getting Started with PHP on Heroku article - check it out.

Local Development

$ composer install
$ export BIRKMAN_API_KEY=....
$ php72 -S 0.0.0.0:8888 -t web/

Deploying

Install the Heroku Toolbelt.

$ heroku create
$ heroku config:set BIRKMAN_API_KEY=...
$ git push heroku master
$ heroku open

or

Deploy to Heroku

Once deployed you will need to goto the settings page and add ENV Variables for BIRKMAN_API_KEY and SLACK_TOKEN

Documentation

For more information about using PHP on Heroku, see these Dev Center articles:

About

A PHP wrapper for the Birkman API.


Languages

Language:PHP 75.9%Language:HTML 21.0%Language:CSS 3.1%