Skip to content

Tybearius/php-sdk

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

ShiftPlanning PHP SDK

The ShiftPlanning API allows you to call modules within the ShiftPlanning employee scheduling software that respond in REST style JSON & XML.

This repository contains the open source PHP SDK that allows you to utilize the above on your website. Except as otherwise noted, the ShiftPlanning PHP SDK is licensed under the Apache Licence, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.html)

Usage

The examples are a good place to start. The minimal you'll need to have is:

<?php

require './shiftplanning.php';

$shiftplanning = new shiftplanning(
	array(
		'key' => 'XXXXXXXXXXXXXXXXXX' // enter your developer key
	)
);

To make API calls:

$shifts = $shiftplanning->setRequest(
	array(
		'module' => 'schedule.shifts',
		'start_date' => 'today',
		'start_date' => 'today',
		'mode' => 'overview'
	)
);

Logged in vs Logged out:

if ($session = $shiftplanning->getSession( )) {
  // LOGGED IN
} else {
  // LOGGED OUT
}

Feedback

We are relying on the GitHub issues tracker linked from above for feedback. File bugs or other issues here.

About

PHP SDK for the ShiftPlanning API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%