chromatic / php-gd-config-check
Composer plugin to check for the presence and status of specified formats for the PHP GD library.
Installs: 299 624
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 2
Type:composer-plugin
Requires
- php: ^7.4 || ^8.0
- composer-plugin-api: ^2.2
- ext-gd: *
Requires (Dev)
- chromatic/usher: ^2.18
- composer/composer: ^2.0
- phpstan/extension-installer: ^1.2
This package is auto-updated.
Last update: 2024-10-24 00:08:06 UTC
README
While it is possible to check for the presence of the GD plugin via composer require ext-gd
, this does not ensure that specific format support is enabled. This Composer plugin allows you to specify a set of required formats for GD and will verify that they are enabled after composer install
has run.
If these formats are not enabled, Composer will output the issue on the command line.
Configuration
This plugin ships with a default set of required formats that it checks for.
- FreeType
- JPEG
- PNG
- WebP
To override these defaults, include configuration in your composer.json
file:
"extra": { "php-gd-config-check": { "required-formats": [ "JPEG Support", "PNG Support" ] }