wisembly / clearbit-php
Clearbit API client
Installs: 22 846
Dependents: 0
Suggesters: 0
Security: 0
Stars: 9
Watchers: 12
Forks: 6
Open Issues: 1
Requires
- php: ^5.4 || ^7.0
- jane/open-api: ^1.0
- php-http/client-common: ^1.0
- php-http/client-implementation: ^1.0
- php-http/discovery: ^1.1
- php-http/message: ^1.0
- php-http/message-factory: ^1.0
- psr/http-message: ^1.0
Requires (Dev)
- guzzlehttp/psr7: ^1.2
- php-http/guzzle6-adapter: ^1.0
- phpunit/phpunit: ^4.7
Suggests
- guzzlehttp/psr7: ^1.2
- php-http/guzzle6-adapter: ^1.0
This package is not auto-updated.
Last update: 2024-12-18 18:20:20 UTC
README
PHP SDK for Clearbit API (http://clearbit.com).
This SDK is NOT official, heavily inspired by docker-php.
We developed and maintain this library for our own usage and released it open source (see LICENCE.md) if it could help.
Clearbit and its API belongs to Clearbit.
Install
This client use httplug for http client. Please select a client for your application and select a MessageFactory.
Example with guzzle6 as client and guzzlehttp as message factory:
"wisembly/clearbit-php": "^2.0",
"php-http/guzzle6-adapter": "^1.0",
"guzzlehttp/psr7": "^1.2"
Basic usage
<?php require_once 'vendor/autoload.php'; use Clearbit\Clearbit; $clearbit = Clearbit::create($token); $combined = $clearbit->getCombined('foo@bar.com'); var_dump($combined->getPerson()); var_dump($combined->getCompany());
Testing
Run bin/phpunit
Resources
Resources this API supports:
Developer
This client is build using jane-openapi. To generate the classes:
./vendor/bin/jane-openapi generate combined-swagger.json Clearbit\\Generated generated
Licence
See LICENCE file.