PHPackages                             edzhub/content-sdk-php - 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. edzhub/content-sdk-php

ActiveLibrary[API Development](/categories/api)

edzhub/content-sdk-php
======================

This Package will provide sdk for edzhub content api.

v0.3.9(1w ago)01.7k↓31.2%MITPHPPHP ^8.2

Since Jun 2Pushed 1w agoCompare

[ Source](https://github.com/edzhub/content-sdk-php)[ Packagist](https://packagist.org/packages/edzhub/content-sdk-php)[ RSS](/packages/edzhub-content-sdk-php/feed)WikiDiscussions main Synced yesterday

READMEChangelogDependencies (8)Versions (30)Used By (0)

Content Api
===========

[](#content-api)

### Publish Customization

[](#publish-customization)

```
php artisan vendor:publish --provider=Edzhub\ContentSdk\ContentSdkServiceProvider

```

### Please place this in env file

[](#please-place-this-in-env-file)

```
ZSL_CONTENT_MANAGER_TOKEN=

```

if you have admin access to create users

```
ZSL_CONTENT_ADMIN_TOKEN=

```

if you have whitelisted domain

```
ZSL_CONTENT_URL=/api

```

### Usage

[](#usage)

```
use Edzhub\ContentSdk\ContentSdk;

$client = new ContentSdk();

// Set the token if not set in the environment
$client->setToken('token from db');

// Create a User
$user = $client->createUser(name: $name,email: $email,password: $password);

// Get Sub Users
$subUsers = $client->getSubUsers();

// Create a Sub User
$subUser = $client->createSubUser(userName: $userName);

// Get Classes
$classes = $client->getClasses(subUserId: $subUserId|null);

// Get Subjects
$subjects = $client->getSubjects(class_id: $classId);

// Get Chapters
$chapters = $client->getChapters(class_id: $classId,subject_id: $subjectId);

// Get Topics
$topics = $client->getTopics(chapter_id: $chapterId, language_id: $languageId|null, subUserId:$subUserId|null);

// Get Activities
$activities = $client->getActivities(topic_id: $topicId);

// Get Questions.
$questions = $client->getQuestions(activity_id: $activity_id, language_id: languageId|null, per_page: 10);

// Get Signed URL for an activity
$signedUrl = $client->getSignedUrl(activity_id: $activityId);

// Get Signed URL for an chapter references
$signedUrl = $client->getSignedUrlForChapterReference(chapter_id: $chapter_id);

// Get Signed URL for description.
$signedUrl = $client->getDescriptionSignedLink(description_id: $description_id);

// Get Signed URL for instruction.
$signedUrl = $client->getInstructionSignedLink(instructor_id: $instructor_id);

// Get Signed URL for observation.
$signedUrl = $client->getObservationSignedLink(observation_id: $observation_id);

// Get Quiz Result.
$result = $client->attemptQuiz(subUserId: $subUserId, classId: $classId, activityId:$activityId, answers: $answers)

// Get Tickets.
$tickets = $client->getTickets(classId: $classId, subUserId: $subUserid)

// Unlock Activity.
$result = $client->unlockActivity(subUserId: $subUserId, activityId: $activityId)

// Deletes User.
$result = $client->deleteUser(string $id);

// Delete Sub-User.
$result = $client->deleteSubUser(string $id);

// Updates class access for user.
$result = $client->updateUserClassAccess(string $userId, array $classes);

// Updates class access for Sub User.
$result = $client->updateSubUserClassAccess(string $userId, array $classes);

// Assign subuser to the class.
$result = $client->assignClass(string $classId, string $subUserId, string $hasFullAccess)

// Remove subuser to the class.
$result = $client->removeClass(string $classId, string $subUserId);

// Record performance.
$result = $client->recordActivityPerformance(string $classId, string $subUserId, string $activityId);

// Get XP.
$result = $client->getXp(string $classId, string $subUserId);
```

###  Health Score

47

—

FairBetter than 93% of packages

Maintenance98

Actively maintained with recent releases

Popularity20

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 54.5% 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 ~13 days

Total

29

Last Release

7d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/92296385?v=4)[edzhub](/maintainers/edzhub)[@edzhub](https://github.com/edzhub)

---

Top Contributors

[![AryaAppaji](https://avatars.githubusercontent.com/u/122975057?v=4)](https://github.com/AryaAppaji "AryaAppaji (18 commits)")[![satyam147](https://avatars.githubusercontent.com/u/20718656?v=4)](https://github.com/satyam147 "satyam147 (15 commits)")

---

Tags

zslapizslzsl contentzsl content accesszsl content apizsl content access apizsl content access packagezsl content access laravel packageedzhub content sdkedzhub content sdk phpedzhub content sdk laraveledzhub content sdk packageedzhub content sdk apiedzhub content sdk accessedzhub content sdk access apiedzhub content sdk access packageedzhub content sdk access laravel package

### Embed Badge

![Health badge](/badges/edzhub-content-sdk-php/health.svg)

```
[![Health](https://phpackages.com/badges/edzhub-content-sdk-php/health.svg)](https://phpackages.com/packages/edzhub-content-sdk-php)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[defstudio/telegraph

A laravel facade to interact with Telegram Bots

816333.3k3](/packages/defstudio-telegraph)[simplestats-io/laravel-client

Server-side analytics for Laravel that follows the full funnel from visit to registration to payment, attributed to the channel that drove it. Revenue, MRR, churn and ad-spend profit (ROAS/CAC) per channel. GDPR compliant, ad-blocker proof.

5021.9k](/packages/simplestats-io-laravel-client)[jasara/php-amzn-selling-partner-api

A fluent interface for Amazon's Selling Partner API in PHP

1348.7k1](/packages/jasara-php-amzn-selling-partner-api)

PHPackages © 2026

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