2017 © Pedro Peláez
 

library lostmovie

Unified way to search movies

image

pyrsmk/lostmovie

Unified way to search movies

  • Tuesday, May 30, 2017
  • by pyrsmk
  • Repository
  • 1 Watchers
  • 1 Stars
  • 18 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 8 Versions
  • 6 % Grown

The README.md

LostMovie 1.2.5

Unified way to search movies online. Currently, only SensCritique is supported., (*1)

Install

composer require pyrsmk/lostmovie

SensCritique

$senscritique = new LostMovie\SensCritique();

$data = $senscritique->search('star wars 7');

var_dump($data);

It will return :, (*2)

array(7) {
  ["title"] => string(29) "Star Wars : The Force Awakens"
  ["year"] => string(4) "2015"
  ["duration"] => string(10) "2 h 16 min"
  ["genres"] => array(3) {
    [0] => string(6) "action"
    [1] => string(8) "aventure"
    [2] => string(11) "fantastique"
  }
  ["rating"] => string(3) "6.8"
  ["poster"] => string(89) "https://media.senscritique.com/media/000014930137/160/Star_Wars_Le_Reveil_de_la_Force.jpg"
  ["synopsis"] => string(148) "Septième épisode de la saga Star Wars et premier d'une nouvelle trilogie, dont les événements se déroulent trente ans après Le retour du Jedi."
}

If no movie has been found, the response will be null., (*3)

Guzzle/Goutte

LostMovie is working with Guzzle and Goutte to get data. If you want to set some options (or whatsoever) you can retrieve them with :, (*4)

$lostmovie->getGuzzle();
$lostmovie->getGoutte();

Notes about the search engines

We're using the Google search engine to have better results. Please don't make a whole bunch of requests directly otherwise Google will block ulterior requests for some time., (*5)

License

MIT., (*6)

The Versions

30/05 2017

dev-master

9999999-dev

Unified way to search movies

  Sources   Download

MIT

The Requires

 

search movie senscritique

28/05 2017

1.2.5

1.2.5.0

Unified way to search movies

  Sources   Download

MIT

The Requires

 

search movie senscritique

28/05 2017

1.2.4

1.2.4.0

Unified way to search movies

  Sources   Download

MIT

The Requires

 

search movie senscritique

28/05 2017

1.2.2

1.2.2.0

Unified way to search movies

  Sources   Download

MIT

The Requires

 

search movie senscritique

28/05 2017

1.2.1

1.2.1.0

Unified way to search movies

  Sources   Download

MIT

The Requires

 

search movie senscritique

27/05 2017

1.2.0

1.2.0.0

Unified way to search movies

  Sources   Download

MIT

The Requires

 

search movie senscritique

26/05 2017

1.1.0

1.1.0.0

Unified way to search movies

  Sources   Download

MIT

The Requires

 

search movie senscritique

13/02 2017

1.0.0

1.0.0.0

Unified way to search movies

  Sources   Download

MIT

The Requires

 

search movie senscritique