Git Product home page Git Product logo

clearbit-php's Introduction

Wisembly

This repo is the code of wisembly website, made on top of Wisembly silexCMS.

Install

  • clone repository

git clone git://github.com/Wisembly/wisembly.git

  • initialise submodules (Twitter bootstrap, jQuery..)

git submodule update --init

  • get composer

  • install vendors

php composer.php install

  • duplicate every .dist file in app/config/, web/fr|en/ and tweak them as need

  • import bin/database_structure.sql

That's it!

Licence

MIT Licence

Authors

  • @nicolaschenet
  • @arcanis
  • @guillaumepotier

clearbit-php's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

clearbit-php's Issues

Adding support for the logo API

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.

Syntax error, unexpected 'use'

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?

Fix the composer warnings with jane packages

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.

Upgrading Guzzle

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.