Comments (1)
That depends on the configured valid character set:
// Default settings
generate('İNATÇI');
// Result: inatci
// Turkish lowercase alphabet and Turkish locale
generate('İNATÇI', ['locale' => 'tr', 'validChars' => 'a-pr-vyzçğıöşü']);
// Result: inatçı
Note that in the second example the I
gets lowercased to ı
instead of i
. This is a special case for Turkish.
This behavior is important if for example you want to allow all unicode characters in your slug but only lowercase ones (e.g. \p{Ll}
).
from slug-generator.
Related Issues (20)
- Error PaletteManipulator during update with Manager HOT 2
- Add Interface for the SlugGenerator class
- Japan letter but translate to Chinese (i think) HOT 2
- Warning: unable to open ICU transliterator with id "Latin-Upper" HOT 3
- Class 'SlugGenerator' not found HOT 1
- Void type hint is specific for PHP HOT 2
- Correction in Hindi Phrases HOT 1
- Verify if slug is valid. HOT 4
- How to force slug-generator not to convert a comma? HOT 2
- Wrong transforms for Cyrillic letters HOT 2
- Got error from your library. HOT 5
- Attempted to load class "Normalizer" from the global namespace. HOT 15
- requirements incompatible with your PHP version, HOT 4
- Implement CLDR fallback chain
- Add support for Emoji
- Cyrillic/Russian generation HOT 3
- Support for php >8.1 HOT 2
- Ability to reverse slug HOT 1
- Optionally prevent the removal of the delimeter at the beginning and end. HOT 6
- Add requirement for ICU 4.6 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from slug-generator.