![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
没有合适的资源?快使用搜索试试~ 我知道了~
鼠标后台thinkphp调用大模型
共2001个文件
js:602个
css:335个
md:297个
需积分: 0 0 下载量 61 浏览量
2024-11-11
09:59:54
上传
评论
收藏 227.37MB ZIP 举报
温馨提示
鼠标后台thinkphp调用大模型
资源推荐
资源详情
资源评论
收起资源包目录
鼠标后台thinkphp调用大模型 (2001个子文件)
app.f42f5c61.css 1016KB
chunk-vendors.e6fe1e6a.css 993KB
chunk-vendors.19d8da69.css 684KB
entry.7982e803.css 535KB
chunk-f1328152.1d1340c8.css 163KB
chunk-633bb6fc.01cf28ac.css 92KB
chunk-1e024e86.80b131dd.css 89KB
chunk-57ab2f0a.c8ab1d13.css 71KB
chunk-186376ec.98b3a908.css 71KB
app.cac9ac93.css 62KB
chunk-fea1f6ce.8391055d.css 54KB
skin.min.css 46KB
chunk-6002572c.0cb5500c.css 44KB
chunk-68140069.17d7589c.css 37KB
chunk-44fded66.097d0c2d.css 25KB
chunk-d4eb27c2.37e081b6.css 23KB
chunk-41e625b8.261c5a22.css 22KB
content.min.css 18KB
prompt.239d5247.css 17KB
chunk-76c226ee.979efaed.css 14KB
chunk-0c05df09.ec625add.css 14KB
chunk-db1f3f84.bd716488.css 14KB
chunk-5cc34f42.f15c944e.css 13KB
chunk-01a3bea8.d27329d6.css 13KB
chunk-0dfd284f.212e1069.css 13KB
chunk-025af898.a87c5321.css 12KB
paint.ec2747b9.css 11KB
chunk-6281fb0f.4d1005fb.css 9KB
chunk-f9f600e4.6b96417a.css 8KB
chunk-45482c10.79c27808.css 8KB
chunk-2f2ba228.6b18acd6.css 7KB
octonotype4.db4dff5e.css 7KB
chunk-3afbede6.b0409461.css 7KB
Conversation5.e0d82530.css 7KB
octonotype6.a9105916.css 7KB
octonotype.54800d9e.css 7KB
Conversation.fb770176.css 7KB
chunk-abab6ddc.a322c83e.css 7KB
chunk-5400b994.88b5b54d.css 6KB
chunk-aac7b31a.16b4de85.css 6KB
chunk-592dcdcb.76124f3d.css 6KB
chunk-38a5fd42.a120051b.css 6KB
brainPowerForm.99998a18.css 6KB
chunk-5e435688.c3d3c19e.css 5KB
chunk-5e8789e2.554d9757.css 5KB
chunk-faf530ee.6109d990.css 5KB
faceRecognition.742fbd45.css 5KB
chunk-3be0a91b.116adcaa.css 5KB
editor.24aa9399.css 5KB
electronicSignature.92bbd230.css 5KB
chunk-b1f13330.085dada3.css 4KB
chunk-2e3a27a8.75f96eb7.css 4KB
chunk-797cc4cb.bc4dd7e9.css 4KB
chunk-5e45aec0.e5e425a8.css 4KB
chunk-56777bb4.43bbc57b.css 4KB
chunk-08f58fdc.58ba8f69.css 4KB
chunk-6d621312.b8391630.css 4KB
formControls.9c0e8c61.css 4KB
error-404.fda4aa6a.css 3KB
chunk-9b852dca.906885bf.css 3KB
chunk-2fb735d0.d7bbb8c6.css 3KB
chunk-aa80dfa8.cd9c8514.css 3KB
chunk-01f4dff8.62f65db2.css 3KB
chunk-9744cfda.8411422c.css 3KB
chunk-e658941c.bd848b76.css 3KB
myDocumentation.a1ad151c.css 3KB
chunk-a0a37da6.fb9470f3.css 3KB
user.f4af2428.css 3KB
chunk-408a155c.256cb56c.css 3KB
chunk-3c86619f.cd30313c.css 3KB
htmlDescriptor.css 3KB
chunk-2151f7a8.2245d025.css 3KB
chunk-4038dff4.d1223b07.css 3KB
chunk-ac37f18a.e34a5455.css 3KB
chunk-e7bf9be8.9b1e7646.css 3KB
chunk-2bd57a6b.1f7e9e34.css 3KB
chunk-0456d559.0de12377.css 3KB
chunk-6228e620.28de9d6e.css 3KB
chunk-80089ee2.b8060f29.css 3KB
chunk-fc93c22c.84f91323.css 3KB
chunk-03052987.f7599da8.css 3KB
chunk-1d5ab183.9f0ea9c3.css 3KB
chunk-ac666b32.f9136364.css 2KB
chunk-80427f7c.5b7bf1d9.css 2KB
chunk-4dc949e0.7ec0f7c9.css 2KB
chunk-9f7845d2.323a68b6.css 2KB
chunk-78b61099.0b12bbd5.css 2KB
chunk-3eff14c2.2d2aadbb.css 2KB
chunk-9ee43c16.272729ba.css 2KB
chunk-2a998a97.04ca04dc.css 2KB
chunk-3c000861.4ec9bc3d.css 2KB
chunk-5639f4fb.7fdde603.css 2KB
chunk-0f73c812.1b8d4ade.css 2KB
chunk-6725f7ee.63d530e7.css 2KB
chunk-60f51938.39a7fc8d.css 2KB
chunk-60c80fb2.66cb13ed.css 2KB
chunk-3eac0f59.ef556a1c.css 2KB
chunk-08c24f8e.4bc347be.css 2KB
chunk-56828fe3.a86626cb.css 2KB
chunk-698f9fd3.fd0543f5.css 2KB
共 2001 条
- 1
- 2
- 3
- 4
- 5
- 6
- 21
资源评论
guoruijun_2012_4
- 粉丝: 266
- 资源: 206
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功