![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"
}
```
没有合适的资源?快使用搜索试试~ 我知道了~
新版校园跑腿外卖独立版+APP+小程序前端外卖配送平台源码
共2001个文件
js:1126个
json:512个
html:216个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 151 浏览量
2024-10-15
19:59:40
上传
评论
收藏 818MB ZIP 举报
温馨提示
同城校园跑腿外卖配送平台源码,这套目前全网还没有人分享过,这个是开源的,所以没有任何问题了,这套源码非常吊,支持自定义diy 你可以设计你的页面,设计你自己的风格,支持多校园,独立版本,多商户,有用户端,骑手端,商家端,强大的功 安装说明: 服务器2h4G5M即可, 服务器系统:centos8, 服务器上安装宝塔面板,不懂怎么安装宝塔的可以百度, 所需环境:php7.3,mysql5.7或者5.8
资源推荐
资源详情
资源评论
收起资源包目录
新版校园跑腿外卖独立版+APP+小程序前端外卖配送平台源码 (2001个子文件)
app.7d200979cc408cd22f288d4e675df9c5.css 2.34MB
app.fda6de275f7aaa3b1d167d7b2a1e5c6c.css 270KB
app.8e093b963fe8e155228035409c391bb6.css 269KB
diy.css 187KB
common.css 127KB
bootstrap.min.css 118KB
manage.css 99KB
manage - 副本.css 97KB
manage_bak.css 87KB
animate.css 67KB
common.css 63KB
ueditor.css 33KB
ueditor.min.css 33KB
iconfont.css 32KB
iconfont.css 32KB
iconfont.css 32KB
emotions.css 31KB
delivery.css 28KB
font-awesome.min.css 26KB
reset.css 20KB
theme-yellow.css 19KB
theme-green.css 19KB
theme-blue.css 18KB
reset.css 16KB
jquery.datetimepicker.css 16KB
swiper.min.css 14KB
select2.css 14KB
jquery-confirm.css 13KB
image.css 13KB
video.css 11KB
attachment.css 11KB
video-js.css 11KB
video-js.min.css 11KB
spectrum.css 11KB
theme-card.css 9KB
shCoreDefault.css 7KB
toastr.min.css 6KB
shop.css 6KB
jquery.range.css 6KB
style.css 6KB
bootstrap-switch.min.css 5KB
daterangepicker.css 4KB
jquery.contextMenu.css 4KB
select2-bootstrap.css 3KB
star-rating.css 3KB
nestable.css 3KB
scrawl.css 3KB
clockpicker.min.css 3KB
clockpicker.min.css 3KB
codemirror.css 2KB
background.css 2KB
charts.css 2KB
switchery.css 2KB
music.css 1KB
emotion.css 1KB
dialogbase.css 1KB
jquery.onepage.css 1KB
new.css 1KB
template.css 932B
edittable.css 854B
webuploader.css 426B
webuploader.css 397B
help.css 361B
jquery.circliful.css 354B
style.css 342B
iframe.css 1B
test.css 0B
test.css 0B
Api统一网关接口文档.docx 98KB
.DS_Store 6KB
attachment.html 24KB
takeoutDetail.html 22KB
takeoutList1.html 22KB
attachment.html 20KB
attachment.html 20KB
index.html 19KB
erranderList.html 16KB
takeoutList.html 15KB
tangshiDetail.html 14KB
erranderDetail.html 14KB
site.html 14KB
takeoutList.html 13KB
upgrade.html 13KB
header.html 13KB
takeoutDetail.html 13KB
register.html 12KB
index.html 12KB
help.html 11KB
config.html 11KB
help.html 11KB
config.html 11KB
help.html 11KB
config.html 11KB
help.html 11KB
config.html 11KB
help.html 11KB
config.html 11KB
help.html 11KB
config.html 11KB
help.html 11KB
共 2001 条
- 1
- 2
- 3
- 4
- 5
- 6
- 21
资源评论
破碎的天堂鸟
- 粉丝: 8385
- 资源: 2294
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- C#ASP.NET公司年会抽奖程序源码数据库 Access源码类型 WebForm
- (源码)基于SQLite和C++的项目管理系统.zip
- 2024V免签11月份-三网免挂支付系统(集成最新的pc端监控软件)
- (源码)基于NodeJS和Fastify的硬件数据管理系统.zip
- (源码)基于Django和React的智能家居管理系统.zip
- 2022年系统架构设计师考试模拟卷(案例分析).pdf
- 数据库原理-测验.pdf
- (源码)基于C++和wxWidgets的仓库管理系统.zip
- spring-boot - spring-boot小知识点
- 全球各国汇率、短长期、政策利率数据(1914-2024.3).zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功