Skip to content

Instantly share code, notes, and snippets.

View arturssmirnovs's full-sized avatar
🎯
Focusing

Arturs Smirnovs arturssmirnovs

🎯
Focusing
View GitHub Profile
<?php
/**
* Create a web friendly URL slug from a string.
*
* Although supported, transliteration is discouraged because
* 1) most web browsers support UTF-8 characters in URLs
* 2) transliteration causes a loss of information
*
* @author Sean Murphy <[email protected]>
* @copyright Copyright 2012 Sean Murphy. All rights reserved.
<?php
interface CacheInterface {
/**
* Get cached entry if exists
*
* @param string $key
* @return mixed|null
*/