Helpers
The package ships Laravel facades and helper classes for everyday jobs: formatting text and dates, working with lists and JSON, files and folders, images and media. The helper classes live in the Medialight\Textstem\Helpers namespace, and most of their methods are static.
- Facades — The facades Textstem registers: Textstem, Preferences, Notifier, Accessibility, SEO and TableGenerator.
- Text and Formatting — Helpers for formatting text, numbers, JSON and select options.
- Dates — Format dates, times and date ranges with the Dates helper.
- Lists and Data — Work with arrays, IDs, JSON and models with the Lists, DataHelper, JsonHelper and Model helpers.
- Colours and Tailwind — Generate colours and contrasting text colours from strings, and Tailwind width and span classes.
- Files and Folders — Rename, copy and move files, browse folders and look up MIME types.
- Images and Media — Render images from assets, make thumbnails, find smart crops and read video metadata.
- Other Helpers — Helpers for addresses, country codes, URLs and preparing content for AI prompts.
- SEO — Analyse pages for SEO issues, with basic checks and optional AI-powered recommendations.
- Accessibility — Analyse pages for WCAG 2.1 accessibility issues, with optional AI-powered recommendations.