PHPackages                             palantirnet/rottentomatoes - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. palantirnet/rottentomatoes

AbandonedArchivedLibrary[HTTP &amp; Networking](/categories/http)

palantirnet/rottentomatoes
==========================

Bridge API for talking to Rotten Tomatoes

1.1(12y ago)1912MITPHPPHP &gt;=5.3.3

Since Jul 18Pushed 7y ago2 watchersCompare

[ Source](https://github.com/palantirnet/rottentomatoes)[ Packagist](https://packagist.org/packages/palantirnet/rottentomatoes)[ RSS](/packages/palantirnet-rottentomatoes/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (1)Versions (3)Used By (0)

Rotten Tomatoes Bridge
======================

[](#rotten-tomatoes-bridge)

This library is a simple API wrapper around the Rotten Tomatoes API. It is built on the Guzzle HTTP library.

*Development on this package is closed.*

### Installing via Composer

[](#installing-via-composer)

The recommended way to install this library is through [Composer](http://getcomposer.org).

1. Add `palantirnet/rottentomatoes` as a dependency in your project's `composer.json` file:

    ```
     {
         "require": {
             "palantirnet/rottentomatoes": "1.0"
         }
     }

    ```
2. Download and install Composer:

    ```
     curl -s http://getcomposer.org/installer | php

    ```
3. Install your dependencies:

    ```
     php composer.phar install

    ```
4. Require Composer's autoloader

    Composer also prepares an autoload file that's capable of autoloading all of the classes in any of the libraries that it downloads. To use it, just add the following line to your code's bootstrap process:

    ```
     require 'vendor/autoload.php';

    ```

You can find out more on how to install Composer, configure autoloading, and other best-practices for defining dependencies at [getcomposer.org](http://getcomposer.org).

Using the library
-----------------

[](#using-the-library)

To connect to Rotten Tomatoes, you need an API key issued by them. It is a simple pseudorandom alphanumeric string. You can register for one on the \[Rotten Tomatoes Developer site\]\[\]

Once you have the key, the rest is easy:

```
