PHP code example of joearcher / tomatoes

1. Go to this page and download the library: Download joearcher/tomatoes library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

joearcher / tomatoes example snippets


'Joearcher\Tomatoes\TomatoesServiceProvider',

'Tomatoes' =>	'Joearcher\Tomatoes\Facades\Tomatoes',

'apikey' => '<Your API key here>'

Tomatoes::search("Terminator");

Tomatoes::search("war",10,2);

Tomatoes::movie(771245718);

Tomatoes::cast(771245718);

Tomatoes::reviews(771245718);

Tomatoes::similar(771245718);