daviddlv/clarifai-bundle

Image recognition for your Symfony2 project using Clarifai

Installs: 23

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

Type:symfony-bundle

1.0 2016-10-31 21:57 UTC

This package is not auto-updated.

Last update: 2024-04-27 22:56:40 UTC


README

This bundle provides integration with Clarifai with Symfony2.

Installation

Step 1: Download the Bundle

Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:

$ composer require daviddlv/clarifai-bundle

Step 2: Enable the Bundle

Then, enable the bundle by adding it to the list of registered bundles in the app/AppKernel.php file of your project:

    <?php
    // app/AppKernel.php

    // ...
    class AppKernel extends Kernel
    {
        public function registerBundles()
        {
            $bundles = array(
                // ...
                new ClarifaiBundle\ClarifaiBundle(),
            );

            // ...
        }

        // ...
    }

Configuration

# app/config/config.yml

clarifai:
    auth:
        client_id: %client_id%
        client_secret: %client_secret%

Basic Usage

    $client = $this->conrainer->get('clarifai.api.client');
    
    TODO