/**
 * Convert a string to kebab case.
 *
 * @return self Returns instance of The Strings class.
 */
public function kebab(): self

Examples

$string = Strings::create('fooBar')->kebab();

echo $string;

The above example will output:

foo-bar

Getting Started

Methods