painless-php / string
String helper functionality for PHP
Installs: 24
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/painless-php/string
Requires
- php: >=8.1
- ext-mbstring: *
Requires (Dev)
- phpbench/phpbench: ^1.2
- phpunit/phpunit: ^10.1
- spatie/phpunit-watcher: ^1.22
- vlucas/phpdotenv: ^v5.5.0
This package is auto-updated.
Last update: 2025-10-01 00:13:43 UTC
README
String helper functionality for PHP
Installation
composer require painless-php/string
Public API
Core
Exception
PainlessPHP\String\Exception\StringSearchExceptionPainlessPHP\String\Exception\StringTypeConversionException
Development
Dynamic method doc generation
Use php bin/generate_builder_docblock.php to generate phpdocumentor docblocks
for the methods that can be called dynamically from StrBuilder.
TODO
-
generate Str method list in docs with a markdown table
-
bump required php version to 8.4 and add
$builder->strgetter for the result string -
methods
- findFirstLineContaining
- findLinesContaining
- findLastLineContaining
- trimLines
- editLines