Download the PHP package ispooya/slugger without Composer
On this page you can find all versions of the php package ispooya/slugger. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download ispooya/slugger
More information about ispooya/slugger
Files in ispooya/slugger
Download ispooya/slugger
More information about ispooya/slugger
Files in ispooya/slugger
Vendor ispooya
Package slugger
Short Description this package generates slug from string :)
License MIT
Package slugger
Short Description this package generates slug from string :)
License MIT
Please rate this library. Is it a good library?
Informations about the package slugger
Slugger
A PHP package for converting strings into URL-friendly slugs with extensive character transliteration support.
Features
- Converts strings to URL-friendly slugs
- Comprehensive special character transliteration
- Customizable separator
- Handles multiple language characters including:
- Persian (Farsi) characters
- Latin extended characters
- Germanic umlauts
- Eastern European characters
- Scandinavian characters
- And many more...
Installation
You can install the package via Composer:
Usage
Basic Usage
Custom Separator
You can specify a custom separator as the second parameter:
Examples with Special Characters
Supported Transformations
The package supports a wide range of character transformations, including:
- Persian (Farsi) characters
ä
,æ
,ǽ
→ae
ö
,œ
→oe
ü
→ue
- All major accented characters (à, á, â, etc.)
- Special characters from multiple languages
- Common ligatures
- And many more...
Method Reference
make()
Parameters:
$string
: The input string to convert to a slug$separator
: (Optional) The separator to use between words (defaults to '-')
Returns:
- A URL-friendly slug string, or null if the input is null
License
MIT License
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Credits
Created by ispooya
All versions of slugger with dependencies
PHP Build Version
Package Version
The package ispooya/slugger contains the following files
Loading the files please wait ....