stringy/stringy

String class

dev-master 2017-01-16 18:03 UTC

This package is not auto-updated.

Last update: 2025-06-21 21:50:00 UTC


README

Build Status

Simple wrapper class for PHP string functions

Requirements

The minimum requirement is PHP 5.4.

Usage

Using the helper function str()

  str('FooBar')->charAt(0)->length();

or creating a new instance manually

  $string = new \String\Stringy('FooBarQux');  // 1
  $string->slice(3, 3)->equals('Bar');  // true