Download the PHP package el-schneider/statamic-greenwashing-checker without Composer

On this page you can find all versions of the php package el-schneider/statamic-greenwashing-checker. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package statamic-greenwashing-checker

Greenwashing Checker

Statamic Greenwashing Checker

Flags greenwashing risks in Statamic entries while editors write. Covers the EU rules on environmental claims (Directive 2024/825, “EmpCo”), which apply from 27 September 2026.

Phrases like “eco-friendly”, “climate-neutral thanks to offsetting” or “100 % green” become per-se violations across the EU under EmpCo. This addon sends entry text to an LLM of your choice. It marks risky claims in the field where they appear, explains the risk and suggests a rewrite that editors can apply with one click.

The addon is a public beta. It flags potential risks. It is not legal advice and does not establish compliance.

Findings in the entry editor

Features

Review all findings Scan saved content
Review stack Scan utility

Requirements

Installation

Set a model and its provider key in .env. The model string is <prism-provider>/<model>:

Provider keys come from Prism’s own config/prism.php. Until a key is configured, the panel shows a setup notice and nothing is sent.

Open any entry: the Greenwashing check panel appears in the sidebar for all collections.

Configuration

Editors and admins configure most things in the CP under Addons → Greenwashing Checker → Settings:

Setting Effect
Substantiations Certificates and licences you hold, with their scope. Claims they cover are not flagged.
House rules Extra editorial guidance for the model. It cannot switch off the legal checks.
Audience per collection B2C (default) or B2B. B2B skips the consumer per-se rules and downgrades findings to medium.
Enabled categories Turn individual risk categories off.
Legal references eu shows EmpCo/UCPD references; de adds German UWG references. Can differ per site.
Collections, placement, check on blur, publish warning Where and when checks run.

To change the model, timeout or the defaults for these settings, publish the config:

The comments in config/statamic/greenwashing-checker.php explain each option. CP settings override the config file.

Exclude fields

Fields with internal or non-marketing text can opt out in the blueprint. On a Replicator, Grid, Group or Bard field this excludes everything inside it:

Panel placement

placement can be sidebar (default), tab (separate tab) or none. With none, add the Greenwashing Checker fieldtype to a blueprint where you want the panel.

Customize the prompt

The system and user prompts are Blade views. Publish them to adjust wording or add rules:

Cached results do not notice prompt edits. Delete storage/statamic/greenwashing-checker/units/ to have all text checked again.

Permissions

Permission Allows
Approve greenwashing findings Approving findings with a documented reason
Scan existing content for greenwashing Using the scan utility

Running a check requires permission to edit the entry.

Scanning existing content

The CLI writes explanations in the app locale. The Utilities → Greenwashing check page starts the same scan from the CP and lists entries by open high-risk findings. Long scans need a queue worker. The default sync queue runs them inline.

Data, storage and cost

Statamic 5

Statamic 5 has no addon settings API and no Inertia CP. Analysis, caching, the scan command and the review sheet work the same way. These parts are Statamic 6 only:

Limitations

License

MIT. Support through GitHub issues, no SLA.


All versions of statamic-greenwashing-checker with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
statamic/cms Version ^5.74 || ^6.20
prism-php/prism Version ^0.99 || ^0.100
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package el-schneider/statamic-greenwashing-checker contains the following files

Loading the files please wait ...