Search by

portrino / cms-observer-client-craftcms

portrino-dev

Reports the Craft CMS, PHP and database versions plus all plugins to a CMS Observer instance.

Package info

github.com/portrino/cms-observer-client-craftcms

Documentation

Type:craft-plugin

pkg:composer/portrino/cms-observer-client-craftcms

Statistics

Installs: 1

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

1.0.0 2026-11-26 07:26 UTC

This package is auto-updated.

Last update: 2026-11-28 11:41:51 UTC


README

Latest Stable Version Craft CMS 5 PHP 8.2+ Total Downloads Monthly Downloads CI

This plugin reports a site's Craft CMS version, PHP + DB versions, and installed plugin versions to a central CMS Observer instance, which flags insecure and outdated versions.

Important

Without a central CMS Observer instance this plugin is somewhat useless. So set up your central CMS Observer instance first and then connect any number of Craft CMS sites by using this client.

Needs a CMS Observer with Craft CMS support (0.14.0 or newer). Craft CMS 4 is end of life and not supported.

All Composer-installed plugins are reported, enabled or not, with their Composer package name, which the Observer looks up on Packagist. License keys are never sent.

🔥 Installation

Composer

Run the following commands within your Craft CMS project:

composer require portrino/cms-observer-client-craftcms
php craft plugin/install cms-observer-client

🔧 Configuration

  1. On the Observer, register a new site with the type craft (using command line or web interface) and copy the printed token:
    php bin/console app:site:create "<name>" craft "<site-url>"
    
  2. Set the environment variables, e.g. in the project's .env:
    • CMS_OBSERVER_API_URL – the Observer's base URL, must use https://
    • CMS_OBSERVER_TOKEN – the token from step 1

Tip

Set the token per environment and give staging its own site on the Observer (or no token at all). Otherwise a staging copy, e.g. one whose cron job came along with the production setup, reports as production. As a safety net the client sends the domains of all sites (domains), and the Observer rejects a report with HTTP 409 when none matches the registered site URL. That only helps if staging has its own domain. The report also sends the Craft environment (CRAFT_ENVIRONMENT) as applicationContext.

🚀 Run

Send the report once a day via system cron:

php craft cms-observer-client/push

To check what would be sent without sending it:

php craft cms-observer-client/push --dry-run

💎 Credits

This project is the Craft CMS counterpart of the TYPO3 extension cms-observer-client-typo3 and the WordPress plugin cms-observer-client-wordpress.

🧑‍💻 Contributing

Please have a look at CONTRIBUTING.md.