uams-web / aether-calculators
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
Requires
- php: ^8.4
- statamic/cms: ^6.35
Requires (Dev)
- cweagans/composer-patches: ^2.0
- driftingly/rector-laravel: ^2.6
- larastan/larastan: ^3.13
- laravel/pint: ^1.32
- orchestra/pest-plugin-testbench: ^5.1
- orchestra/testbench: ^11.3
- pestphp/pest: ^5.3
- pestphp/pest-plugin-phpstan: ^5.2
- rector/rector: ^2.7
- uams-web/patches-orchestra-testbench-core: ^1.2.0
- uams-web/patches-pest-plugin-mutate: ^1.4.0
- uams-web/patches-statamic-cms: 1.4
Suggests
None
Provides
None
Conflicts
None
Replaces
None
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
calculatorscollection'scalculatorblueprint, served as the collection's own, so the collection keeps its handle and a host's saved override underresources/blueprints/vendor/collections/calculators/still wins. Serving a collection blueprint from an add-on needs thestatamic/cmspatchstatamic-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
calculatorsentries (ValidateCalculatorEntry): exactly one primary variable, no formula that names a split sub-handle, and no handle collisions. - The
calculator_layoutAntlers tag, which classifies a calculator's parts for the equation the partial displays. - The
calculatorssearch index (titleandnote), 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 ciruns the gate: repository guards, Pint, Rector, Larastan and Pest.