Download the PHP package theroadbunch/string-bean without Composer
On this page you can find all versions of the php package theroadbunch/string-bean. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download theroadbunch/string-bean
More information about theroadbunch/string-bean
Files in theroadbunch/string-bean
Download theroadbunch/string-bean
More information about theroadbunch/string-bean
Files in theroadbunch/string-bean
Vendor theroadbunch
Package string-bean
Short Description A collection of functions for formatting strings
License MIT
Package string-bean
Short Description A collection of functions for formatting strings
License MIT
Please rate this library. Is it a good library?
Informations about the package string-bean
StringBean
Using a variety of provided formatters, you can format strings and arrays of strings quickly and easily.
Installation
composer require theroadbunch/string-bean
Usage
Formatters
Format a single string
output:
Available Formatters
Formatter | Ex: original | Ex: formatted |
---|---|---|
SplitCamelCaseWordsFormatter::class | splitCamelCase | split Camel Case |
UpperCaseWordsFormatter::class | upper case_words formatter | Upper Case_Words Formatter |
SplitCamelCaseWordsFormatter
can split CamelCase strings with acronyms and abbreviations.
Formatter | Ex: original | Ex: formatted |
---|---|---|
SplitCamelCaseWordsFormatter::class | ThisWILLWork | This WILL Work |
SplitCamelCaseWordsFormatter::class | evenT.H.I.S.Works | even T.H.I.S. Works |
Trimmers
output:
Available Trimmers
Note: Trimmers implement the same interface as Formatters: FormatterInterface
Trimmer | Trim Value | Ex: original | Ex: formatted |
---|---|---|---|
PrefixTrimmer | pref_ | pref_A String | A String |
SuffixTrimmer | ula1 | Formula1 | Form |
Use a combination of Formatters
output:
Create your own formatter
output:
All versions of string-bean with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.2
The package theroadbunch/string-bean contains the following files
Loading the files please wait ....