PHPackages                             ubc/ltcommons - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. ubc/ltcommons

ActiveLibrary

ubc/ltcommons
=============

UBC LT Commons

0.1.1(10y ago)04311MITPHPPHP &gt;=5.3.9 &lt;7CI failing

Since Dec 1Pushed 4y ago9 watchersCompare

[ Source](https://github.com/ubc/ltcommons)[ Packagist](https://packagist.org/packages/ubc/ltcommons)[ Docs](https://github.com/ubc/ltcommons)[ RSS](/packages/ubc-ltcommons/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (7)Versions (6)Used By (1)

A Collection of UBC Data Service Libraries for Learning Applications
====================================================================

[](#a-collection-of-ubc-data-service-libraries-for-learning-applications)

[![Build Status](https://camo.githubusercontent.com/015cf2af16d93643a7c0443614da9fb32b171b11d99be006e16b453cc3bf8932/68747470733a2f2f7472617669732d63692e6f72672f7562632f6c74636f6d6d6f6e732e706e67)](https://travis-ci.org/ubc/ltcommons)

Install
-------

[](#install)

```
composer require ubc/ltcommons

```

Usage
-----

[](#usage)

### Plain PHP

[](#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

[](#using-with-symfony-2)

Please checkout [LtCommons bundle](https://github.com/ubc/ltcommons-bundle)

Run Tests
---------

[](#run-tests)

```
composer install
vendor/bin/phpunit

```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~126 days

Total

5

Last Release

3679d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8b2967b2bb74961a49e294aa39aff74c15698f2b09aae1d5557cb986a03da13a?d=identicon)[compass](/maintainers/compass)

---

Top Contributors

[![xcompass](https://avatars.githubusercontent.com/u/465548?v=4)](https://github.com/xcompass "xcompass (21 commits)")

---

Tags

sisubcltcommons

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/ubc-ltcommons/health.svg)

```
[![Health](https://phpackages.com/badges/ubc-ltcommons/health.svg)](https://phpackages.com/packages/ubc-ltcommons)
```

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[silverstripe/framework

The SilverStripe framework

7213.5M2.5k](/packages/silverstripe-framework)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

728272.9k20](/packages/civicrm-civicrm-core)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
