pfwd/vimeo-entities
Composer 安装命令:
composer require pfwd/vimeo-entities
包简介
A set of PHP entities that represent the Vimeo API responses
README 文档
README
A set of PHP entities that represent the Vimeo API responses Includes Hydrators that populate the entities from the responses
Usage
# .. use PFWD\Vimeo\Hydrator\Type\Video; // Get response $client->request('/me/videos/', array(), 'GET'); $dataSet = $response['body']['data']; // Loop over each video in the data set and hydrate a new Video entity foreach($dataSet as $data) { $hydrator = new Video($data); $video = $hydrator->getEntity(); } # ..
TODO
Only Video details are working at the moment
Install
$ composer require "pfwd/vimeo-entities"
Tests
To run tests
$ bin/phpstan analyse --level=7 src
$ bin/codecept run unit
统计信息
- 总下载量: 10
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 1
其他信息
- 授权协议: MIT
- 更新时间: 2019-03-15