php-mtg / mtg-api-com-mtgstocks-object
A library that implements the php-mtg/mtg-api-com-mtgstocks-interface library
5.0.0
2022-12-18 17:59 UTC
Requires
Requires (Dev)
This package is auto-updated.
Last update: 2023-05-18 18:54:45 UTC
README
A library that implements the php-mtg/mtg-api-com-mtgstocks-interface library.
Installation
The installation of this library is made via composer and the autoloading of all classes of this library is made through their autoloader.
- Download
composer.phar
from their website. - Then run the following command to install this library as dependency :
php composer.phar php-mtg/mtg-api-com-mtgstocks-object": "^5"
Basic Usage
This library may be used the following way :
use PhpMtg\Mtgstocks\MtgstocksApiEndpoint;
/* @var $client \Psr\Http\Client\ClientInterface */
$endpoint = new MtgstocksApiEndpoint($client);
$collection = $this->_endpoint->getSetsInformation();
foreach($collection as $setResume)
{
/** @var \PhpMtg\Mtgstocks\MtgstocksApiSetPrezInterface $meta */
$set = $this->_endpoint->getSet($setResume->getId());
// do something with set
}
License
MIT (See license file).