2017 © Pedro Peláez
 

symfony-bundle recognizeim-bundle

Symfony2 bundle that provides Recognize.im PHP client. Allows image recognizing, includes REST and SOAP API.

image

kwn/recognizeim-bundle

Symfony2 bundle that provides Recognize.im PHP client. Allows image recognizing, includes REST and SOAP API.

  • Saturday, May 16, 2015
  • by kwn
  • Repository
  • 1 Watchers
  • 2 Stars
  • 12 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

KwnRecognizeImBundle

Code Climate, (*1)

This bundle integrates RecognizeIm client with Symfony 2., (*2)

Installation

Add KwnRecognizeImBundle to your composer.json:, (*3)

{
    "require": {
        "kwn/recognizeim-bundle": "dev-master"
    }
}

Run update command:, (*4)

$ php composer.phar update kwn/recognizeim-bundle

Enable bundle in AppKernel.php:, (*5)

<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new Kwn\RecognizeImBundle\KwnRecognizeImBundle(),
    );
}

Configuration

Configure bundle in app/config.yml file with credentials obtained from recognize.im account:, (*6)

# app/config.yml

kwn_recognize_im:
    client_id:  CLIENT_ID
    api_key:    API_KEY
    clapi_key:  CLAPI_KEY

Ready to use

You can use recognizeim service now (or recognizeim.client.soap and recognizeim.client.rest shortcut services):, (*7)

<?php

use RecognizeIm\Model\Image;

// ...
$image  = new Image('/home/kwn/Pictures/test.jpg');
$result = $this->get('recognizeim')->getRestApiClient()->recognize($image, 'multi');

There's a command for building RecognizeIm index as well:, (*8)

$ php app/console recognizeim:build-index

The Versions

16/05 2015

dev-master

9999999-dev https://github.com/kwn/RecognizeImBundle

Symfony2 bundle that provides Recognize.im PHP client. Allows image recognizing, includes REST and SOAP API.

  Sources   Download

MIT

The Requires

 

The Development Requires

symfony2 bundle symfony image recognize recognizeim recognize.im reconizing