Skip to content

Composer plugin to verify that specified GD image formats are enabled.

Notifications You must be signed in to change notification settings

ChromaticHQ/php-gd-config-check

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

php-gd-config-check

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

About

Composer plugin to verify that specified GD image formats are enabled.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages