hyperia/yii2-string-helpers 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

hyperia/yii2-string-helpers

最新稳定版本:1.0.4

Composer 安装命令:

composer require hyperia/yii2-string-helpers

包简介

String helpers for your Yii2 app

README 文档

README

GitHub license

Extension for Yii2 string helpers

Installation

The preferred way to install this extension is through composer.

Either run

composer require hyperia/yii2-string-helpers:"^1.0"

or add

"hyperia/yii2-string-helpers": "^1.0"

to the require section of your composer.json.

Available Methods

  • contains
  • isLonger
  • isShorter
  • length
  • toLower
  • toUpper
  • firstCharToUpper
  • removeAccent

Usage

use hyperia\helpers\StringHelper;

echo StringHelper::isLonger('This is test string', 12); // 1
echo StrinhHelper::removeAccent('Ħí ŧħə®ë, юßť å test!'); // Hi there, jusst a test!
echo StringHelper::contains('is', 'This is test string'); // 1

Tests

./vendor/bin/phpunit

统计信息

  • 总下载量: 9.74k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 5
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-07-11