PHPackages                             pavlokrostylovblps/oneroster-php-api - 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. pavlokrostylovblps/oneroster-php-api

ActiveLibrary

pavlokrostylovblps/oneroster-php-api
====================================

OneRoster REST API PHP client

v1.0.10(1y ago)0380↑66.7%1GPL-3.0PHPPHP ^8.2

Since Jan 29Pushed 1y ago1 watchersCompare

[ Source](https://github.com/PavloKrostylovBLPS/oneroster-php-api)[ Packagist](https://packagist.org/packages/pavlokrostylovblps/oneroster-php-api)[ RSS](/packages/pavlokrostylovblps-oneroster-php-api/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (1)Versions (12)Used By (0)

OneRoster PHP API
=================

[](#oneroster-php-api)

A PHP client library for interacting with the OneRoster API. This library simplifies authentication and API calls, making it easy to integrate OneRoster-compliant systems.

OneRoster PHP API is a significantly modified version of [Sky API OneRoster](https://github.com/groton-school/sky-api.oneroster), originally developed by Groton School.

Features
--------

[](#features)

- OAuth1 authentication with client credentials.
- Easy-to-use interface for interacting with OneRoster endpoints.
- Supports fetching organizations and other OneRoster entities.
- Supports OneRoster version 1.1

Installation
------------

[](#installation)

To install the package, use Composer:

```
composer require pavlokrostylovblps/oneroster-php-api
```

Usage
-----

[](#usage)

### Initialize the Client

[](#initialize-the-client)

```
require 'vendor/autoload.php';

use Kroscom\OneRosterAPI\Client\OneRosterClient;
use Kroscom\OneRosterAPI\OneRosterAPI;

$clientId = 'your-client-id';
$clientSecret = 'your-client-secret';
$baseUrl = 'https://example.com';

$client = new OneRosterClient($clientId, $clientSecret, $baseUrl);
$api = new OneRosterAPI($client);
```

### Fetch Organizations

[](#fetch-organizations)

#### Get a list of organizations

[](#get-a-list-of-organizations)

```
$orgs = $api->orgs->get();
print_r($orgs);
```

#### Get a single organization

[](#get-a-single-organization)

```
$org = $api->orgs->getOne('10');
print_r($org);
```

Requirements
------------

[](#requirements)

- PHP 8.2 or later
- Composer

Changes
-------

[](#changes)

This version of OneRoster PHP API includes significant modifications and improvements, including:

- **Refactored Codebase** – Improved structure and readability for better maintainability.
- **Enhanced API Support** – Improved handling of OneRoster-compliant requests and responses.
- **ClassLink Support** – Added the ability to work with the ClassLink OneRoster API.

License
-------

[](#license)

This project is licensed under the [GNU GPL-3.0](https://www.gnu.org/licenses/gpl-3.0.html).
It is based on [Sky API OneRoster](https://github.com/groton-school/sky-api.oneroster), which is also licensed under GPL-3.0.

Contributing
------------

[](#contributing)

Pull requests are welcome! If you find an issue, please open an issue on GitHub.

Contact
-------

[](#contact)

For any questions or support, please create an issue in the repository.

Acknowledgment
--------------

[](#acknowledgment)

Special thanks to Groton School for their original work on [Sky API OneRoster](https://github.com/groton-school/sky-api.oneroster).

###  Health Score

35

—

LowBetter than 81% of packages

Maintenance47

Moderate activity, may be stable

Popularity18

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity56

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 ~2 days

Total

11

Last Release

395d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9fdd410e17ccc39c93bf3309ed46663550378b9d3c5eef6a3ac8998020f9c8c8?d=identicon)[PavloKrostylovBLPS](/maintainers/PavloKrostylovBLPS)

---

Top Contributors

[![PavloKrostylovBLPS](https://avatars.githubusercontent.com/u/190097380?v=4)](https://github.com/PavloKrostylovBLPS "PavloKrostylovBLPS (11 commits)")

### Embed Badge

![Health badge](/badges/pavlokrostylovblps-oneroster-php-api/health.svg)

```
[![Health](https://phpackages.com/badges/pavlokrostylovblps-oneroster-php-api/health.svg)](https://phpackages.com/packages/pavlokrostylovblps-oneroster-php-api)
```

PHPackages © 2026

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