Skip to content

AJDurant/acr-cloud-php

Repository files navigation

acr-cloud-php

Build Status

About

URL: https://github.com/AJDurant/acr-cloud-php

Author: AJDurant

Usage

Install through composer.

use \AJDurant\ACRCloud\ACRCloud;

$acr = new ACRCloud(api_key, api_secret);
$data = $acr->identify(path_to_audio_file);

Data returned is of the format described in the ACRCloud Metadata Docs as a PHP associative array.

Build dependencies

In order to build your generated Composer project from its source, you will need Grunt and PHP on the command line.

So, you must install PHP5 on your system on your command line. Test it:

php --help

To install Grunt globally on the command line (and run the above build task), run:

npm install -g grunt-cli

Then, with Grunt, you can install Composer, PhpDocumentor, PhpUnit and PhpCPD locally. Just run once:

grunt init

Then, you can install PhpDocumentor, PhpUnit and PhpCPD locally. Just run once:

php composer.phar install -v

Finally, you should also install the PHP extension named Xdebug, which will be used by PhpUnit for code coverage.

Build the sources

Once all your dependencies are installed, you can build your project with Grunt:

grunt build

The build process will run the following tasks:

  • PhpLint: runs php -l over the "src" folder
  • Runs the tests located in the "tests" folder with PHPUnit
  • Generates a PhpDocumentor documentation in the "doc" folder from the files of the "src" folder
  • Detects copy/paste of code in the files of the "src" folder with PhpCPD

Built with Grunt

Credits

acr-cloud-php was initiated with generator-composer, a Yeoman generator that builds a PHP Composer project.

This project uses the following as development dependencies:

License

License

About

An ACRCloud API PHP client library

Resources

License

Stars

Watchers

Forks

Packages

No packages published