A comprehensive, premium suite of helper functions and classes carefully designed to accelerate date management, secure HTML sanitization, formatted currency printing, image resizing, and SEO optimization.
Formats a date string, Carbon instance, or timestamp into a consistent display structure. Backed by DateHelper::format().
Calculates a human-friendly diffForHumans() string (e.g., "2 hours ago"). Backed by DateHelper::timeAgo().
Converts raw date objects to the target timezone (falls back to config('app.timezone')).
Checks whether a date is in the past.
Computes the age based on a birth date.
Strips out harmful HTML tags to shield against cross-site scripting (XSS), keeping only defined allowed formatting tags.
Transforms text titles into slug components for SEO-friendly URLs. Backed by FormatHelper::generateSlug().
Shortens strings to a length limit while preventing character clipping. Backed by FormatHelper::truncate().
Masks sensitive inputs (such as tokens, emails, or digits) keeping a prefix visible.
Strips all HTML tags and trims spacing to retrieve raw, plain text contents.
Formats decimals into currency representations, using PHP's NumberFormatter. Backed by GeneralHelper::formatMoney().
Safely calculates percentage fractions, preventing Division-by-Zero runtime exceptions.
Resolves client IPs from requests, identifying headers from Cloudflare proxy setups or front-end reverse proxies.
Checks user agent request strings to identify mobile browsing sessions.
Checks if the current route matches input values, returning class lists for navigation menus.
Extracts embed video IDs from YouTube or Vimeo URLs.
Recursively HTML-encodes strings inside values or arrays for safe render output.
Resolves user avatar paths. Checks database fields, falls back to Gravatar images or local fallbacks.
Converts storage path strings to full URLs. External URLs are ignored and returned as is.
Translates bytes integer counts to human readable filesizes (e.g. KB, MB, GB).
Scales and saves files in storage with Intervention Image, preserving aspect ratios.
Bootstraps page-level SEO header variables (Meta titles, descriptions, keywords, OpenGraph items).
Configures specific schema properties and canonical links on article pages.
Wraps structured data arrays in inline script tags matching search engine JSON-LD requirements.
Generates JSON-LD Breadcrumb schemas matching navigation lists.