PHPackages                             clesson-de/silverstripe-hints - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. clesson-de/silverstripe-hints

ActiveSilverstripe-vendormodule[Utility &amp; Helpers](/categories/utility)

clesson-de/silverstripe-hints
=============================

A Silverstripe CMS form field that displays a collapsible alert hint in the CMS edit form.

1.0.0(2mo ago)087BSD-3-ClausePHPPHP ^8.1

Since May 8Pushed 2mo agoCompare

[ Source](https://github.com/clesson-de/silverstripe-hints)[ Packagist](https://packagist.org/packages/clesson-de/silverstripe-hints)[ RSS](/packages/clesson-de-silverstripe-hints/feed)WikiDiscussions dev Synced 1w ago

READMEChangelogDependencies (2)Versions (2)Used By (0)

silverstripe-hints
==================

[](#silverstripe-hints)

A Silverstripe CMS module providing the `HintField` form field — a collapsible alert panel for the CMS edit form.

Requirements
------------

[](#requirements)

- PHP ^8.1
- Silverstripe Framework ^6
- Silverstripe Admin ^3

Installation
------------

[](#installation)

```
composer require clesson-de/silverstripe-hints
```

After installation, run:

```
composer vendor-expose
```

Usage
-----

[](#usage)

```
use Clesson\Silverstripe\Hints\Constants\HintType;
use Clesson\Silverstripe\Hints\Forms\HintField;

// Expanded info hint (default)
$fields->addFieldToTab('Root.Main', HintField::create(
    'MyHint',
    'Important note',
    'Please read this carefully before saving.'
));

// Collapsed warning hint
$fields->addFieldToTab('Root.Main', HintField::create(
    'MyWarning',
    'Warning',
    'This action cannot be undone.'
)->setType(HintType::WARNING)->setCollapsed(true));
```

### Available types

[](#available-types)

ConstantVisual style`HintType::INFO`Blue`HintType::WARNING`Yellow`HintType::DANGER`Red`HintType::SUCCESS`Green### API

[](#api)

MethodDescription`setContent(string $html)`Sets the HTML body content.`setType(string $type)`Sets the alert type (use `HintType` constants).`setCollapsed(bool $flag)`Sets whether the alert starts collapsed.Frontend Assets
---------------

[](#frontend-assets)

The module ships with pre-compiled CSS in `client/admin/dist/`. The CSS is automatically loaded by the field when it is rendered.

If you want to modify the styles, recompile them:

### Prerequisites

[](#prerequisites)

```
nvm use 20
npm install
```

### Build

[](#build)

```
npm run build
```

This compiles `client/admin/src/scss/main.scss` → `client/admin/dist/bundle.css`.

License
-------

[](#license)

BSD 3-Clause — see [LICENSE](LICENSE).

###  Health Score

37

—

LowBetter than 81% of packages

Maintenance85

Actively maintained with recent releases

Popularity9

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

78d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/52702628?v=4)[Clesson](/maintainers/clesson-de)[@clesson-de](https://github.com/clesson-de)

---

Top Contributors

[![clesson-de](https://avatars.githubusercontent.com/u/52702628?v=4)](https://github.com/clesson-de "clesson-de (1 commits)")

### Embed Badge

![Health badge](/badges/clesson-de-silverstripe-hints/health.svg)

```
[![Health](https://phpackages.com/badges/clesson-de-silverstripe-hints/health.svg)](https://phpackages.com/packages/clesson-de-silverstripe-hints)
```

###  Alternatives

[silverstripe/cms

The SilverStripe Content Management System

5253.6M1.4k](/packages/silverstripe-cms)[symbiote/silverstripe-advancedworkflow

Adds configurable workflow support to the CMS, with a GUI for creating custom workflow definitions.

46302.4k9](/packages/symbiote-silverstripe-advancedworkflow)[silverstripe/userforms

UserForms enables CMS users to create dynamic forms via a drag and drop interface and without getting involved in any PHP code

1321.1M86](/packages/silverstripe-userforms)[dnadesign/silverstripe-elemental

Elemental pagetype and collection of Elements

1101.1M315](/packages/dnadesign-silverstripe-elemental)[silverstripe/sharedraftcontent

Share draft page content with non-CMS users

21424.1k12](/packages/silverstripe-sharedraftcontent)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
