Download the PHP package resoul/imdb without Composer

On this page you can find all versions of the php package resoul/imdb. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package imdb

IMDB parser


Box Office Mojo parser for demo purpose only.

Table of Contents

  1. Overview
  2. Installation
  3. Quick Start
  4. API Reference
  5. Models
  6. Examples
  7. Error Handling
  8. Performance Considerations
  9. Contributing

Overview

The IMDB Parser is a PHP library that scrapes Box Office Mojo and IMDB Pro to extract movie and box office data. It provides a clean, object-oriented interface for retrieving weekend box office rankings, yearly box office data, and detailed film information.

Features

Requirements

Installation

Install via Composer:

Quick Start

API Reference

Parser Class

The main Parser class is the entry point for all parsing operations.

Constructor

Creates a new Parser instance with default HTTP client configuration.

Example:

Methods

setCacheFolder(string $path): static

Sets the cache directory for storing downloaded HTML content.

Parameters:

Returns: static - For method chaining

Throws: Exception - If directory cannot be created

Example:

byWeekend(string $weekend): static

Configures parser to extract weekend box office data.

Parameters:

Returns: static - For method chaining

Example:

byYear(string $year): static

Configures parser to extract yearly box office data.

Parameters:

Returns: static - For method chaining

Example:

bySource(string $source): static

Configures parser to extract data from a custom URL.

Parameters:

Returns: static - For method chaining

Example:

run(): IMDB

Executes the parsing operation and returns structured data.

Returns: IMDB - Parsed box office data with releases

Throws: Exception - If parsing fails or network error occurs

Example:

parseTitle(): Film

Parses a single film from IMDB Pro (requires setting source first).

Returns: Film - Detailed film information

Throws: Exception - If parsing fails

Example:

Models

IMDB

Main container for parsed box office data.

Properties

Methods

Release

Represents a single film's box office performance.

Properties

Methods

Film

Comprehensive film information from IMDB Pro.

Properties

Methods

Gross

Box office revenue breakdown by market.

Properties

Methods

Actor

Cast and crew member information.

Properties

Methods

Enums

FilmTypeEnum

GenreEnum

Available genres: Action, Drama, Comedy, Thriller, etc.

RoleEnum

Available roles: Actor, Director, Writer, Producer, etc.

DistributorEnum

Major film distributors: Warner Bros., Universal Pictures, etc.

Examples

Weekend Box Office Analysis

Yearly Box Office Top 10

Detailed Film Information

Advanced Usage with Error Handling

Error Handling

The parser throws Exception objects for various error conditions:

Common Exceptions

  1. Network Errors: Connection timeout, DNS resolution failures
  2. Parsing Errors: Invalid HTML structure, missing elements
  3. Cache Errors: Unable to create cache directory, permission issues
  4. Data Validation: Invalid weekend format, missing required data

Best Practices

Performance Considerations

Caching

The parser includes a built-in caching system that stores downloaded HTML files to avoid repeated requests:

Memory Usage

For large datasets (yearly data), consider processing releases in batches:

Rate Limiting

Be respectful of the target websites:

This comprehensive documentation should help users understand and effectively use the IMDB parser library.


All versions of imdb with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0
guzzlehttp/guzzle Version ^7.5
ext-dom Version *
ext-libxml Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package resoul/imdb contains the following files

Loading the files please wait ...