2017 © Pedro Peláez
 

library daisy-api-client-php

Daisy API client for PHP

image

dsv-su/daisy-api-client-php

Daisy API client for PHP

  • Tuesday, November 3, 2015
  • by pelle
  • Repository
  • 6 Watchers
  • 0 Stars
  • 20 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

Daisy API Client for PHP

This library can be used to access the API provided by DSV's administrative system Daisy from PHP applications., (*1)

Installation

composer require dsv-su/daisy-api-client-php '~1.0'

Usage

Create a file daisy_api.json containing, (*2)

{
    "url": "https://api.dsv.su.se/rest/",
    "user": "nisse",
    "pass": "password"
}

except with user and pass replaced by yours. Now you can use the library like this:, (*3)

require 'vendor/autoload.php';
use DsvSu\Daisy;

$employees = Daisy\Employee::find(['department' => 4]);
foreach ($employees as $e) {
    $p = $e->getPerson();
    echo $p->getFirstName() . ' ' . $p->getLastName() . "\n";
}

If daisy_api.json exists in the current directory, it will be used automatically. Otherwise, you can specify its location with:, (*4)

Daisy\Client::initUsingConfigFile(dirname(__FILE__) . '/daisy_api.json');

Documentation

Some functions are documented in the source code using phpdoc comments. The easiest way to understand how to use the library is to read the source and look at examples, e.g. https://github.com/dsv-su/daisyweb., (*5)

Test suite

The library has a test suite which you should run before committing anything:, (*6)

vendor/bin/phpunit

It is a good idea to add test cases when you modify the code., (*7)

The Versions

03/11 2015

dev-master

9999999-dev

Daisy API client for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

by Per Olofsson
by Erik Thuning

03/11 2015

1.0.3

1.0.3.0

Daisy API client for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

by Per Olofsson
by Erik Thuning

23/10 2015

1.0.2

1.0.2.0

Daisy API client for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

by Per Olofsson
by Erik Thuning

10/09 2015

1.0.1

1.0.1.0

Daisy API client for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

by Per Olofsson
by Erik Thuning

08/09 2015

1.0.0

1.0.0.0

Daisy API client for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

by Per Olofsson