rmp-up / wp-contracts
Installs: 1 743
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Requires
- php: >=7.0 <7.5
- psr/log: 1.*
Requires (Dev)
- php-mock/php-mock-phpunit: ~2
- phpstan/phpstan: >=0.9 <=0.12
- phpunit/phpunit: ~6|~7
- pretzlaw/wp-integration-test: 0.2.*
- wp-cli/wp-cli-bundle: ~2
This package is auto-updated.
Last update: 2024-12-04 22:16:42 UTC
README
Helper for PHP (especially WordPress)
Features
- Rewindable Generators
- Hydrate and exchange protected fields in objects
- System logger compatible logging:
- Forward to
syslog()
- Delegate to PSR-3 logger
- Forward to
error_log()
respecting configured error reporting levels - Forward to WP_CLI
- Append to an array-like variable/reference
- Forward to
- Message Bus (delegating to WP_Hook)
- Decouple exception handling per action/filter
- Stop propagation
Tested with:
- PHP 7.0 - 7.4
- WordPress >= 4.5