Download the PHP package ramshackleb3/bdmi without Composer

On this page you can find all versions of the php package ramshackleb3/bdmi. 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 bdmi

imdbphp

PHP library for retrieving film and TV information from IMDb. Retrieve most of the information you can see on IMDb including films, TV series, TV episodes, people. Search for titles on IMDb, including filtering by type (film, tv series, etc). Download film posters and actor images.

Quick Start

Installation

This library scrapes imdb.com so changes their site can cause parts of this library to fail. You will probably need to update a few times a year. Keep this in mind when choosing how to install/configure.

Get the files with one of:

Requirements

Configuration

imdbphp needs no configuration by default but can cache imdb lookups, store images and change languages if configured.

Configuration is done by the \Imdb\Config class in src/Imdb/Config.php which has detailed explanations of all the config options available. You can alter the config by creating the object, modifying its properties then passing it to the constructor for imdb.

If you're using a git clone you might prefer to configure IMDbPHP by putting an ini file in the conf folder. 900_localconf.sample has some sample settings.

The cache folder is ./cache by default. Requests from imdb will be cached there for a week (by default) to speed up future requests.

Advanced Configuration

Replacing the default cache (disk cache)

You can replace the caching mechanism that ImdbPHP uses to any PSR-16 (simple cache) cache by passing one into the constructor of any ImdbPHP class.

The only piece of imdbphp config that will be used with your cache is the TTL which is set by \Imdb\Config::$cache_expire and defaults to 1 week.

Replacing the default logger (which echos coloured html, and is disabled by default)

The logger will mostly tell you about http requests that failed at error level, each http request at info and some stuff like cache hits at debug.

Searching for a film

Searching for a person

Demo site

The demo site gives you a quick way to make sure everything's working, some sample code and lets you easily see some of the available data.

From the demo folder in the root of this repository start up php's inbuilt webserver and browse to [http://localhost:8000]()

php -S localhost:8000

Gotchas / Help

SSL certificate problem: unable to get local issuer certificate

Windows

The cURL library either hasn't come bundled with the root SSL certificates or they're out of date. You'll need to set them up:

  1. Download cacert.pem
  2. Store it somewhere in your computer.
    C:\php\extras\ssl\cacert.pem
  3. Open your php.ini and add the following under [curl]
    curl.cainfo = "C:\php\extras\ssl\cacert.pem"
  4. Restart your webserver.

    Linux

    cURL uses the certificate authority file that's part of linux by default, which must be out of date. Look for instructions for your OS to update the CA file or update your distro.

Configure languages

Sometimes IMDb gets unsure that the specified language are correct, if you only specify your unique language and territory code (de-DE). In the example below, you can find that we have chosen to include de-DE (German, Germany), de (German) and en (English). If IMDb can’t find anything matching German, Germany, you will get German results instead or English if there are no German translation.

Please use The Unicode Consortium Langugage-Territory Information database for finding your unique language and territory code.

Langauge Code Territory Code
German de Germany {O} DE

After you have found your unique language and territory code you will need to combine them. Start with language code (de), add a separator (-) and at last your territory code (DE); de-DE. Now include your language code (de); de-DE,de. And the last step add English (en); de-DE,de,en.


All versions of bdmi with dependencies

PHP Build Version
Package Version
Requires php Version >=5.6
psr/log Version ~1.0
ext-curl Version *
ext-dom Version *
ext-json Version *
psr/simple-cache Version ^1.0
ext-libxml Version *
ext-simplexml 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 ramshackleb3/bdmi contains the following files

Loading the files please wait ....