s-mcdonald/stringfluent

Powerful and chainable String utility for PHP.

0.0.2 2023-05-16 07:44 UTC

This package is auto-updated.

Last update: 2024-12-16 11:34:00 UTC


README

Source Source

Stringfluent is a String helper that allo you to easily manipulate strings using a fluent and chainable syntax with Multibyte support baked in.

        $str = Stringfluent::create("  any form of string, or stringable interface can be used. ");
        $str->toUpperCase()->trim()->truncate(3); // ANY
        
        $str = Stringfluent::create("プログラミングはクールです");
        $str->containsMultibyteCharacters(); // true

Documentation

Installation

Via Composer. Run the following command from your project's root.

composer require s-mcdonald/stringfluent

Dependencies

  • Php 8.0
  • extension "ext-mbstring"
  • extension "ext-ctype"
  • extension "ext-alpha"
  • extension "ext-punct"
  • extension "ext-graph"
  • extension "ext-http"

License

Stringfluent is licensed under the terms of the MIT License (See LICENSE file for details).