syntatis / codex
Codebase for WordPress extensions
Requires
- php: >=7.4
- adbario/php-dot-notation: ^3.3
- pimple/pimple: ^3.5
- syntatis/utils: ^2.0
Requires (Dev)
- dealerdirect/phpcodesniffer-composer-installer: ^1.0
- phpcompatibility/php-compatibility: ^9.3
- phpstan/extension-installer: ^1.4
- phpstan/phpstan: ^1.12
- phpstan/phpstan-phpunit: ^1.4
- phpstan/phpstan-strict-rules: ^1.6
- phpunit/phpunit: ^9.6
- roots/wordpress: ^6.6
- symfony/var-dumper: ^5.4
- syntatis/coding-standard: ^1.4
- szepeviktor/phpstan-wordpress: ^1.3
- wp-phpunit/wp-phpunit: ^6.6
- yoast/phpunit-polyfills: ^3.0
This package is auto-updated.
Last update: 2024-09-30 14:51:32 UTC
README
Caution
This package is currently under active development. It is not recommended for production use.
A codebase designed to build WordPress extensions with modern PHP practices.
Why?
WordPress is a powerful platform, but while PHP has evolved over the years, WordPress development has largely stayed the same. Modern PHP practices like Autoloading with Composer and Dependency Injection aren't commonly used when building WordPress extensions. This situation has caused some gaps between WordPress and the rest of the PHP ecosystem.
This project aims to close that gap by providing functions, classes, and structure as the foundation to build WordPress extensions with modern PHP techniques.
Projects
The following is a list of projects that are built on top of the Codex:
- howdy 🧪: A starter kit to develop a WordPress plugin with some common (modern) PHP practices.
Providers
Providers are classes that provide services to the Codex application. They are registered with the application and can be accessed via the application's container.
codex-settings-provider
🧪: Codex service provider for WordPress Settings API
Inspiration
This project is inspired by the following awesome projects in the PHP ecosystem: