![Stringy](http://danielstjules.com/github/stringy-logo.png)
A PHP string manipulation library with multibyte support. Compatible with PHP
5.4+, PHP 7+, and HHVM.
``` php
s('string')->toTitleCase()->ensureRight('y') == 'Stringy'
```
Refer to the [1.x branch](https://github.com/danielstjules/Stringy/tree/1.x) or
[2.x branch](https://github.com/danielstjules/Stringy/tree/2.x) for older
documentation.
[![Build Status](https://api.travis-ci.org/danielstjules/Stringy.svg?branch=master)](https://travis-ci.org/danielstjules/Stringy)
[![Total Downloads](https://poser.pugx.org/danielstjules/stringy/downloads)](https://packagist.org/packages/danielstjules/stringy)
[![License](https://poser.pugx.org/danielstjules/stringy/license)](https://packagist.org/packages/danielstjules/stringy)
* [Why?](#why)
* [Installation](#installation)
* [OO and Chaining](#oo-and-chaining)
* [Implemented Interfaces](#implemented-interfaces)
* [PHP 5.6 Creation](#php-56-creation)
* [StaticStringy](#staticstringy)
* [Class methods](#class-methods)
* [create](#createmixed-str--encoding-)
* [Instance methods](#instance-methods)
<table>
<tr>
<td><a href="#appendstring-string">append</a></td>
<td><a href="#atint-index">at</a></td>
<td><a href="#betweenstring-start-string-end--int-offset">between</a></td>
<td><a href="#camelize">camelize</a></td>
</tr>
<tr>
<td><a href="#chars">chars</a></td>
<td><a href="#collapsewhitespace">collapseWhitespace</a></td>
<td><a href="#containsstring-needle--boolean-casesensitive--true-">contains</a></td>
<td><a href="#containsallarray-needles--boolean-casesensitive--true-">containsAll</a></td>
</tr>
<tr>
<td><a href="#containsanyarray-needles--boolean-casesensitive--true-">containsAny</a></td>
<td><a href="#countsubstrstring-substring--boolean-casesensitive--true-">countSubstr</a></td>
<td><a href="#dasherize">dasherize</a></td>
<td><a href="#delimitint-delimiter">delimit</a></td>
</tr>
<tr>
<td><a href="#endswithstring-substring--boolean-casesensitive--true-">endsWith</a></td>
<td><a href="#endswithanystring-substrings--boolean-casesensitive--true-">endsWithAny</a></td>
<td><a href="#ensureleftstring-substring">ensureLeft</a></td>
<td><a href="#ensurerightstring-substring">ensureRight</a></td>
</tr>
<tr>
<td><a href="#firstint-n">first</a></td>
<td><a href="#getencoding">getEncoding</a></td>
<td><a href="#haslowercase">hasLowerCase</a></td>
<td><a href="#hasuppercase">hasUpperCase</a></td>
</tr>
<tr>
<td><a href="#htmldecode">htmlDecode</a></td>
<td><a href="#htmlencode">htmlEncode</a></td>
<td><a href="#humanize">humanize</a></td>
<td><a href="#indexofstring-needle--offset--0-">indexOf</a></td>
</tr>
<tr>
<td><a href="#indexoflaststring-needle--offset--0-">indexOfLast</a></td>
<td><a href="#insertint-index-string-substring">insert</a></td>
<td><a href="#isalpha">isAlpha</a></td>
<td><a href="#isalphanumeric">isAlphanumeric</a></td>
</tr>
<tr>
<td><a href="#isbase64">isBase64</a></td>
<td><a href="#isblank">isBlank</a></td>
<td><a href="#ishexadecimal">isHexadecimal</a></td>
<td><a href="#isjson">isJson</a></td>
</tr>
<tr>
<td><a href="#islowercase">isLowerCase</a></td>
<td><a href="#isserialized">isSerialized</a></td>
<td><a href="#isuppercase">isUpperCase</a></td>
<td><a href="#lastint-n">last</a></td>
</tr>
<tr>
<td><a href="#length">length</a></td>
<td><a href="#lines">lines</a></td>
<td><a href="#longestcommonprefixstring-otherstr">longestCommonPrefix</a></td>
<td><a href="#longestcommonsuffixstring-otherstr">longestCommonSuffix</a></td>
</tr>
<tr>
<td><a href="#longestcommonsubstringstring-otherstr">longestCommonSubstring</a></td>
<td><a href="#lowercasefirst">lowerCaseFirst</a></td>
<td><a href="#padint-length--string-padstr-----string-padtype--right-">pad</a></td>
<td><a href="#padbothint-length--string-padstr----">padBoth</a></td>
</tr>
<tr>
<td><a href="#padleftint-length--string-padstr----">padLeft</a></td>
<td><a href="#padrightint-length--string-padstr----">padRight</a></td>
<td><a href="#prependstring-string">prepend</a></td>
<td><a href="#regexreplacestring-pattern-string-replacement--string-options--msr">regexReplace</a></td>
</tr>
<tr>
<td><a href="#removeleftstring-substring">removeLeft</a></td>
<td><a href="#removerightstring-substring">removeRight</a></td>
<td><a href="#repeatint-multiplier">repeat</a></td>
<td><a href="#replacestring-search-string-replacement">replace</a></td>
</tr>
<tr>
<td><a href="#reverse">reverse</a></td>
<td><a href="#safetruncateint-length--string-substring---">safeTruncate</a></td>
<td><a href="#shuffle">shuffle</a></td>
<td><a href="#slugify-string-replacement-----string-language--en">slugify</a></td>
</tr>
<tr>
<td><a href="#sliceint-start--int-end-">slice</a></td>
<td><a href="#splitstring-pattern--int-limit-">split</a></td>
<td><a href="#startswithstring-substring--boolean-casesensitive--true-">startsWith</a></td>
<td><a href="#startswithanystring-substrings--boolean-casesensitive--true-">startsWithAny</a></td>
</tr>
<tr>
<td><a href="#stripwhitespace">stripWhitespace</a></td>
<td><a href="#substrint-start--int-length-">substr</a></td>
<td><a href="#surroundstring-substring">surround</a></td>
<td><a href="#swapcase">swapCase</a></td>
</tr>
<tr>
<td><a href="#tidy">tidy</a></td>
<td><a href="#titleize-array-ignore">titleize</a></td>
<td><a href="#toascii-string-language--en--bool-removeunsupported--true-">toAscii</a></td>
<td><a href="#toboolean">toBoolean</a></td>
</tr>
<tr>
<td><a href="#tolowercase">toLowerCase</a></td>
<td><a href="#tospaces-tablength--4-">toSpaces</a></td>
<td><a href="#totabs-tablength--4-">toTabs</a></td>
<td><a href="#totitlecase">toTitleCase</a></td>
</tr>
<tr>
<td><a href="#touppercase">toUpperCase</a></td>
<td><a href="#trim-string-chars">trim</a></td>
<td><a href="#trimleft-string-chars">trimLeft</a></td>
<td><a href="#trimright-string-chars">trimRight</a></td>
</tr>
<tr>
<td><a href="#truncateint-length--string-substring---">truncate</a></td>
<td><a href="#underscored">underscored</a></td>
<td><a href="#uppercamelize">upperCamelize</a></td>
<td><a href="#uppercasefirst">upperCaseFirst</a></td>
</tr>
</table>
* [Extensions](#extensions)
* [Tests](#tests)
* [License](#license)
## Why?
In part due to a lack of multibyte support (including UTF-8) across many of
PHP's standard string functions. But also to offer an OO wrapper around the
`mbstring` module's multibyte-compatible functions. Stringy handles some quirks,
provides additional functionality, and hopefully makes strings a little easier
to work with!
```php
// Standard library
strtoupper('fòôbàř'); // 'FòôBàř'
strlen('fòôbàř'); // 10
// mbstring
mb_strtoupper('fòôbàř'); // 'FÒÔBÀŘ'
mb_strlen('fòôbàř'); // '6'
// Stringy
s('fòôbàř')->toUpperCase(); // 'FÒÔBÀŘ'
s('fòôbàř')->length(); // '6'
```
## Installation
If you're using Composer to manage dependencies, you can include the following
in your composer.json file:
```json
"require": {
"danielstjules/stringy": "~3.1.0"
}
```
Then, after running `composer update` or `php composer.phar update`, you can
load the class using Composer's autoloading:
```php
require 'vendor/autoload.php';
```
Otherwise, you can
没有合适的资源?快使用搜索试试~ 我知道了~
CRMEB标准版开源商城免费开源多语言商城系统小程序源码
共2000个文件
js:738个
vue:663个
json:237个
需积分: 1 2 下载量 190 浏览量
2023-11-06
08:26:01
上传
评论
收藏 126.11MB ZIP 举报
温馨提示
微信小程序 CRMEB开源商城免费开源多语言商城系统,Tp6框架商城,系统可商用;包含小程序商城、H5商城、公众号商城、PC商城、App,支持分销、拼团、砍价、秒杀、优惠券、积分、会员等级、小程序直播、页面DIY,前后端分离,方便二开, v5.2.0 更新说明【更新时间2023年09月13日】 1、后台ui 从iview更新成element-ui 2、数据统计查询计算优化,统计放在对应的模块中 3、优化站点配置,分类对应的配置项 4、客服关键字自动回复,添加自动回复,用户在出发关键字时,系统自动回复聊天 5、批量发货功能,导出发货单,填写对应的物流数据,点击批量发货然后导入,即可批量写入发货状态 6、商品起购数量,后台可设置起购件数,移动端默认显示最低的购买件数 7、提现手续费设置,填写提现手续费百分比,范围0-100,0为无提现手续费,例:设置10%提现,提现100元,到账90元,10元手续费 8、签到功能,增加提醒,增加连续签到奖励,累计签到奖励 9、支持微信服务商支付 10、优化小程序和公众号登录流程 11、代码生成二期
资源推荐
资源详情
资源评论
收起资源包目录
CRMEB标准版开源商城免费开源多语言商城系统小程序源码 (2000个子文件)
chunk-vendors.7e6a9bcc.css 439KB
app.176ec911.css 292KB
iconfont.css 283KB
iconfont.css 283KB
theme-chalk.css 234KB
chunk-65508690.3603a9d7.css 93KB
chunk-416a355a.fc89a506.css 83KB
chunk-29918c8f.43a83f52.css 74KB
guildford.css 71KB
guildford.css 71KB
emojione.min.css 71KB
emojione.min.css 71KB
facebook.min.css 71KB
facebook.min.css 71KB
messenger.min.css 71KB
messenger.min.css 71KB
twitter.min.css 71KB
twitter.min.css 71KB
google.min.css 71KB
chunk-6c0691e8.c06ef95e.css 71KB
animate.min.css 57KB
chunk-2f794fcd.e3ba602a.css 54KB
apple.min.css 46KB
apple.min.css 46KB
iconfontYI.css 41KB
iconfont.css 34KB
base.css 30KB
base.css 30KB
chunk-3ed054ea.b2556f82.css 22KB
iconfont.css 20KB
chunk-01461622.1098cd10.css 17KB
chunk-1fc0c234.9696a53b.css 14KB
chunk-21cb535a.23bd3cad.css 14KB
chunk-188631da.bb194b2f.css 13KB
chunk-12af24b5.92287fd9.css 13KB
chunk-7f6b86a9.08eafd14.css 12KB
install.css 11KB
iconfont.css 11KB
chunk-1ed0e9be.5084e203.css 9KB
demo.css 8KB
chunk-7fd53abd.426462b1.css 8KB
chunk-c08b6cfc.edf72889.css 7KB
chunk-746b1991.ade2808f.css 7KB
chunk-a6423348.6928f558.css 7KB
chunk-6324aa31.fca938d3.css 6KB
chunk-36e18642.29c9100d.css 6KB
chunk-235e04cc.3855a092.css 6KB
chunk-0a5259ae.b8a8a02d.css 6KB
chunk-90f889ae.1812c8b7.css 5KB
chunk-a883d78e.df221d05.css 5KB
chunk-e63a953c.777adf6d.css 5KB
chunk-169abc05.9c54e0a1.css 5KB
google.min.css 5KB
tuoluojiang.css 5KB
grids_lottery.css 5KB
chunk-e63746c6.5d77f2dd.css 5KB
chunk-52bcd7f0.74456265.css 5KB
chunk-4bb0e39e.1c4e1a99.css 5KB
chunk-075215e2.3d9f8610.css 4KB
chunk-e77928d4.35af1280.css 4KB
iconfont.css 4KB
chunk-76fc8f24.8bdea8ab.css 4KB
chunk-f49d7e6a.4848bab0.css 4KB
chunk-b5b34c5c.417bc98a.css 4KB
chunk-1037a776.95e05419.css 3KB
chunk-2f0f9b32.0fff6a0a.css 3KB
chunk-3043a3af.226ddd39.css 3KB
chunk-f2899e2c.11904bb7.css 3KB
chunk-0f5e790c.1ed14998.css 3KB
chunk-74ca5faa.a7f75502.css 3KB
chunk-630eca78.026435f5.css 3KB
step1.css 3KB
chunk-88073580.50ba8057.css 3KB
chunk-480bc68a.932f5207.css 3KB
chunk-5ea413a3.e608071c.css 3KB
chunk-2929e4b9.0aa9e4dd.css 3KB
chunk-77cd47f3.457d0b6e.css 3KB
chunk-e80bfdde.29b6139e.css 3KB
step2.css 3KB
chunk-407865ce.000838ff.css 3KB
chunk-a4d1f178.78147e42.css 3KB
chunk-66005aa3.c90e6069.css 3KB
step3.css 3KB
chunk-629356f2.39661173.css 2KB
chunk-26315919.f3124d5b.css 2KB
chunk-dd132350.13971eff.css 2KB
chunk-0e167458.80ffe45a.css 2KB
chunk-58ed2adc.0452f53b.css 2KB
chunk-046498a8.98bd250f.css 2KB
chunk-a7fb6848.e8d4ad9a.css 2KB
chunk-593e3e57.e8effc06.css 2KB
chunk-22b4cd9b.d3f412cb.css 2KB
chunk-fe4f661a.a40b0d0f.css 2KB
chunk-c57969da.5556e9d8.css 2KB
chunk-f0538e6a.c7c0b109.css 2KB
jigsaw.css 2KB
chunk-9f697dde.b7d88feb.css 2KB
chunk-7a4913de.c6be2663.css 2KB
chunk-327bfad7.3ed7a97b.css 2KB
chunk-917035a4.93d6effd.css 2KB
共 2000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 20
资源评论
肥仔全栈开发
- 粉丝: 2299
- 资源: 160
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功