![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
没有合适的资源?快使用搜索试试~ 我知道了~
tp+uniapp开发全开源多语言多端商城带直播拼团抢购分销CRMEB打通版V4.6(2022.11.18版本)
共2000个文件
php:5343个
js:813个
png:679个
5星 · 超过95%的资源 需积分: 12 21 下载量 178 浏览量
2022-11-18
09:40:16
上传
评论 7
收藏 127.79MB ZIP 举报
温馨提示
重要的事情先说:1、全开源可商用;2、功能超级强大,直播分销拼团抢购秒杀应有尽有,3、自带短信接口,无需自己对接。4、前后端可分离,数据安全。5、多语言商城更靓丽。6、真正意义上的开源商用无后门无授权。7、多前端模板可供选择,不同配色,拖拽式布局,小白也可以上手! tp+uniapp开发全开源多语言多端商城带直播拼团抢购分销CRMEB打通版V4.6(2022.11.18版本) 单用户商城,带分销、可以是多级分销,也可以是人人分销。带拼团、砍价、秒杀、直播、优惠券等功能,很完善,只需要后台简单设置即可。系统自带有短信,集成进去的特别方便,带自提点,可以设定核销员,无论是线上物流还是线下核销做的都非常棒。这个是我最近正在用的功能,省去不少开发成本。
资源推荐
资源详情
资源评论
收起资源包目录
tp+uniapp开发全开源多语言多端商城带直播拼团抢购分销CRMEB打通版V4.6(2022.11.18版本) (2000个子文件)
pimple.c 37KB
app.b5aec2df.css 527KB
chunk-vendors.9c8b03f9.css 483KB
chunk-9d3bafa2.f26ddf09.css 92KB
index.b0707a6a.css 92KB
chunk-6bf06aec.4e9fb28f.css 89KB
guildford.css 71KB
guildford.css 71KB
guildford.css 71KB
chunk-1112718e.c8ab1d13.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-186376ec.fa095460.css 71KB
animate.min.css 57KB
chunk-3a43bb6c.c3272283.css 54KB
apple.min.css 46KB
apple.min.css 46KB
iconfontYI.css 41KB
iconfont.css 34KB
base.css 30KB
base.css 30KB
base.css 30KB
iconfont.css 24KB
iconfont.css 24KB
iconfont.css 24KB
chunk-2a872abf.261c5a22.css 22KB
chunk-0c05df09.ec625add.css 14KB
chunk-db1f3f84.bd716488.css 14KB
chunk-2ca25cc1.6202bb49.css 13KB
chunk-d735b6e2.defe51bc.css 13KB
iconfont.css 12KB
chunk-1171ac4b.8ed89aa8.css 12KB
style.css 11KB
iconfont.css 11KB
install.css 10KB
chunk-0869dfc5.6cbad704.css 8KB
demo.css 8KB
chunk-30a935b0.410a1a43.css 8KB
chunk-83d2a766.6b18acd6.css 7KB
chunk-3afbede6.b0409461.css 7KB
chunk-5400b994.88b5b54d.css 6KB
chunk-592dcdcb.76124f3d.css 6KB
chunk-85cd0b42.79268db6.css 6KB
chunk-63bdea71.50de59cc.css 5KB
google.min.css 5KB
chunk-58da42e6.e314fc95.css 5KB
tuoluojiang.css 5KB
grids_lottery.css 5KB
chunk-cf470702.d772064c.css 5KB
chunk-126ca984.f327b292.css 4KB
chunk-35faf6ef.f16a080d.css 4KB
iconfont.css 4KB
chunk-28a4367e.603cb5cb.css 4KB
chunk-a046070e.58ba8f69.css 4KB
chunk-3afc7a10.f56b1863.css 3KB
chunk-2fb735d0.d7bbb8c6.css 3KB
chunk-aa80dfa8.cd9c8514.css 3KB
chunk-4e744958.87943f3c.css 3KB
chunk-9485b922.6a4fce01.css 3KB
chunk-e658941c.bd848b76.css 3KB
chunk-157b4f48.fb9470f3.css 3KB
chunk-e45e1604.6cf05b7e.css 3KB
chunk-1ce37c58.cd30313c.css 3KB
htmlDescriptor.css 3KB
chunk-65e43b7e.311815b8.css 3KB
chunk-78907bdd.742995ec.css 3KB
chunk-803262aa.c8d5f71a.css 3KB
chunk-fc93c22c.84f91323.css 3KB
chunk-e46acd52.6d3da039.css 3KB
chunk-718339f0.a4328032.css 2KB
chunk-80427f7c.5b7bf1d9.css 2KB
homepage.css 2KB
chunk-4dc949e0.7ec0f7c9.css 2KB
chunk-34f0a828.ffb4875d.css 2KB
chunk-3eff14c2.2d2aadbb.css 2KB
chunk-84e22458.392fe364.css 2KB
chunk-e549c49c.ab0e86b6.css 2KB
chunk-9dce377a.632792f5.css 2KB
jigsaw.css 2KB
chunk-6725f7ee.63d530e7.css 2KB
chunk-a2de4836.58e3feab.css 2KB
chunk-08c24f8e.4bc347be.css 2KB
chunk-698f9fd3.fd0543f5.css 2KB
chunk-d977485e.a86626cb.css 2KB
chunk-9ca51944.085fc616.css 2KB
chunk-3e5c7bda.d09e3d2f.css 2KB
chunk-64b9eb34.abc9ed34.css 2KB
chunk-24dfe0e6.6ed9fb31.css 2KB
chunk-81b4e132.775f6804.css 2KB
chunk-2d6b1a6c.42690298.css 2KB
chunk-45de3ce6.aacdb36b.css 2KB
chunk-61737d4a.e69ce2c7.css 2KB
chunk-6a965ca9.f8d438e3.css 2KB
共 2000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 20
资源评论
- 甜甜不加糖2023-07-27这个开源的多语言多端商城确实功能齐全,让我感到非常方便。
- 吉利吉利2023-07-27CRMEB打通版的加入,使得整个商城的管理更加得心应手,也提升了我的工作效率。
- 月小烟2023-07-27使用tp uniapp开发的这个文件,添加了直播和拼团抢购功能,让用户可以更好地体验购物的乐趣。
- 精准小天使2023-07-27这个商城的分销功能设计得很巧妙,帮助我快速扩展了业务,实在是个不错的选择。
- 王元祺2023-07-27更新的版本修复了之前的一些小bug,用起来更加流畅,很值得信赖。
锦鲤源码论坛
- 粉丝: 41
- 资源: 1
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 服装销售平台源代码.zip
- 高校心理教育辅导设计与实现.zip
- 服装生产管理系统源代码.zip
- 3b123中学生日常行为评分管理系统_springboot+vue.zip
- 3b125流浪狗领养管理_springboot+vue.zip
- 3b124电影推荐系统_springboot+vue.zip
- 购物推荐网站源代码.zip
- 技术交流和分享平台源代码.zip
- 基于B2B平台的医疗病历交互系统源代码.zip
- 3b127旅游网站设计_springboot+vue0.zip
- 3b126小说网站系统_springboot+vue.zip
- 教师工作量管理系统源代码.zip
- 俱乐部管理系统源代码.zip
- 兼职网源代码.zip
- 美容院管理系统源代码.zip
- 旅游网站源代码.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功