Download the PHP package trustedsearch/php-trustedsearch without Composer

On this page you can find all versions of the php package trustedsearch/php-trustedsearch. 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 php-trustedsearch

php-trustedsearch

Obtain the latest version of the TRUSTEDSearch PHP bindings with:

git clone https://github.com/trustedsearch/php-trustedsearch

Documentation

Please see http://developers.trustedsearch.org/ for up-to-date documentation.

Packagist: https://packagist.org/packages/trustedsearch/php-trustedsearch

Installation

Traditional

To get started, add the following to your PHP script:

require_once("/path/to/php-trustedsearch/lib/TrustedSearch.php");

Composer

Add the line below to your "require" block in your composer file

trustedsearch/php-trustedsearch

Then update your composer

composer update

Usage

To start using the package, you need to be given your sandbox and production public & private keys.

Basic Configuration

Creating a Token.

Tokens are used for whitelabel products.

Version 1 API's

Get All Business for all users locations

See the API documentation for a list of parameters for each API resource.

Get Business Updates for single location

See the API documentation for a list of parameters for each API resource.

Get Business Updates since epoch 1380611103

See the API documentation for a list of parameters for each API resource.

Submit New Business Listings

See the API documentation for a list of parameters for each API resource.

Validating Business Listings

See the API documentation for a list of parameters for each API resource.

Testing

Testing / Simulating a change in a business listing

Version 2 API's

Don't forget to switch versions before a series of these calls:

What's New!

Listings

TrustedSearch_Listing::index

Page through and filter down any listing associated w/ your account.

See the API documentation for a list of parameters for each API resource.

Error Handling

Exceptions are thrown when there is an api issue.

Exceptions

Output: (Body is formatted for readability.)

Tests

In order to run tests you have to install PHPUnit (https://packagist.org/packages/phpunit/phpunit) via Composer (http://getcomposer.org/) (recommended way):

composer.phar update --dev

Run test suite:

php ./test/TrustedSearch.php

All versions of php-trustedsearch with dependencies

PHP Build Version
Package Version
Requires php Version >=5.2
ext-curl Version *
ext-json Version *
ext-mbstring 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 trustedsearch/php-trustedsearch contains the following files

Loading the files please wait ....