Skip to content

Commit

Permalink
Minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
fenric committed Oct 23, 2018
1 parent a220b81 commit 13086a9
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,21 @@ $slugger->setTransliteratorId('Greek-Latin/BGN');
$slugger->transliterate('Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός', 'Lower(); Any-Latin; Latin-ASCII; [^\x20\x41-\x5A\x61-\x7A] Remove');
```

#### Using DI Container

```php
$di['slugger'] = function() : \Sunrise\Slugger\SluggerInterface
{
$slugger = new \Sunrise\Slugger\Slugger();

$slugger->setTransliteratorId('de-ASCII');

return $slugger;
};

$di['slugger']->slugify('Zwölf große Boxkämpfer jagen Viktor quer über den Sylter Deich.');
```

## Api documentation

https://phpdoc.fenric.ru/
Expand Down

0 comments on commit 13086a9

Please sign in to comment.