dant89 / zoopla-api-php-client
A lightweight PHP client for the Zoopla API
Requires
- php: ^7.2
- ext-json: *
- guzzlehttp/guzzle: ^6.0
- symfony/http-foundation: 3.4.*|4.4.*|5.*
Requires (Dev)
- phpmd/phpmd: ^2.7
- phpunit/phpunit: ^8.4
- squizlabs/php_codesniffer: ^3.5
This package is auto-updated.
Last update: 2024-10-23 00:41:55 UTC
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
apiKey
totests/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