wisembly / clearbit-php Goto Github PK
View Code? Open in Web Editor NEWPHP SDK for Clearbit API (http://clearbit.com).
License: MIT License
PHP SDK for Clearbit API (http://clearbit.com).
License: MIT License
Package jane/runtime is abandoned, you should avoid using it. Use jane-php/json-schema-runtime instead.
Package jane/openapi-runtime is abandoned, you should avoid using it. Use jane-php/open-api-runtime instead.
Package jane/jane is abandoned, you should avoid using it. Use jane-php/json-schema instead.
Package jane/open-api is abandoned, you should avoid using it. Use jane-php/open-api instead.
Clearbit also has a free Logo API that I'd like to use. I'm going to go ahead and add this when I get the time, so I'm just creating this issue here to keep a record of it.
Just wondering if there's a reason this project uses Guzzle 3? Any plans to upgrade to 5 or 6 in the near future? Any interest?
Would be happy to help with the upgrade process if that's interesting to you at all.
I was about to start a small project using the Clearbit Autocomplete API when I found this. Are you interested in supporting it as well? I'm happy to do the work in my own fork and make a PR if you're open to it.
Thanks!
I installed...
composer require php-http/curl-client guzzlehttp/psr7 php-http/message
composer require wisembly/clearbit-php
And then I copied your example...
require_once '/home/mysite/public_html/wp-content/plugins/cxt-user-wpai-import/clearbit/vendor/autoload.php';
use Clearbit\Clearbit;
$clearbit = Clearbit::create($token);
$combined = $clearbit->getCombined('[email protected]');
var_dump($combined->getPerson());
var_dump($combined->getCompany());
But I get...
Parse error: syntax error, unexpected 'use' (T_USE) in /home/mysite/public_html/wp-content/plugins/cxt-dash-comments/cxt-dash-comments.php on line 188
Line 188 is my use
line above.
Composer feedback that generated notices was...
paragonie/random_compat suggests installing ext-libsodium (Provides a modern crypto API that can be used to generate random bytes.)
symfony/property-access suggests installing psr/cache-implementation (To cache access methods.)
jane/jane suggests installing fabpot/php-cs-fixer (Allow to automatically fix cs on generated code for better visualisation)
jane/open-api suggests installing friendsofphp/php-cs-fixer (To have a nice formatting of the generated files)
wisembly/clearbit-php suggests installing php-http/guzzle6-adapter (^1.0)
Package jane/runtime is abandoned, you should avoid using it. Use jane-php/json-schema-runtime instead.
Package jane/openapi-runtime is abandoned, you should avoid using it. Use jane-php/open-api-runtime instead.
Package jane/jane is abandoned, you should avoid using it. Use jane-php/json-schema instead.
Package jane/open-api is abandoned, you should avoid using it. Use jane-php/open-api instead.
Contents of vendor
are...
autoload.php
bin/
clue/
composer/
doctrine/
fitbug/
guzzlehttp/
jane/
nikic/
paragonie/
php-http/
psr/
symfony/
wisembly/
How do I overcome this?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.