PHPackages                             eduvo/php-api-library - 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. [API Development](/categories/api)
4. /
5. eduvo/php-api-library

ActiveLibrary[API Development](/categories/api)

eduvo/php-api-library
=====================

Client library for the ManageBac v2 API

1.0.1(8y ago)0391MITPHPPHP &gt;=5.6.0

Since Jul 31Pushed 7y ago4 watchersCompare

[ Source](https://github.com/eduvo/PHP-API-Library)[ Packagist](https://packagist.org/packages/eduvo/php-api-library)[ Docs](https://github.com/eduvo/PHP-API-Library)[ RSS](/packages/eduvo-php-api-library/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (1)Dependencies (1)Versions (3)Used By (0)

ManageBac API PHP Client Library
================================

[](#managebac-api-php-client-library)

Documentation

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

[](#installation)

Requires PHP 5.6.

Using Composer:

```
{
    "require": {
      "eduvo/php-api-library": "1.*"
    }
}
```

or

```
composer require eduvo/php-api-library
```

Usage
-----

[](#usage)

After installing with composer, make sure to include the following line at the top of your php file.

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

### Client

[](#client)

Before using the API library, you need to create a new Client using your API Token.

```
$client = new \Eduvo\Client('YOUR API TOKEN');
```

### Examples

[](#examples)

Here are some examples of how to use the various endpoints in the library.

#### IB Groups

[](#ib-groups)

Fetch all IB Groups and display the group names

```
$ib_groups = $client->ib_groups->all();
foreach ($ib_groups as $ib_group) {
    echo $ib_group->name . PHP_EOL;
}
```

Fetch and display advisors for an IB Group

```
$advisors = $client->ib_groups->advisors(YOUR_IB_GROUP_ID);
foreach ($advisors as $advisor) {
    $teacher = $client->teachers->get($advisor->id);
    echo $teacher->first_name . ' ' . $teacher->last_name . PHP_EOL;
}
```

Fetch and display students for an IB Group

```
$student_ids = $client->ib_groups->students(YOUR_IB_GROUP_ID);
foreach ($student_ids as $student_id) {
    $student = $client->students->get($student_id);
    echo $student->first_name . ' ' . $student->last_name . PHP_EOL;
}
```

Add students to an IB Group

```
$students = [STUDENT1_ID, STUDENT2_ID];
$response = $client->ib_groups->add_students(YOUR_IB_GROUP_ID, $students);
echo $response->status;
```

Remove students from an IB Group

```
$students = [STUDENT1_ID, STUDENT2_ID];
$response = $client->ib_groups->remove_students(YOUR_IB_GROUP_ID, $students);
echo $response->status;
```

#### Classes Groups

[](#classes-groups)

Fetch all Classes and display the group names

```
$classes = $client->classes->all();
foreach ($classes as $class) {
    echo $class->name . PHP_EOL;
}
```

Fetch and display the name of a single class.

```
$class = $client->classes->get(10508262);
echo $class->name;
```

Fetch and display students for a class.

```
$student_ids = $client->classes->students(10753516);
foreach ($student_ids as $student_id) {
    $student = $client->students->get($student_id);
    echo $student->first_name . ' ' . $student->last_name . PHP_EOL;
}
```

Add students to a class.

```
$student_ids = [STUDENT1_ID, STUDENT2_ID];
$response = $client->classes->add_students(YOUR_CLASS_ID, $student_ids);
echo $response->status;
```

Remove students from a class.

```
$student_ids = [STUDENT1_ID, STUDENT2_ID];
$response = $client->classes->remove_students(YOUR_CLASS_ID, $student_ids);
echo $response->status;
```

#### Parents Group

[](#parents-group)

Fetch and display the email addresses of all parents.

```
$parents = $client->parents->all();
foreach ($parents as $parent) {
    echo $parent->email . PHP_EOL;
}
```

Fetch and display the email address for a single parent.

```
$parent = $client->parents->get(PARENT_ID);
echo $parent->email;
```

Create a new parent record.

```
$parent = [
    'email' => 's.banderad@eduvo.com',
    'first_name' => 'Stepan',
    'last_name' => 'Bander',
    'child_ids' => [STUDENT1_ID]
];
$client->parents->create($parent);
```

Update a parent record.

```
$parent = [
    'child_ids' => [STUDENT1_ID, STUDENT2_ID]
];
$client->parents->update(PARENT_ID, $parent);
```

Archive a parent.

```
$response = $client->parents->archive(PARENT_ID);
echo $response->status;
```

Unarchive a parent.

```
$response = $client->parents->unarchive(PARENT_ID);
echo $response->status;
```

#### Students Group

[](#students-group)

Fetch and display the email addresses of all students.

```
$students = $client->students->all();
foreach ($students as $student) {
    echo $student->email . PHP_EOL;
}
```

Fetch and display the email address for a single student.

```
$student = $client->students->get(STUDENT_ID);
echo $student->email;
```

Create a new student record.

```
$student = [
    'email' => 'kevin.epelbaum@eduvo.com',
    'first_name' => 'Kevin',
    'last_name' => 'Epelbaum'
];
$client->students->create($student);
```

Update a student record.

```
$student = [
    'nationalities' => ['GB', 'US']
];
$client->students->update(STUDENT_ID, $student);
```

Archive a student.

```
$response = $client->students->archive(STUDENT_ID);
echo $response->status;
```

Unarchive a student.

```
$response = $client->students->unarchive(STUDENT_ID);
echo $response->status;
```

#### Teachers Group

[](#teachers-group)

Fetch and display the email addresses of all teachers.

```
$teachers = $client->teachers->all();
foreach ($teachers as $teacher) {
    echo $teacher->email . PHP_EOL;
}
```

Fetch and display the email address for a single student.

```
$teacher = $client->teachers->get(TEACHER_ID);
echo $teacher->email;
```

Create a new teacher record.

```
$teacher = [
    'email' => 'john.epelbaum@eduvo.com',
    'first_name' => 'John',
    'last_name' => 'Epelbaum'
];
$client->teachers->create($teacher);
```

Update a teacher record.

```
$teacher = [
    'nationalities' => ['GB']
];
$client->teachers->update(TEACHER_ID, $teacher);
```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 66.7% 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 ~0 days

Total

2

Last Release

3210d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8699da26086c004ae5ac0411f8b94f1d3fc94cf347c4400278ab8f28946a0e0d?d=identicon)[avanderbergh](/maintainers/avanderbergh)

---

Top Contributors

[![avanderbergh](https://avatars.githubusercontent.com/u/493849?v=4)](https://github.com/avanderbergh "avanderbergh (4 commits)")[![vikramsra](https://avatars.githubusercontent.com/u/1715752?v=4)](https://github.com/vikramsra "vikramsra (2 commits)")

---

Tags

apimanagebac

### Embed Badge

![Health badge](/badges/eduvo-php-api-library/health.svg)

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

###  Alternatives

[openai-php/laravel

OpenAI PHP for Laravel is a supercharged PHP API client that allows you to interact with the Open AI API

3.7k7.6M74](/packages/openai-php-laravel)[mailchimp/transactional

458.9M16](/packages/mailchimp-transactional)[get-stream/stream-chat

A PHP client for Stream Chat (https://getstream.io/chat/)

301.8M2](/packages/get-stream-stream-chat)[convertkit/convertkitapi

Kit PHP SDK for the Kit API

2167.1k1](/packages/convertkit-convertkitapi)

PHPackages © 2026

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