wernerdweight/stringy

Generic enhanced exception to be used in other projects

1.0.0 2023-02-21 18:45 UTC

This package is auto-updated.

Last update: 2024-12-21 22:59:34 UTC


README

PHP Stringy object with consistent and predictable API

Build Status Latest Stable Version Total Downloads License

Instalation

  1. Download using composer
composer require wernerdweight/stringy
  1. Use in your project
use WernerDweight\Stringy\Stringy;

$stringy = new Stringy('This is a string');
echo $string
    ->toLowercase()    // this is a string
    ->replace(' ', '-')    // this-is-a-string
    ->convertCase(Stringy::KEBAB, Stringy::PASCAL)   // ThisIsAString
    ->reverse();    // gnirtSAsIsihT

API

TODO: