+
Skip to content

hiqsol/strings

 
 

Yii Strings


The package provides:

  • StringHelper that has static methods allowing dealing with strings more efficiently;
  • Inflector provides methods such as pluralize() or slug() that derive a new string based on the string given.

Latest Stable Version Total Downloads Build Status Scrutinizer Code Quality Code Coverage Mutation testing badge static analysis

Installation

composer require yiisoft/strings

General usage

StringHelper methods are static so usage is like the following:

echo \Yiisoft\Strings\StringHelper::countWords('Strings are cool!'); // 3

Inflector usage is the following:

echo (new \Yiisoft\Strings\Inflector())->withoutIntl()->slug('Strings are cool!'); // strings-are-cool

Check both classes to find out about the methods available.

About

String helper methods and an inflector

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载