samluvanda / str
A fluent, chainable string utility class for PHP.
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/samluvanda/str
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
mbstringextensionintlextension
📄 License
This project is open-sourced under the MIT license.