PHPackages                             mitydigital/fuse-utilities - 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. mitydigital/fuse-utilities

ActiveStatamic-addon[Utility &amp; Helpers](/categories/utility)

mitydigital/fuse-utilities
==========================

Utilities for Mity Digital's Fuse Starter Kit.

2.6.3(6mo ago)0306GPL-3.0-onlyPHPPHP ^8.3

Since Sep 11Pushed 6mo ago1 watchersCompare

[ Source](https://github.com/mitydigital/fuse-utilities)[ Packagist](https://packagist.org/packages/mitydigital/fuse-utilities)[ RSS](/packages/mitydigital-fuse-utilities/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (2)Versions (25)Used By (0)

Fuse Utilities for Statamic
===========================

[](#fuse-utilities-for-statamic)

[![Statamic 5.0+](https://camo.githubusercontent.com/1493e0d010dc67f6682a1bf253c04498351ea74434eaccba4244c7641c4d25ec/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f53746174616d69632d352e302b2d4646323639453f7374796c653d666f722d7468652d6261646765266c696e6b3d68747470733a2f2f73746174616d69632e636f6d)](https://camo.githubusercontent.com/1493e0d010dc67f6682a1bf253c04498351ea74434eaccba4244c7641c4d25ec/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f53746174616d69632d352e302b2d4646323639453f7374796c653d666f722d7468652d6261646765266c696e6b3d68747470733a2f2f73746174616d69632e636f6d)[![Supportamic on Packagist](https://camo.githubusercontent.com/344167a00088d33de53f5c32c8b25a6440db236a8055d6e853f1132265ad6a66/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d6974796469676974616c2f667573652d7574696c69746965733f7374796c653d666f722d7468652d6261646765)](https://packagist.org/packages/mitydigital/fuse-utilities/stats)

---

> Utilities for Mity Digital's Fuse Starter Kit.

These utilities are designed to work with Mity Digital's Fuse Starter Kit for Statamic.

Commands
--------

[](#commands)

### Generate Tailwind

[](#generate-tailwind)

The Generate Tailwind command can be run by running:

```
php please fuse:generate-tailwind
```

This will create the `resources/tailwind/generated.html` file based on the `resources/tailwind/config.yaml` file.

In the config file, there are two sections - `colours` and `classes`.

For `colours`, this is a list of the different colour handles you want to apply to the Tailwind classes. This is as simple as colours like `red` or `amber` or `sky` - whatever they are called in the `tailwind.config.js` file.

For `classes`, this will list the Tailwind classes that you want to have generated for the range of colours provided. With each class, replace the colour with the string `[colour]` to inject the different colour classes. This means that `text-[colour]-500` will output:

- `text-red-500`
- `text-amber-500`
- `text-sky-500`

This is intended to make working with colours easier by generating the different classes to a HTML file for the Tailwind process to pick up and include in the site's CSS.

You can also pass a `version` of either `3` or `4` - this is separating generation logic for different Tailwind versions. If omitted, will default to v3.

Listeners
---------

[](#listeners)

### Prevent Deleting Mounts

[](#prevent-deleting-mounts)

This runs before an Entry is deleted, and prevents a mount (such as "Blog") from being deleted.

This only runs when the app is in Production mode. In local dev mode, you can still delete mounts.

Tags
----

[](#tags)

There is a `fuse` tag that includes functionality for the utilities.

### Forms

[](#forms)

#### isCaptchaEnabled

[](#iscaptchaenabled)

Returns a boolean as to whether Captcha is enabled for the current configuration.

```
{{ fuse:is_captcha_enabled }}
```

You can also pass a `form` parameter to check if Captcha is enabled for the specified form.

```
{{ fuse:is_captcha_enabled form="handle" }}
```

#### getFormLang

[](#getformlang)

Returns a language string or override for a form and type.

```
{{ fuse:get_form_lang type="submit" :form="form"
```

The `form` parameter is the form's handle. `type` is one of:

- `success`, the success message
- `validation`, the validation issue message
- `error`, the error when submission fails
- `submit`, the submit button label

#### isFormFieldConditional

[](#isformfieldconditional)

Returns whether a form field is conditional:

```
{{ fuse:is_form_field_required }}
```

By default will use the current context, but can also pass a field handle:

```
{{ fuse:is_form_field_required :field="handle" }}
```

#### isFormFieldRequired

[](#isformfieldrequired)

Returns whether a form field is required.

Returns true when `required`, a string of required logic when `required_if` or false if not required at all.

```
{{ fuse:is_form_field_required :field="handle" }}
```

#### siteName

[](#sitename)

Returns the site's name in the current context.

```
{{ fuse:site_name }}
```

### Image

[](#image)

The `image` tag returns dynamic configuration options for use with the image component.

```
{{ fuse:image :url="image" }}
```

It will return all of the Asset's properties (just like the existing `asset` tag), plus additional properties to help with the `` element.

You can pass `class` to the `img` element, and `picture_class` to the `picture` element.

It will take advantage of these params or context. If a param is not found, the context will be used:

- `aspect_ratio`
- `min`
- `max`
- `quality`
- `sizes`

The image component accepts these parameters:

- `aspect_ratio`, a string of responsive aspect ratios
- `cover`, default `false`, or set to `true` to fill the parent container
- `lazy`, default `false`, or set to `true` to lazy load image
- `min`, the minimum size to render, default to 320
- `max`, the maximum size to render, default to 1440
- `quality`, a string of responsive qualities
- `sizes`, override the sizes property
- `fit`, one of Statamic's "fit" properties, defaults to "crop\_focal"

The `aspect_ratio` and `quality` properties accept the standard Tailwind prefixes for responsive behaviour, such as:

```
{{ partial:components/image quality="80 sm:75 lg:70 xl:60" }}
```

Note that behaviour will differ based on screen pixel density too.

You can use `sm`, `md`, `lg`, `xl`, `2xl`, `3xl`, `4xl` and `5xl`.

The `sizes` property defaults to `(min-width: 768px) 50vw, 100vw` but can be overridden per use case.

You can pass `absolute` to the image partial to prefix the URLs with the value of `absolute`.

### JSON Schema

[](#json-schema)

Site metadata uses the JSON Schema function to output any schema details for the site. This is done by calling:

```
{{ fuse:json_schema }}
```

Currently this is only used in `resources/views/partials/metadata/_json-ld.antlers.html`.

### Scripts

[](#scripts)

The Scripts method allows you to include the `head` or `body` scripts. This can be used by passing one of these as the location parameter:

```
{{ fuse:scripts location="head" }}
```

Widgets
-------

[](#widgets)

### Images without Alt

[](#images-without-alt)

The Images without Alt widget can be added to the Dashboard using the `images_without_alt` key in your Widgets configuration:

```
[
    'type' => 'images_without_alt',
    'containers' => ['assets', 'site']
    'limit' => 5,
    'expiry' => 60,
    'width' => 50,
],
```

You can adjust the configuration of the widget using these options:

- `containers`: optional, will use all Containers when omitted. Or an array of container handles to include
- `limit`: the number of assets to show on the widget
- `expiry`: the duration of the cache for the widget. Will get automatically refreshed as assets change
- `width`: the width of the widget on your Dashboard

Add-on Support
--------------

[](#add-on-support)

This is designed for use with Mity Digital's Starter Kit for Statamic, which is not a public Starter Kit.

There is no support for provided for this Add-on.

Credits
-------

[](#credits)

- [Marty Friedel](https://github.com/martyf)

License
-------

[](#license)

This addon is licensed under the MIT license.

###  Health Score

42

—

FairBetter than 90% of packages

Maintenance69

Regular maintenance activity

Popularity14

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity64

Established project with proven stability

 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

Every ~20 days

Total

22

Last Release

181d ago

Major Versions

1.0.5 → 2.0.02025-01-14

### Community

Maintainers

![](https://www.gravatar.com/avatar/d2976debe9dcc11f8ffb47e0ce048ac7297dec8d9be9e525e65d398469ffa417?d=identicon)[martyf](/maintainers/martyf)

---

Top Contributors

[![martyf](https://avatars.githubusercontent.com/u/1491079?v=4)](https://github.com/martyf "martyf (47 commits)")

---

Tags

statamic

###  Code Quality

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/mitydigital-fuse-utilities/health.svg)

```
[![Health](https://phpackages.com/badges/mitydigital-fuse-utilities/health.svg)](https://phpackages.com/packages/mitydigital-fuse-utilities)
```

###  Alternatives

[visuellverstehen/statamic-classify

A useful helper to add CSS classes to all HTML tags generated by the bard editor.

20116.8k](/packages/visuellverstehen-statamic-classify)[marcorieser/statamic-livewire

A Laravel Livewire integration for Statamic.

2381.5k10](/packages/marcorieser-statamic-livewire)[withcandour/aardvark-seo

Save time and get your Statamic site to rank better with the SEO addon for Statamic.

13128.3k](/packages/withcandour-aardvark-seo)[aerni/livewire-forms

A Statamic forms framework powered by Laravel Livewire

2912.8k](/packages/aerni-livewire-forms)[mitydigital/feedamic

A fully-featured RSS and Atom feed generator for Statamic.

1064.0k](/packages/mitydigital-feedamic)[mitydigital/sitemapamic

An XML sitemap generator for Statamic that includes all collections and related taxonomy pages.

1485.2k](/packages/mitydigital-sitemapamic)

PHPackages © 2026

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