Download the PHP package studiometa/wp-toolkit without Composer
On this page you can find all versions of the php package studiometa/wp-toolkit. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download studiometa/wp-toolkit
More information about studiometa/wp-toolkit
Files in studiometa/wp-toolkit
Package wp-toolkit
Short Description WordPress utilities for Studio Meta.
License MIT
Informations about the package wp-toolkit
WordPress toolkit
A PHP toolkit to boost your WordPress development! 🚀
Installation
Install the package via Composer:
Requirements
- PHP >=7.3
Usage
AssetsManager
The AssetsManager
manager does the heavy lifting of registering and enqueuing assets for you. It works with a configuration file in YAML with the following format:
If used with our Webpack configuration package, you can also specify entrypoints and all their dependencies to be registered and enqueued.
Parameters
$configuration_filepath
(string
): path to theconfig.yml
file, defaults toconfig/assets.yml
in your theme.$webpack_manifest_filepath
(string
), path to the Webpack assets manifest file, defaults todist/assets-manifest.json
in your theme.
Helpers
Functions to interact with WordPress behaviour.
Plugin helper
Transient Cleaner
Usage
Important Transients keys must be prefixed with transient cleaner prefix (
TransientCleaner::PREFIX
) to be tracked.
Contribute
Run tests
PHPUnit
Tests can be run in ddev which preconfigures the WordPress environment when starting:
To test against different PHP version, you can edit the .ddev/config.yaml
file and change the php_version
property.
All versions of wp-toolkit with dependencies
monolog/monolog Version ^2.9|^3.0
psr/log Version ^1.1|^2.0|^3.0
sentry/sentry Version ^4.6
studiometa/webpack-config Version ^5.0|^6.0
symfony/http-foundation Version ^6.4|^7.0
symfony/yaml Version ^6.4|^7.0
timber/timber Version ^1.0|^2.0
wecodemore/wordpress-early-hook Version ^1.2