fuzzysteve/crestlibrary
最新稳定版本:1.0.0
Composer 安装命令:
composer require fuzzysteve/crestlibrary
包简介
Crest Library for Eve Online
关键字:
README 文档
README
A basic (for now) library for interacting with Crest, from EveOnline.
Requires an application to be created on the developers site before it can work
This is designed to work with Stash as a caching mechanism. If you don't predefine a cache pool to hand to it, it creates an ephemeral one (memory only).
Cache timers are obeyed for all resources (well, kinda. Things get grabbed at the beginning of a call, and last that long).
More public functions:
getEndpoints()
Returns a list of endpoints, by name
getEndpoint(url, array of parameters, content type)
Returns a data structure of the endpoint. (caches it by url, parameters and content type)
Time to live defaults to 200.
walkEndpoint(url, caching key, Collection index,index to be returned,array of parameters, content-type, max pages to walk, default ttl)
Takes a url, and walks through all the next pages. Builds up an array to return.
Caching key is used with some other parameters to create a unique index for the request. So walking two regions wouldn't give you the same data.
Collection index: Which array to walk through in the result set. Often "items"
Index to be returned: How to index the array that comes back. "href" would use the href as a key. '' makes it a purely numeric key.
array of parameters: In case you need to hand in some parameters.
Content type: the content type to accept.
Max pages: Defaults to walking an infinite number of pages.
ttl: how long to keep the data for (as it doesn't bubble up from getEndpoints. I may change this. likely with another optional parameter on getEndpoint, matching the last request)
Trying it out:
get test.php, setup.php and composer.json from the test/ directory. you don't need the rest, as composer will take care of that.
fill in your details into setup.php. I can't currently help you get a renewal key. You need to auth against the sso, with the publicData Scope
If you don't have composer installed:
curl -sS https://getcomposer.org/installer | php
run: composer install
then, if you run test.php, you'll get the price data for Tritanium, in the Forge, on Sisi
fuzzysteve/crestlibrary 适用场景与选型建议
fuzzysteve/crestlibrary 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 140 次下载、GitHub Stars 达 16, 最近一次更新时间为 2014 年 11 月 27 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「EVE Online」 「CREST」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 fuzzysteve/crestlibrary 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 fuzzysteve/crestlibrary 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 fuzzysteve/crestlibrary 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Simple Eve Api Tool
A standalone ESI (Eve Swagger Interface) Client Library using kevinrob/guzzle-cache-middleware
Adds Pheal support to your Symfony2 project.
A simple to use API library for Eve-Central.
EvE Online OAuth 2.0 Client Provider for The PHP League OAuth2-Client
Laravel PayMob online payment gateway package
统计信息
- 总下载量: 140
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 16
- 点击次数: 9
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2014-11-27