Download the PHP package tineye/tineye-api without Composer

On this page you can find all versions of the php package tineye/tineye-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package tineye-api

TinEye API PHP Library

tineye-api is a PHP library for the TinEye API. The TinEye API is a paid reverse image search solution for professional, commercial or high-volume users of TinEye.

Contents

Installation

Install via Composer. If composer is installed, run the following from your shell:

Migrating from previous versions

If you were using any version of the TinEye API library before 2.0.0, you will need to make minor changes to your code.

The API object is now instantiated using a single key, api_key. The value of this key is the same as your previous private_key. The public key is no longer used.

New ✅

Old ❌

Getting started

Once you've installed the library, you can instantiate a TinEyeApi object with your API key:

If you don't have an account yet, you can still test out the library using our API sandbox by instantiating the TinEyeApi object with no arguments:

Note that the API sandbox will not return real results; all results will be the same image of a cat.

Once you've created your TinEyeApi object you can start searching. You can submit an image using either an submitting image data by uploading an image file. You can also check the number of remaining searches in your account or check the number of images in the TinEye index.

Methods

Common parameters

Each search method (searchUrl and searchData) takes an optional parameter params that takes an associative array with any of these options:

For more information on possible settings please visit the TinEye API documention.

Search using an image URL

Use this method to have TinEye download an image URL and search it against the TinEye index.

Search using image data

Use this method to upload an image to TinEye and search it against the TinEye index.

Get remaining searches

Use this method to get the number and status of remaining search bundles.

Get number of indexed images

Use this method to get the number and images currently indexed by TinEye

Get the HTTP client

This method allows access to the wrapped GuzzleHttp client. More information is available at GuzzleHttp.

Support

Please send comments, recommendations, and bug reports to [email protected].

Testing

Tests are located in the /tests folder and use PHPunit.

License

Licensed under the MIT License (MIT). Please see License File for more information.


All versions of tineye-api with dependencies

PHP Build Version
Package Version
Requires php Version ^7.2 || ^8.0
guzzlehttp/guzzle Version ^6.5.6 || ^7.4.4
ext-json Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package tineye/tineye-api contains the following files

Loading the files please wait ....