GithubHelp home page GithubHelp logo

clarifai's Introduction

Clarifai PHP Library

Build Status GitHub version

Clarifai API Library, PHP/Composer implementation of the clarifai api. (clarifai). PHPfanatic's PHP library brings you the power of clarifai's image recognition API wrapped in an easy to use PHP library that you can add to your own project easily with composer.

Build smarter apps faster with Clarifai’s powerful visual recognition technology.

Getting Started

Add the package to your composer implementation.

composer require phpfanatic/clarifai

or

Add the package manually by downloading the most recent stable version release from Github and include the src/ directory within your own project.

Requirements

  • PHP - 5.6, 7.0 - May work with ealier version, untested at this time.
  • cURL - *
  • Clarifai API Key - clarifai
  • PHPUnit - to run tests (optional).

Example Usage

use PhpFanatic\clarifAI\ImageClient;

$client = new ImageClient([API_KEY]);

$client->AddImage('http://phpfanatic.com/projects/clarifai/dog.jpg');
$result = $client->Predict();

Documentation

PHPfanatic - ClarifAI documentation

Change History

  • 2.0.1 - Patched clientversion variable.
  • 2.0.0 - Changed Clarifai authentication to use API Key method.
  • 1.2.3 - Added User-Agent Library header to outbound curl calls per Clarifai request.
  • 1.2.2 - Fixed malformed url bug when you paginate a get request. (credit: @mhdere)
  • 1.2.1 - Fixed urlencode bug (credit: keithslater), added additional Clarifai models.
  • 1.2.0 - Added model delete support, updated inputs to allow delete all.
  • 1.1.0 - Added multi language support.
  • 1.0.0 - Public API release.
  • 0.1.1 - Development alpha release.

Look Ahead (what might be changed in the future.)

  • Removing cURL as a requirement.
  • Combining POST,DELETE,PATCH into a single method.

Built With

Authors

License

This project is licensed under the MIT License.

clarifai's People

Contributors

phpfanatic avatar

Watchers

 avatar  avatar

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.