Download the PHP package wernerdweight/canonicalizer without Composer
On this page you can find all versions of the php package wernerdweight/canonicalizer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download wernerdweight/canonicalizer
More information about wernerdweight/canonicalizer
Files in wernerdweight/canonicalizer
Download wernerdweight/canonicalizer
More information about wernerdweight/canonicalizer
Files in wernerdweight/canonicalizer
Vendor wernerdweight
Package canonicalizer
Short Description Simple PHP string canonicalizer
License MIT
Homepage https://github.com/wernerdweight/Canonicalizer
Package canonicalizer
Short Description Simple PHP string canonicalizer
License MIT
Homepage https://github.com/wernerdweight/Canonicalizer
Please rate this library. Is it a good library?
Informations about the package canonicalizer
Canonicalizer
Simple PHP string canonicalizer
Instalation
1) Download using composer
2) Use in your project
API
-
canonicalize(string $string[, string $ending[, string $separator]]): string
\$string
- string to be canonicalized,$ending
- string to be appended at the end of canonicalized string (ending is included in$maxLength
) - useful to append ids, file formats etc.; default''
(empty string),$separator
- string used to separate canonicalized words; default-
(dash).
-
setBeforeCallback(?callable): self
\ Allows to set a callback function that will be called before the given string is canonicalized. \ The callback should respenct this definitionfunction (string): string
. \ Warning: the callback remains in place until explicitly nulled ($canonicalizer->setBeforeCallback(null)
). setAfterCallback(?callebld): self
Allows to set a callback function that will be called after the given string is canonicalized. The callback should respenct this definitionfunction (string): string
. Warning: the callback remains in place until explicitly nulled ($canonicalizer->setAfterCallback(null)
).
All versions of canonicalizer with dependencies
PHP Build Version
Package Version
The package wernerdweight/canonicalizer contains the following files
Loading the files please wait ....