SproutCMS

This is the code documentation for the SproutCMS project

file /sprout/Helpers/SproutExtension.php

Namespace: Sprout\Helpers

View source


Classes

Functions

cc2kc

Changes camelCase to kebab-case

jsdate

A wrapper around strtotime. Pretty handy.

jsonPretty

Shorthand pretty print JSON.

kc2cc

Changes kebab-case to camelCase

truncate

Trim a string if it's too long. Adds a ... ellipsis character.