External PHP Libraries

Last updated on
16 February 2023

This documentation needs work. See "Help improve this page" in the sidebar.

Drupal 8 allows using external PHP libraries via Composer

Library Version (used in core) Latest version related Issue Comment
composer/installers ^1.0.24 (1.4.0) Package-type to install-path mapping for composer.
wikimedia/composer-merge-plugin ^1.4 (1.4.1) Merge one or more additional composer.json files at Composer runtime.
symfony/class-loader
~3.2.8 (3.2.8)
3.4.3 #2937984: [META] Symfony 4.0 compatibility Tools to autoload classes and cache their locations for performance.
symfony/console
~3.2.8 (3.2.8)
4.0.3 #2937984: [META] Symfony 4.0 compatibility Eases the creation of beautiful and testable command line interfaces.
symfony/dependency-injection
~3.2.8 (3.2.8)
#2937984: [META] Symfony 4.0 compatibility Standardize and centralize the way objects are constructed in your application.
symfony/event-dispatcher
~3.2.8 (3.2.8)
#2937984: [META] Symfony 4.0 compatibility Allows application components to communicate with each other by dispatching events and listening to them.
symfony/http-foundation
~3.2.8 (3.2.8)
#2937984: [META] Symfony 4.0 compatibility Object-oriented layer for the HTTP specification.
symfony/http-kernel
~3.2.8 (3.2.8)
#2937984: [META] Symfony 4.0 compatibility Structured process for converting a Request into a Response by making use of the EventDispatcher component. It's flexible enough to create full-stack frameworks, micro-frameworks or advanced CMS systems like Drupal.
symfony/routing
~3.2.8 (3.2.8)
#2937984: [META] Symfony 4.0 compatibility Maps an HTTP request to a set of configuration variables.
symfony/serializer
~3.2.8 (3.2.8)
#2937984: [META] Symfony 4.0 compatibility Handles serializing and deserializing data structures, including object graphs, into array structures or other formats like XML and JSON.
symfony/translation
~3.2.8 (3.2.8)
#2937984: [META] Symfony 4.0 compatibility Provides tools to internationalize an application.
symfony/validator
~3.2.8 (3.2.8)
#2937984: [META] Symfony 4.0 compatibility Validate values following the Java JSR-303 Bean Validation specification.
symfony/process
~3.2.8 (3.2.8)
#2937984: [META] Symfony 4.0 compatibility Executes commands in sub-processes.
symfony/polyfill-iconv
^1.0 (1.3.0)
Native PHP implementation of the php.net/iconv functions, for human-language-aware character encoding conversions.
symfony/yaml
~3.2.8 (3.2.8)
Loads and dumps YAML files.
twig/twig
^1.35.0 (1.35.0)
Flexible, fast, and secure template language for PHP.
doctrine/common
^2.5 (2.6.2)
Provides additional functionality that other Doctrine projects depend on such as better reflection support, proxies and much more.
doctrine/annotations
^1.2 (1.2.7)
Docblock annotations parser.
guzzlehttp/guzzle
^6.2.1 (6.3.0)
An extensible PHP HTTP client.
symfony-cmf/routing
^1.4 (1.4.1)
Extends the Symfony routing component with additional features.
easyrdf/easyrdf
^0.9 (0.9.1)
Tools to consume and produce RDF.
zendframework/zend-feed
^2.4 (2.7.0)
Functionality for consuming RSS and Atom feeds.
stack/builder
^1.0 (1.0.4)
Construct a nested HttpKernelInterface decorator tree, modelled as a stack of middlewares.
egulias/email-validator
^1.2 (1.2.14)
Email address validator.
masterminds/html5
^2.1 (2.3.0)
HTML5 parser and serializer.
symfony/psr-http-message-bridge
^1.0 (1.0.0)
Provides integration for PSR7.
zendframework/zend-diactoros
^1.1 (1.4.1)
PSR-7 HTTP Message implementation.
composer/semver
^1.0 (1.4.2)
Semantic versioning utilities with the addition of version constraints parsing and checking.
paragonie/random_compat
^1.0|^2.0 (2.0.10)
PHP 5.x support for random_bytes() and random_int().
asm89/stack-cors
^1.1 (1.1.0)
Cross-origin resource sharing library and stack middleware.

Note: All version details are related to the current core minor version (e.g. 8.5.x).

As we have version range (versus fixed version), the exact version (in 2nd column) could change every time someone runs composer update. For a more accurate version, check the composer.lock files(in root and under /core).

Help improve this page

Page status: Needs work

You can: