edzhub/content-sdk-php
Composer 安装命令:
composer require edzhub/content-sdk-php
包简介
This Package will provide sdk for edzhub content api.
关键字:
README 文档
README
Publish Customization
php artisan vendor:publish --provider=Edzhub\ContentSdk\ContentSdkServiceProvider
Please place this in env file
ZSL_CONTENT_MANAGER_TOKEN=<yourtoken>
if you have admin access to create users
ZSL_CONTENT_ADMIN_TOKEN=<youradmintoken>
if you have whitelisted domain
ZSL_CONTENT_URL=<yourwhitelisteddomain>/api
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);
edzhub/content-sdk-php 适用场景与选型建议
edzhub/content-sdk-php 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 1.74k 次下载、GitHub Stars 达 0, 最近一次更新时间为 2025 年 06 月 02 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「zslapi」 「zsl」 「zsl content」 「zsl content access」 「zsl content api」 「zsl content access api」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 edzhub/content-sdk-php 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 edzhub/content-sdk-php 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 edzhub/content-sdk-php 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A block that displays featured content - large image, title, description and link.
TYPO3 CMS extension to create gallery content element with preset crop ratios and pagination
Portal Options Links
ZRCMS - Content management for version tracking and content
H5P Core functionality in PHP
System texts can be set as articles
统计信息
- 总下载量: 1.74k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-06-02