PHPackages                             jacksleight/statamic-miniset - 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. jacksleight/statamic-miniset

ActiveLibrary

jacksleight/statamic-miniset
============================

2.0.0(2mo ago)95.1k↓38.9%2[1 issues](https://github.com/jacksleight/statamic-miniset/issues)PHP

Since Apr 5Pushed 2mo ago1 watchersCompare

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

READMEChangelog (10)Dependencies (1)Versions (19)Used By (0)

Miniset
=======

[](#miniset)

Miniset allows you to create compact sets of fields that either combine into a string of classes, or return a simple array of values.

Miniset includes the following components:

- **Miniset**
    A general purpose fieldtype for creating a compact set of fields that return a simple array of values.
- **Miniset Classes**
    A class specific fieldtype for creating a compact set of fields that combine into a string of classes, including variant options. Works great with Tailwind CSS.

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

[](#installation)

You can search for this addon in the `Tools > Addons` section of the Statamic control panel and click **install**, or run the following command from your project root:

```
composer require jacksleight/statamic-miniset
```

Creating a Miniset Field
------------------------

[](#creating-a-miniset-field)

Create a Miniset field and add your nested fields. Miniset is intended for simple data (single or multiple scalar values) and only officially supports these nested fieldtypes:

- Select (inc. multiple)
- Button Group
- Checkboxes
- Radio
- Text
- Textarea
- Toggle
- Range

Other fieldtypes can be added but will not have a compact style.

Miniset returns a simple array of values which can either be output in its entirety, or individual values can be output by referencing their key:

```
{{ my_options | json }}
{{ my_options.theme }}
```

Creating a Miniset Classes Field
--------------------------------

[](#creating-a-miniset-classes-field)

Create a Miniset Classes field and add your nested fields and variants. Miniset Classes only supports the following nested fieldtypes:

- Select (inc. multiple)
- Button Group
- Checkboxes
- Radio
- Text (not `jit_safe` compatible)
- Textarea (not `jit_safe` compatible)

Other fieldtypes should not be added and may cause errors or unexpected results.

Variants will be offered as options when adding groups of fields. By default the variant keys will be prepended to the class value and seperated with a colon:

```
lg / w-32 --> lg:w-32

```

If you're not using this convention you can customize the behaviour by including an ampersand in your variant keys. The ampersand will be replaced with the class value when augmented:

```
&@large / width-half --> width-half@large

```

Miniset Classes will return a single string of classes that can be output in a `class` attribute:

```

```

### Using `jit_safe` mode with Tailwind

[](#using-jit_safe-mode-with-tailwind)

When using Tailwind the JIT compiler scans your content for classes, and this will need to include any classes that could be selected by users in the control panel. To simplify this process Miniset has a `jit_safe` mode. To enable this publish the config:

```
php please vendor:publish --tag=statamic-miniset-config
```

Then open `config/statamic/miniset.php` and set the `jit_safe.enable` option to `true`:

```
'jit_safe' => [
    'enable' => true,
    'file'   => resource_path('css/statamic/miniset_classes.yaml'),
],
```

Once enabled Miniset will scan your fields and save a full list of possible classes to `resources/css/statamic/miniset_classes.yaml` whenever you update a blueprint or fieldset.

You can then tell Tailwind to search this file in your CSS:

```
@source "./statamic/miniset_classes.yaml";
```

You can also manually run this scan on all fieldsets and blueprints via the command line using `php please miniset:jit-safe-scan`.

###  Health Score

48

—

FairBetter than 95% of packages

Maintenance80

Actively maintained with recent releases

Popularity31

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 93.3% 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 ~88 days

Recently: every ~163 days

Total

17

Last Release

89d ago

Major Versions

0.3.1 → 1.0.02023-05-04

1.3.1 → 2.0.02026-02-18

### Community

Maintainers

![](https://www.gravatar.com/avatar/5b1acb404d9801e5f633e31efa3403a4735e43ea93c798e3f895ba3264c92c6e?d=identicon)[jacksleight](/maintainers/jacksleight)

---

Top Contributors

[![jacksleight](https://avatars.githubusercontent.com/u/126740?v=4)](https://github.com/jacksleight "jacksleight (83 commits)")[![caseydwyer](https://avatars.githubusercontent.com/u/13950848?v=4)](https://github.com/caseydwyer "caseydwyer (5 commits)")[![bopwok](https://avatars.githubusercontent.com/u/77783727?v=4)](https://github.com/bopwok "bopwok (1 commits)")

### Embed Badge

![Health badge](/badges/jacksleight-statamic-miniset/health.svg)

```
[![Health](https://phpackages.com/badges/jacksleight-statamic-miniset/health.svg)](https://phpackages.com/packages/jacksleight-statamic-miniset)
```

###  Alternatives

[statamic/statamic

Statamic

824170.4k](/packages/statamic-statamic)[statamic-rad-pack/runway

Eloquently manage your database models in Statamic.

135192.6k5](/packages/statamic-rad-pack-runway)[statamic/ssg

Generate static sites with Statamic.

254302.4k](/packages/statamic-ssg)[statamic/eloquent-driver

Allows you to store Statamic data in a database.

125598.8k7](/packages/statamic-eloquent-driver)[statamic/seo-pro

65440.7k](/packages/statamic-seo-pro)[rias/statamic-redirect

28298.4k](/packages/rias-statamic-redirect)

PHPackages © 2026

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