sdicgdev/sdi-sdk
Composer 安装命令:
composer require sdicgdev/sdi-sdk
包简介
A composer package that provides solutions for common tasks for SDI CORE services
README 文档
README
sdi-sdk is a composer installable package that provides solutions to common SDI Core services PHP tasks.
Install
composer require sdicgdev/sdi-sdk:~1
composer install
Require in your project
Add the folowing to your composer.json file
"require": {
"sdicgdev/sdi-sdk": "~1"
}
Dependencies
sdi-sdk requires some support functions in the composer package peledies/rhonda which is resolved as a dependency of this sdk
Configuration Files
The methods outlined below may require a configuration JSON file to be loaded in order to use the SDK. This allows you to have a more dynamic development environment with values that are different than your production environment. The configuration file will typically live in the etc directory in your project root.
The configuration file should have a similar structure:
{
"scheme": "http://",
"host": "events.eventlink.local",
"port": 80,
"path": "/",
"ssl":false,
"headers":{
"Content-Type": "application/json"
},
"domain_id":"domain_2",
"support_services":{
"elguapo": "http://elguapo.eventlink.local" // REQUIRED FOR PERMISSIONS VERIFICATION
}
}
Loading the configuration file
\Rhonda\Config:: load_file("system","path/to/file.json");
Classes and Methods
| Method | Description |
|---|---|
verify() | Verify a particular permissions flag |
try{
\SDI\Permissions::verify('calendar_list');
}catch(\Exception $e){
echo \Rhonda\Error::handle($e);
}
sdicgdev/sdi-sdk 适用场景与选型建议
sdicgdev/sdi-sdk 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 1.03k 次下载、GitHub Stars 达 0, 最近一次更新时间为 2015 年 11 月 06 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 sdicgdev/sdi-sdk 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 sdicgdev/sdi-sdk 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 1.03k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 23
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: proprietary
- 更新时间: 2015-11-06