lobostome/furry-bear
最新稳定版本:0.7.2
Composer 安装命令:
composer require lobostome/furry-bear
包简介
A PHP wrapper for various open data
README 文档
README
A PHP wrapper for the Sunlight Foundation APIs
Quick Start
Specify the http adapter, the API provider, and the output format.
$adapter = new FurryBear\Http\Adapter\Curl(); $provider = new FurryBear\Provider\Source\SunlightCongress($adapter, $apiKey); $output = new FurryBear\Output\Strategy\JsonToArray(); $fb = new FurryBear\FurryBear(); $fb->registerProvider($provider)->registerOutput($output); var_dump( $fb->bills_search->fields('official_title', 'chamber', 'introduced_on', 'search') ->search('"health care" medicine') ->filter('history.enacted', true) ->order('introduced_on') ->get() );
Documentation
For detailed documentation and examples, visit the Wiki.
Roadmap
0.9.0
- Add Sunlight Influence Explorer API
0.8.0
- Major overhaul of existing code base
- Add event management
- HTTP clients direct access
- Process multiple requests in parallel
- 100% unit testing
Changelog
0.7.1
- Switch to the Congress API's HTTPS endpoint
0.7.0
- Add Dependency Injection Container
0.6.0
- Add Sunlight Political Party Time API
0.5.2
- Add Congress API districts locate helpers
0.5.1
- Alias Open States API resources
- Add Geocode Chain Provider
0.5.0
- Add Sunlight Open States API
0.4.0
- Add Sunlight Capitol Words API
统计信息
- 总下载量: 235.11k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 19
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2013-05-27