larabra/str
Composer 安装命令:
composer require larabra/str
包简介
Laravel Illuminate\Support\Str extended
关键字:
README 文档
README
| Method | Helper | Description |
|---|---|---|
Str::sanitizeName(string $string): string |
str_sanitize_name(string $string): string |
Sanitize names removing diacritics, changing to uppercase and removing duplicate blank spaces |
Str::sanitizeNumber(string $string): string |
str_sanitize_number(string $string): string |
Sanitize numbers removing non-numeric characters. Very useful to unmask documents or phone number |
Str::metaphone(string $string): string |
str_metaphone(string $string): string |
Metaphone is a phonetic algorithm for indexing words by their pronunciation |
Installation
Step 1: Install package via Composer
composer require larabra/str
Step 2: If you are using Laravel 5, include the service provider within your config/app.php file.
'providers' => [ Larabra\Str\LarabraStrServiceProvider::class, ];
统计信息
- 总下载量: 9
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-11-19