dant89/zoopla-api-php-client
Composer 安装命令:
composer require dant89/zoopla-api-php-client
包简介
A lightweight PHP client for the Zoopla API
README 文档
README
An unofficial PHP client for the Zoopla API
Installation
To install, run composer require dant89/zoopla-api-php-client in the root of your project or add dant89/zoopla-api-php-client to your composer.json.
"require": { "dant89/zoopla-api-php-client": REPLACE_WITH_VERSION }
Zoopla developer API Documentation
To read more about how the Zoopla developer API functions, please read the official documentation.
Usage
Use your provided api key upon instantiation of this client. You can also specify the version and response output to be different from the defaults.
use Dant89\ZooplaApiClient\Client; // Create base client $zooplaClient = new Client(ZOOPLA_API_KEY); // Select application client $propertyClient = $zooplaClient->getHttpClient('property'); $properties = $propertyClient->getPropertyListings();
Tests
You can test your API key by running the PHPUnit tests included in this client.
Please note that tests will count as API call usages for the API key you specify.
PHPUnit tests:
- Add your
apiKeytotests/Helper/ClientTestCase.php php vendor/phpunit/phpunit/phpunit tests
PHP CodeSniffer:
php vendor/squizlabs/php_codesniffer/bin/phpcs src --standard=PSR2 --severity=5 --extensions=php
PHP MessDetector
php vendor/phpmd/phpmd/src/bin/phpmd src text controversial,unusedcode,design
Contributions
Contributions to the client are welcome, to contribute please:
- Fork this repository
- Create your feature branch
- Commit your changes
- Push to the branch
- Create a new pull request
统计信息
- 总下载量: 5
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-09-22