定制 williamsampaio/string-utils 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

williamsampaio/string-utils

最新稳定版本:0.1.0

Composer 安装命令:

composer require williamsampaio/string-utils

包简介

This library provides a number of features for manipulating strings, such as removing whitespace, accented characters, and more.

README 文档

README

Codecov (with branch) GitHub Release GitHub License

This library provides a number of features for manipulating strings, such as removing whitespace, accented characters, and more.

Install

composer require williamsampaio/string-utils

Usage

<?php

use StringUtils\StringProcessor;

require_once __DIR__ . '/vendor/autoload.php';

$str = 'Wí¨lL/ìãm%  \bê$njá@..@mi,m  ! m&e(n)#ezes;?    sãm*pai|o ';

$str = StringProcessor::removeSpecialCharacters($str);
$str = StringProcessor::ptBrReplaceAccentedCharacters($str);
$str = StringProcessor::trimWhitespaces($str);
$str = StringProcessor::styleTitle($str);

echo $str;

Output:

William Benjamim Menezes Sampaio
<?php

use StringUtils\StringProcessor;

require_once __DIR__ . '/vendor/autoload.php';

$str = 'Wí¨lL/ìãm%  \bê$njá@..@mi,m  ! m&e(n)#ezes;?    sãm*pai|o ';

$str = StringProcessor::input($str, [
    StringProcessor::REMOVE_SPECIAL_CHARACTERS,
    StringProcessor::PT_BR_REPLACE_ACCENTED_CHARACTERS,
    StringProcessor::TRIM_WHITESPACES,
    StringProcessor::STYLE_TITLE
]);

echo $str;

Output:

William Benjamim Menezes Sampaio

License

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

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-09-09

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固