samluvanda / str
A fluent, chainable string utility class for PHP.
v2.0.0
2025-06-20 05:31 UTC
Requires
- php: >=8.1
- ext-intl: *
- ext-mbstring: *
README
A fluent, chainable string utility class for PHP.
📦 Installation
composer require samluvanda/str
🚀 Basic Usage
use Str\Str; $str = new Str("Hello World"); echo $str->toUpperCase()->toString(); // HELLO WORLD
💡 Features
- Unicode-safe string manipulation
- Fluent and expressive method chaining
- Over 70 built-in operations: trimming, padding, splitting, formatting, validation, and more
- Designed for clean, readable, and testable PHP code
🧩 Integrations
Works with any PHP application or framework. Ideal for projects requiring expressive and testable string handling logic.
📘 Documentation
Full API reference is available in API.md
🛠Requirements
- PHP 8.1 or higher
mbstring
extensionintl
extension
📄 License
This project is open-sourced under the MIT license.