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

v2.1.0 2025-06-01 13:51 UTC

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\StringSearchException
  • PainlessPHP\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->str getter for the result string

  • methods

    • findFirstLineContaining
    • findLinesContaining
    • findLastLineContaining
    • trimLines
    • editLines