-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16 from sunrise-php/release/v2.1.0
v2.1.0
- Loading branch information
Showing
11 changed files
with
135 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
.phpunit.result.cache | ||
composer.lock | ||
coverage.xml | ||
phpbench.json | ||
phpcs.xml | ||
phpunit.xml | ||
vendor/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# Simple slugger for PHP 7.1+ (incl. PHP8) based on ICU | ||
# Simple slugger for PHP 7.1+ (incl. PHP 8) based on ICU | ||
|
||
[![Gitter](https://badges.gitter.im/sunrise-php/support.png)](https://gitter.im/sunrise-php/support) | ||
[![Build Status](https://circleci.com/gh/sunrise-php/slugger.svg?style=shield)](https://circleci.com/gh/sunrise-php/slugger) | ||
|
@@ -42,6 +42,18 @@ $slugger = new Slugger('de-ASCII'); | |
$slugger->slugify('Falsches Üben von Xylophonmusik quält jeden größeren Zwerg'); | ||
``` | ||
|
||
#### Custom replacements | ||
|
||
```php | ||
$slugger = new Slugger(null, [ | ||
'.' => ' dot ', | ||
'@' => ' at ', | ||
]); | ||
|
||
// [email protected] | ||
$slugger->slugify('admin-at-acme-dot-com'); | ||
``` | ||
|
||
## Useful links | ||
|
||
* http://site.icu-project.org/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
/** | ||
* It's free open-source software released under the MIT License. | ||
* | ||
* @author Anatoly Fenric <[email protected]> | ||
* @copyright Copyright (c) 2018, Anatoly Fenric | ||
* @license https://github.com/sunrise-php/slugger/blob/master/LICENSE | ||
* @link https://github.com/sunrise-php/slugger | ||
*/ | ||
|
||
namespace Sunrise\Slugger\Exception; | ||
|
||
/** | ||
* Import classes | ||
*/ | ||
use Throwable as BaseExceptionInterface; | ||
|
||
/** | ||
* ExceptionInterface | ||
*/ | ||
interface ExceptionInterface extends BaseExceptionInterface | ||
{ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters