yfrommelt / stop-words
v0.0.9
2019-01-15 13:09 UTC
Requires
- php: ^5.4 || ^7.0
- ext-mbstring: *
README
Installation
composer require yfrommelt/stop-words
Supported languages
- Danish da
- Dutch nl
- English en
- Finnish fi
- French fr
- German de
- Hungarian hu
- Italian it
- Norwegian no
- Portuguese pt
- Russian ru
- Spanish es
- Swedish sv
- Turkish tr
Usage
use Yfrommelt\StopWords; // Get au list of stop words StopWords::get('fr') // Transform a string to title case $str = "Marie A Un Petit Agneau Et Elle L'Aime BEAUCOUP."; $str = StopWords::toTitleCase('fr', $str); echo $str; // Marie A un Petit Agneau et elle l'Aime Beaucoup. // Transform a string to slug $str = "Marie A Un Petit Agneau Et Elle L'Aime BEAUCOUP."; $str = StopWords::toSlug('fr', $str); echo $str; // marie-a-petit-agneau-aime-beaucoup