black-bits / composer-min-age-example-package
A tiny string manipulation helper library.
Package info
github.com/black-bits/composer-min-age-example-package
pkg:composer/black-bits/composer-min-age-example-package
v1.2.0
2026-06-03 06:27 UTC
Requires
- php: >=8.1
- ext-mbstring: *
Requires (Dev)
- phpunit/phpunit: ^10.5
README
A small PHP string helper library, used as an example package for a minimum-release-age / install-delay demonstration.
Installation
composer require black-bits/composer-min-age-example-package
Usage
use BlackBits\StringHelper\StringHelper; StringHelper::slugify('Hello, World!'); // "hello-world" StringHelper::truncate('Lorem ipsum dolor', 5); // "Lorem..." StringHelper::camelCase('hello world'); // "helloWorld" StringHelper::snakeCase('helloWorld'); // "hello_world" StringHelper::contains('hello world', 'world'); // true StringHelper::startsWith('hello world', 'hello'); // true