Download the PHP package php-tmdb/symfony without Composer

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

A Symfony Bundle for use together with the php-tmdb/api TMDB API Wrapper.

License License Build Status Build Status codecov PHP Total Downloads

Compatible with Symfony 5 and 6, PHP 7.4 and up.

Buy me a coffee, or a beer :-)

My stomach will appreciate your donation!

Installation

Then require the bundle:

Configuration

Register the bundle in app/bundles.php:

Add to your app/config/config.yml the following, or replace values with services of your choice ( PSR-18 Http Client / PSR-17 Factories ):

services.yaml:

Configure caching

You can use any PSR-6 cache you wish to use, we will simply use symfony's cache.

When making use of caching, make sure to also include php-http/cache-plugin in composer, this plugin handles the logic for us, so we don't have to re-invent the wheel.

You are however also free to choose to implement your own cache listener, or add the caching logic inside the http client of your choice.

First off configure the cache pool in symfony config/cache.yaml:

Then in your tmdb_symfony.yaml configuration enable the cache and reference this cache pool:

Want to make use of logging?

Logging capabilities as of 4.0 allow you to make a fine-grained configuration.

You can use any PSR-3 logger you wish to use, we will simply use monolog.

First off configure the monolog and add a channel and handler:

Then in your tmdb_symfony.yaml configuration:

Disable repositories :

Disable twig extension :

Disable https :

Disable legacy aliases :

_Set to true to remove all legacy alises ( e.g. tmdb.client or tmdb.movie_repository )._

Full configuration with defaults :

Usage

Obtaining the client

Obtaining repositories

An overview of all the repositories can be found in the services configuration repositories.xml.

There is also a Twig helper that makes use of the Tmdb\Helper\ImageHelper to output urls and html.

For all all other interactions take a look at php-tmdb/api.


All versions of symfony with dependencies

PHP Build Version
Package Version
Requires php Version ^7.4 || ^8.0
php-tmdb/api Version ^4.0
symfony/config Version ^5.4 || ^6.0
symfony/dependency-injection Version ^5.4 || ^6.0
symfony/event-dispatcher Version ^5.4 || ^6.0
symfony/http-kernel Version ^5.4 || ^6.0
symfony/yaml Version ^5.4 || ^6.0
twig/twig Version ^3.0
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 php-tmdb/symfony contains the following files

Loading the files please wait ....