Skip to content

CompanySearch

duck7000 edited this page Nov 18, 2024 · 1 revision

Description of the working

Search IMDb for companies matching input search string
The results can be used as input for advancedTitleSearch class to get titles based on this company
Or the results can be used as input for Company class to get company info

Calling the class

$imdb = new \Imdb\CompanySearch();
$results = $imdb->search("warner brothers");

Config Option:

  • $companySearchAmount: 30 (this limits the search results, default: 30)

Search parameter

  • $company: input search string including double quotes

Results

@return Title[] array of Titles
array[]

      ['id']         string      imdbid of the found company
      ['name']       string      Name of the found company
      ['country']    string      Country of the found company
      ['type']       string      Company type like Distributor

Clone this wiki locally