taylora/tincan
Composer 安装命令:
composer require taylora/tincan
包简介
Experience API (Tin Can API) Library
README 文档
README
A PHP library for implementing the Experience API (Tin Can API).
For hosted API documentation, basic usage instructions, supported version listing, etc. visit the main project website at:
http://rusticisoftware.github.io/TinCanPHP/
For more information about the Experience API visit:
Requires PHP 5.5 or later. (If you must run something older you should look at the 0.x release series or the PHP_5_2 branch.)
Installation
TinCanPHP is available via Composer.
php composer.phar require rusticisoftware/tincan:@stable
When not using Composer, require the autoloader:
require 'path/to/TinCan/autoload.php';
Testing
Tests are implemented using the latest stable version of PHPUnit. It will be installed when using Composer. Configure the LRS endpoint and credentials by copying the tests/config/config.dist.php to tests/config/config.php then setting the values for your LRS.
Once configured run:
vendor/bin/phpunit
API Doc Generation
Documentation can be output using phpDocumentor2. It will be installed when using Composer. To generate documentation:
vendor/bin/phpdoc
From the root of the repository after running php composer.phar update. Documentation will be output to doc/api.
If you do not have the default timezone set in your php.ini file you can create one in the base of the repo and use the PHPRC environment variable to point to it. Use something like:
export PHPRC="/path/to/repos/TinCanPHP/php.ini"
And set the timezone in that file using:
[PHP]
date.timezone = "US/Central"
Certificate Generation
These instructions are for creating the requisite public/private key pair and certificate on a Mac with OpenSSL installed. See https://www.openssl.org/docs/HOWTO/certificates.txt and https://www.openssl.org/docs/HOWTO/keys.txt.
Generate a private key (which contains a public key) without a password (not recommended):
openssl genrsa -out privkey.pem 2048
To generate a private key with a password:
openssl genrsa -des3 -out privkey.pem 2048
Create a certificate signing request:
openssl req -new -key privkey.pem -out cert.csr
To create a self signed certificate (as opposed to one signed by a CA), primarily for testing purposes:
openssl req -new -x509 -key privkey.pem -out cacert.pem -days 1095
taylora/tincan 适用场景与选型建议
taylora/tincan 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 3.04k 次下载、GitHub Stars 达 0, 最近一次更新时间为 2020 年 11 月 05 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「e-learning」 「scorm」 「xAPI」 「Experience API」 「tincan」 「tin can」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 taylora/tincan 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 taylora/tincan 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 taylora/tincan 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
common exception classes for Experience API implementations
common test data fixtures for Experience API related packages
common JSON test fixtures for Experience API related packages
abstract definition of an xAPI repository interface
client library for the Experience API (xAPI)
A framework for TRAX LRS
统计信息
- 总下载量: 3.04k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 5
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Apache-2.0
- 更新时间: 2020-11-05