php-extended / php-api-fr-gouv-datatourisme-producteur-object
实现 php-extended/php-api-fr-gouv-datatourisme-producteur-interface 库的库
7.0.5
2024-07-31 14:52 UTC
Requires
Requires (Dev)
- dev-master
- 7.0.5
- 7.0.4
- 7.0.3
- 7.0.2
- 7.0.1
- 7.0.0
- 6.2.5
- 6.2.4
- 6.2.3
- 6.2.2
- 6.2.1
- 6.2.0
- 6.1.8
- 6.1.7
- 6.1.6
- 6.1.5
- 6.1.4
- 6.1.3
- 6.1.2
- 6.1.1
- 6.1.0
- 6.0.0
- 5.0.1
- 5.0.0
- 4.0.2
- 4.0.1
- 4.0.0
- 3.3.7
- 3.3.6
- 3.3.5
- 3.3.4
- 3.3.3
- 3.3.2
- 3.3.1
- 3.3.0
- 3.2.3
- 3.2.2
- 3.2.1
- 3.2.0
- 3.1.7
- 3.1.6
- 3.1.5
- 3.1.4
- 3.1.3
- 3.1.2
- 3.1.1
- 3.1.0
- 3.0.4
- 3.0.3
- 3.0.2
- 3.0.1
- 3.0.0
This package is auto-updated.
Last update: 2024-08-31 13:13:40 UTC
README
实现 php-extended/php-api-fr-gouv-datatourisme-producteur-interface 库的库。
安装
此库的安装通过 composer 完成,该库的所有类的自动加载都通过其自动加载器完成。
- 从他们的网站下载
composer.phar
。 - 然后运行以下命令将此库作为依赖项安装
php composer.phar php-extended/php-api-fr-gouv-datatourisme-producteur-object ^7
基本用法
此库可以按以下方式使用
use PhpExtended\DatatourismeProducteurApi\DtProdApiEndpoint;
use PhpExtended\Endpoint\HttpEndpoint;
/** @var $client \Psr\Http\Client\ClientInterface */
// note : the $client must support cookies, should not follow
// locations, and must have extended timeout
$endpoint = new DtProdApiEndpoint('/tmp/', new HttpClient($client));
$endpoint->login($username, $password);
foreach($endpoint->getTodaysReutilisationStats() as $line)
{
// $line instanceof DtProdApiStatReutilisationLine
// do something with $line
}
许可证
MIT (参见 许可证文件)。