fahlgrendigital / tools-for-statamic
There is no license information available for the latest version (0.13) of this package.
Various tools commonly used in our Statamic projects.
Package info
github.com/FahlgrenMortineDigital/tools-for-statamic
pkg:composer/fahlgrendigital/tools-for-statamic
0.13
2026-03-13 22:28 UTC
Requires
- php: ^8.2
- statamic/cms: ^6.0||^5.0
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
Various tools commonly used in our Statamic projects.
Modifiers
MakeResource
Converts entries or terms to an api resource. Can be a query or collection.
{{ collection | make_resource | to_json | sanitize }}
{{ query | make_resource | to_json | sanitize }}
ApiRouteList
Converts entries or terms to an array of api routes. Can be a query or collection.
{{ collection | api_route_list | to_json | sanitize }}
{{ query | api_route_list | to_json | sanitize }}
Tags
RandomString
Creates a random string using the Str::random($length) Laravel function. Default length is 20.
{{ random_string }}
{{ random_string length="10" }}