Check: Phpmodules

To get this help: amcli --explain=Phpmodules.

To add a section in your ini:

  • Execute: amcli --nocolor --explain=Phpmodules >> example.ini.
  • edit the example.ini in a text editor and update the needed values.

Syntax of an ini section


; -----------------------------------------------------------------------------
;
; Plugin Phpmodules
; Check loaded php modules
;
[<Your check name>]
description="A short description what will be tested"
function="Phpmodules"


; key 'required' {array} 🔸(required)
; List of php modules that are required
; example: ["curl", "PDO"]
; default: (not provided)
params[required]=<Your value here>

; key 'optional' {array} 🔹(optional)
; List of php modules that are optional. If one is missing, the status is set to warning.
; example: ["gd"]
; default: (not provided)
params[optional]=<Your value here>