pfwd / vimeo-entities
A set of PHP entities that represent the Vimeo API responses
Installs: 10
Dependents: 1
Suggesters: 1
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/pfwd/vimeo-entities
Requires
- php: >=7.2
Requires (Dev)
- codeception/codeception: ^2.5
- phpstan/phpstan: ^0.11.3
This package is auto-updated.
Last update: 2025-09-18 05:36:26 UTC
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