Download the PHP package xtompie/pipe without Composer
On this page you can find all versions of the php package xtompie/pipe. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package pipe
Pipe
Pipe is a utility class for fluent data manipulation.
Requirements
- PHP >= 8
Installation
Using composer
Doc
The output will be: Hello world
Available methods
- addslashes() - Adds slashes before characters that need to be escaped in a string.
- explode(string $delimiter) - Splits the string by the specified delimiter.
- htmlspecialchars() - Converts special characters to HTML entities.
- implode(string $glue = ‘’) - Joins array elements into a string using the specified glue.
- lower() - Converts all alphabetic characters to lowercase.
- map(callable $callback) - Applies the callback function to the current value and returns a new Pipe object with the transformed value.
- md5() - Calculates the MD5 hash of a string.
- nl2br() - Inserts HTML line breaks before all newlines in a string.
- object(string $type) - Converts the current value into a specified object.
- replace(string $search, string $replace) - Replaces occurrences of the search string with the replacement string.
- reverse() - Reverses the string.
- sha1() - Calculates the SHA-1 hash of a string.
- length() - Returns the length of the string.
- slice() - Extract a slice of the array
- strpos(string $needle) - Finds the position of the first occurrence of a substring.
- stripTags() - Strips HTML and PHP tags from a string.
- substr(int $start, int $length = null) - Returns part of a string.
- trim() - Strips whitespace from the beginning and end of the string.
- ucfirst() - Capitalizes the first letter of the string.
- ucwords() - Capitalizes the first letter of each word in a string.
- upper() - Converts all alphabetic characters to uppercase.
Creating a specific transformation pipeline
You can extend the Pipe class to create a specific pipeline with custom methods.
The output will be: DLROW OLLEH
All versions of pipe with dependencies
PHP Build Version
Package Version
No informations.
The package xtompie/pipe contains the following files
Loading the files please wait ....