Download the PHP package marcgoertz/shorten without Composer
On this page you can find all versions of the php package marcgoertz/shorten. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download marcgoertz/shorten
More information about marcgoertz/shorten
Files in marcgoertz/shorten
Download marcgoertz/shorten
More information about marcgoertz/shorten
Files in marcgoertz/shorten
Vendor marcgoertz
Package shorten
Short Description Provides truncation functions.
License MIT
Homepage https://github.com/Dreamseer/php-shorten
Package shorten
Short Description Provides truncation functions.
License MIT
Homepage https://github.com/Dreamseer/php-shorten
Please rate this library. Is it a good library?
Informations about the package shorten
Shorten
Provides additional truncation functions in PHP.
Installation
I recommend using Composer for installing and using Shorten:
Of course you can also just require it in your scripts directly.
Usage
Output:
Functions
- String
$markup
: Text containing markup - Integer
$length
: Maximum length of truncated text (default:400
) - String
$appendix
: Text added after truncated text (default:'…'
) - Boolean
$appendixInside
: Add appendix to last content in tags, increases$length
by 1 (default:false
) - Boolean
$wordsafe
: Wordsafe truncation (default:false
) - String
$delimiter
: Delimiter for wordsafe truncation (default:' '
)
License
MIT © Marc Görtz
All versions of shorten with dependencies
PHP Build Version
Package Version
Requires
php Version
>=8.0
The package marcgoertz/shorten contains the following files
Loading the files please wait ....