sturple / wp-plugin-notifications
Error notifications
Installs: 8
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 0
Open Issues: 2
Type:wordpress-plugin
Requires
- php: >=5.4
- composer/installers: ~1.0
- monolog/monolog: ^1.21
- psr/log: ^1.0
- swiftmailer/swiftmailer: ^5.4
- symfony/yaml: ^3.1
- twig/twig: ~1.0
This package is not auto-updated.
Last update: 2021-06-06 21:55:38 UTC
README
WordPress Plugin
When used as a WordPress plugin the plugin will search for a config.yml
file in the root directory of the plugin. The path to this file may be changed by editing site-error-notifications.php
(a comment indicates where to edit).
YAML Configuration
A YAML document is accepted as configuration by the \Fgms\SiteErrorNotifications\YamlFactory::create
static method. This method produces an instance of \Fgms\SiteErrorNotifications\ErrorHandlerInterface
. The YAML document is expected to have the following form:
monolog: # Only present if Monolog logging is desired file: # The file to which the log shall be written name: # The name of the log (optional) ignore: # Optional, specifies a mask of PHP error constants which shall be ignored (i.e. nothing shall be written to the log) email: # Only present if email notifications are desired from: # The address from which emails shall be sent to: # The address (a string) or addresses (an array) to which emails shall be sent templates: # Path to the templates directory for Twig name: # The name of the site (optional) host: # Optional, if present Swift will be configured to send directly using this host rather than by using PHP's mail function port: # Optional, only regarded if "host" is present, the port to use for SMTP encryption: # Optional, only regarded if "host" is present, the encryption type to use for SMTP username: # Optional, only regarded if "host" is present, the username to use for SMTP password: # Optional, only regarded if "host" is present, the password to use for SMTP ignore: # Optional, specifies a mask of PHP error constants which shall be ignored (i.e. emails shall not be sent) html: templates: # Path to the templates directory for Twig debug: # True for debug messages, false otherwise (optional, defaults to false)