perfopsone/decalog

A SDK to use DecaLog 4 observability features in all your plugins or themes development projects for WordPress.

5.0.0 2024-05-28 09:21 UTC

This package is auto-updated.

Last update: 2024-11-28 10:25:31 UTC


README

wordpress DecaLog Packagist PHP Version Support Packagist License

WordPress DecaLog SDK is a way to use DecaLog, the free observability toolkit for WordPress, in your own plugins or themes.

You may use this SDK on all WordPress installations: if DecaLog is installed your users will take advantage of all the efforts you've made to report events and provide metrics or traces inside your plugin or theme; if DecaLog is not installed, the SDK will silently discard all these important information ...

Deploying WordPress DecaLog SDK

Like DecaLog itself, this SDK is ready to be used in production environments. So you don't have to worry about cleaning up before deployment. In fact, it's a good idea to leave it in production: if the installation target runs DecaLog, the users of your plugin or themes will benefit of full observability; if it's not installed, it will be totally invisible to them.

If your plugin or theme is working on the development environment where you've installed DecaLog it will work on all your users' environments - whether DecaLog is installed or not, assuming the following requirements:

  • WordPress version: 6.2 or higher
  • DecaLog version: 4.0 or higher
  • PHP version: 8.1 or higher

Note: as this SDK is MIT-Licensed, there is no need to worry about leaving it as is in plugins or themes you want to submit to the WordPress directory.

Installing WordPress DecaLog SDK

Thanks to composer, the installation of the sdk requires one command:

composer require perfopsone/decalog

Using WordPress DecaLog SDK

For a full usage documentation, please go to decalog.io