Search by

uams-web / aether-calculators

joshdaughertybpmore

Calculators for Statamic: the calculators collection and its tools, as an add-on separate from the UAMS site.

Package info

github.com/UAMS-Web/aether-calculators

Language:JavaScript

Type:statamic-addon

pkg:composer/uams-web/aether-calculators

Statistics

Installs: 1 958

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v0.1.1 2026-12-01 22:53 UTC

This package is auto-updated.

Last update: 2026-12-02 15:52:46 UTC


README

A Statamic add-on that holds the calculators collection and the tools that go with it, as its own package so a site installs it only when it needs calculators. It was moved out of the UAMS site (UAMS-Web/uams-statamic#1608).

What it provides

  • The calculators collection's calculator blueprint, served as the collection's own, so the collection keeps its handle and a host's saved override under resources/blueprints/vendor/collections/calculators/ still wins. Serving a collection blueprint from an add-on needs the statamic/cms patch statamic-blueprint-namespace-slash.patch (UAMS-Web/patches-statamic-cms#6), which the host applies; the add-on requires it only for its own tests.
  • A save-time check on calculators entries (ValidateCalculatorEntry): exactly one primary variable, no formula that names a split sub-handle, and no handle collisions.
  • The calculator_layout Antlers tag, which classifies a calculator's parts for the equation the partial displays.
  • The calculators search index (title and note), defined unless the host defines it.

The Bard set that picks a calculator (uamsweb_set_calculator) and its view belong to uams-web/aether-page-builder. The blueprint imports the host's uamsweb_common and uamsweb_computed_content_usage fieldsets by their bare handles.

Requirements

  • PHP 8.4 or later
  • Statamic 6.35 or later

Installation

composer require uams-web/aether-calculators

Statamic discovers the service provider through extra.laravel.providers in composer.json, so there is nothing to register by hand. To change the add-on's settings, publish its configuration to the host's config/ directory:

php artisan vendor:publish --tag=aether-calculators-config

License

MIT. See LICENSE.

Development

  • Development guide: the host application the add-on is exercised in, and the commands to run.
  • Submission checklist: the Packagist and Marketplace steps.
  • composer ci runs the gate: repository guards, Pint, Rector, Larastan and Pest.