chromatic/php-gd-config-check

Composer plugin to check for the presence and status of specified formats for the PHP GD library.

Installs: 319 563

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 0

Open Issues: 2

Type:composer-plugin

v1.0.0 2023-06-13 01:11 UTC

README

Tests and Code Analysis

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"
      ]
}