What is a slug ?
A slug is a part of a URL which identifies a particular page on a website in a form readable by users. It’s the nice part of the URL, which explains the page’s content. In WordPress, it’s the editable part of your URL that you can edit when writing a new post.
nSlug allows to create those urls for any language easily.
// English strings.
echo$slugGenerator->generate('Hello World');// Prints 'hello-world'.
echo$slugGenerator->generate('Life is too short!');// Prints 'life-is-too-short'.
// Arabic strings.
echo$slugGenerator->generate('صباح جميل');// Prints 'صباح-جميل'.
echo$slugGenerator->generate('مساء الخير');// Prints 'مساء-الخير'.
“Element queries are a new way of thinking about responsive web design where the responsive conditions apply to elements on the page instead of the width or height of the browser.
Unlike CSS @media queries, @element Queries are aware of more than just the width and height of the browser, you can write responsive conditions for a number of different situations like how many characters of text or child elements an element contains.
Underscore.php features a good hundred of methods for all kinds of types : strings, objects, arrays, functions, integers, etc., and provides a parsing class that help switching from one type to the other mid-course.