承接 sfneal/string-helpers 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

sfneal/string-helpers

最新稳定版本:1.2.4

Composer 安装命令:

composer require sfneal/string-helpers

包简介

PHP string helper functions that add familiar functionality from other languages (like string contains, splitting, truncating, etc...)

README 文档

README

Packagist PHP support Latest Version on Packagist Build Status StyleCI Scrutinizer Code Quality Total Downloads

PHP string helper functions that add familiar functionality from other languages (like string contains, splitting, truncating, etc...)

Installation

You can install the package via composer:

composer require sfneal/string-helpers

In order to autoload to the helper functions add the following path to the autoload.files section in your composer.json.

"autoload": {
    "files": [
        "vendor/sfneal/string-helpers/src/strings.php"
    ]
},

Usage

Example use of the 'truncate' helper and method.

# using StringHelpers import
use Sfneal\Helpers\Strings\StringHelpers;
(new StringHelpers("here is a long string we'd like to truncate"))->truncate(12);
>>> here is a lo...


# using autloaded helpers
truncateString("here is a long string we'd like to truncate", 12);
>>> here is a lo...

Testing

composer test

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email stephen.neal14@gmail.com instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

PHP Package Boilerplate

This package was generated using the PHP Package Boilerplate.

统计信息

  • 总下载量: 148.45k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 6
  • 依赖项目数: 10
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-08-19