2017 © Pedro Peláez
 

library ltcommons

UBC LT Commons

image

ubc/ltcommons

UBC LT Commons

  • Friday, April 22, 2016
  • by compass
  • Repository
  • 10 Watchers
  • 0 Stars
  • 431 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

A Collection of UBC Data Service Libraries for Learning Applications

Build Status, (*1)

Install

composer require ubc/ltcommons

Usage

Plain PHP

require 'vendor/autoload.php';

// Bootstrap the JMS custom annotations for Object to Json mapping
\Doctrine\Common\Annotations\AnnotationRegistry::registerAutoloadNamespace(
    'JMS\Serializer\Annotation',
    dirname(__FILE__).'/vendor/jms/serializer/src'
);

$base_url = 'http://sisapi.example.com';
$username = 'service_username';
$password = 'service_password';

$providerFactory = new DataProviderFactory();
$providerFactory->addProvider(new SISDataProvider(
    $base_url,
    new GuzzleClient(),
    new HttpBasic($username, $password),
    new JMSSerializer()
));
$service = new DepartmentCodeService($providerFactory);
$codes = $service->getDepartmentCodes();

$student = $service->getStudentById('12345678');

Using with Symfony 2

Please checkout LtCommons bundle, (*2)

Run Tests

composer install
vendor/bin/phpunit

The Versions

22/04 2016

dev-master

9999999-dev https://github.com/ubc/ltcommons

UBC LT Commons

  Sources   Download

MIT

The Requires

 

The Development Requires

sis ubc ltcommons

22/04 2016

0.1.1

0.1.1.0 https://github.com/ubc/ltcommons

UBC LT Commons

  Sources   Download

MIT

The Requires

 

The Development Requires

sis ubc ltcommons

16/12 2014

0.1.0

0.1.0.0 http://github.com/ubc/ltcommons

UBC LT Commons

  Sources   Download

MIT

The Requires

 

The Development Requires

sis ubc ltcommons