Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
hyperf
hyperf
Repository navigation
Code
Issues
366
(366)
Pull requests
89
(89)
Discussions
Actions
Projects
Security and quality
Insights
More
items
Commits
Breadcrumbs
History for
hyperf
src
stringable
src
Str.php
on
master
User selector
All users
Datepicker
All time
Commit history
Commits on Sep 15, 2026
Fixed PHPStan (#7809)
limingxinleo
authored
e5788dc
View commit details
Copy full SHA for e5788dc
View code at this point
Browse repository at this point
Commits on Mar 7, 2026
Modernize array utilities and JSON validation using PHP 8.4+ functions with polyfills (#7523)
Show description for bb3a2a4
huangdijia
and
limingxinleo
authored
bb3a2a4
View commit details
Copy full SHA for bb3a2a4
View code at this point
Browse repository at this point
Commits on Dec 4, 2025
Merge branch 'master' into 3.2-merge
limingxinleo
committed
dae5932
View commit details
Copy full SHA for dae5932
View code at this point
Browse repository at this point
feat: update HasUuids to use UUIDv7 instead of ordered UUID (#7644)
huangdijia
authored
667053b
View commit details
Copy full SHA for 667053b
View code at this point
Browse repository at this point
Commits on Jul 22, 2025
Upgrade the versions of phpstan and rector.
Show description for 24d6913
huangdijia
and
limingxinleo
authored
24d6913
View commit details
Copy full SHA for 24d6913
View code at this point
Browse repository at this point
Commits on May 2, 2025
Fixed PHPStan (#7370)
Show description for 1cd14eb
limingxinleo
authored
1cd14eb
View commit details
Copy full SHA for 1cd14eb
View code at this point
Browse repository at this point
Commits on Jan 8, 2025
Add case sensitivity option to pattern matching (#7219)
huangdijia
authored
adad532
View commit details
Copy full SHA for adad532
View code at this point
Browse repository at this point
Commits on Oct 9, 2024
Fixed bug `Str::trim` cannot support the default rules "\n\r\t\v" for `trim/ltrim/rtim`. (#7068)
guandeng
authored
f98fab3
View commit details
Copy full SHA for f98fab3
View code at this point
Browse repository at this point
Commits on Sep 12, 2024
Convert `$value` and `$pattern` to string for `Str::is()`. (#7053)
guandeng
authored
34c36ab
View commit details
Copy full SHA for 34c36ab
View code at this point
Browse repository at this point
Commits on Jul 1, 2024
Added `Str::chopStart` and `Str::chopEnd` (#6917)
huangdijia
authored
83ec2d9
View commit details
Copy full SHA for 83ec2d9
View code at this point
Browse repository at this point
Commits on May 27, 2024
Fixed the phpstan error for `Str::append()` (#6802)
huangdijia
authored
2e7113a
View commit details
Copy full SHA for 2e7113a
View code at this point
Browse repository at this point
Support `numbers` and `fromBase64` methods for `\Hyperf\Stringable\Str` (#6799)
Show description for 2ddf7fd
zds-s
authored
2ddf7fd
View commit details
Copy full SHA for 2ddf7fd
View code at this point
Browse repository at this point
Commits on Apr 19, 2024
Optimized the implementation of `Pluralizer`. (#6700)
Show description for 355534f
zds-s
and
limingxinleo
authored
355534f
View commit details
Copy full SHA for 355534f
View code at this point
Browse repository at this point
Add methods `isAscii`, `headline`, `position`, `take`, `toBase64` and `unwrap` in the `Str` and `Stringable`. (#6692)
weslenteche
authored
3c64812
View commit details
Copy full SHA for 3c64812
View code at this point
Browse repository at this point
Commits on Apr 3, 2024
Added Str trim methods (#6652)
huangdijia
authored
5579ba1
View commit details
Copy full SHA for 5579ba1
View code at this point
Browse repository at this point
Commits on Mar 23, 2024
Format code by the latest `cs-fixer`. (#6617)
limingxinleo
authored
fc48803
View commit details
Copy full SHA for fc48803
View code at this point
Browse repository at this point
Commits on Mar 10, 2024
Added `Hyperf\Stringable\Str::apa()` method (#6576)
huangdijia
authored
2b10c7a
View commit details
Copy full SHA for 2b10c7a
View code at this point
Browse repository at this point
Commits on Oct 20, 2023
Merge branch 'master' into 3.1
Show description for 74fa290
limingxinleo
committed
74fa290
View commit details
Copy full SHA for 74fa290
View code at this point
Browse repository at this point
Commits on Oct 18, 2023
Added `Str::replaceMatches()` (#6220)
huangdijia
authored
910716d
View commit details
Copy full SHA for 910716d
View code at this point
Browse repository at this point
Commits on Oct 16, 2023
Fixed bug that `Str::replaceLast` with empty search cannot work as expected. (#6217)
luck-xj
authored
5cb46cb
View commit details
Copy full SHA for 5cb46cb
View code at this point
Browse repository at this point
Commits on Sep 22, 2023
Merge branch 'master' into 3.1
Show description for d62673f
limingxinleo
committed
d62673f
View commit details
Copy full SHA for d62673f
View code at this point
Browse repository at this point
Commits on Sep 18, 2023
Enhance stringable (#6156)
Show description for ade75a0
xuanyanwow
and
huangdijia
authored
ade75a0
View commit details
Copy full SHA for ade75a0
View code at this point
Browse repository at this point
Commits on Aug 31, 2023
Added new rules to the validation (#6106)
VinchanGit
authored
d1323e9
View commit details
Copy full SHA for d1323e9
View code at this point
Browse repository at this point
Commits on Jul 27, 2023
Merge branch 'master' into 3.1-merge
Show description for 4803bf4
limingxinleo
committed
4803bf4
View commit details
Copy full SHA for 4803bf4
View code at this point
Browse repository at this point
Commits on Jul 25, 2023
Added `Str::containsIgnoreCase()` (#5971)
Show description for f202ed5
guandeng
and
limingxinleo
authored
f202ed5
View commit details
Copy full SHA for f202ed5
View code at this point
Browse repository at this point
Fixed bug that `Str::startsWith` and `Str::endsWith` will cause the error result when the `$needles` is `[null]`. (#5970)
Show description for cbe62b7
3 people
authored
cbe62b7
View commit details
Copy full SHA for cbe62b7
View code at this point
Browse repository at this point
Commits on Jul 24, 2023
Fixed bug that `Str::contains` with `null` will case the error result. (#5969)
Show description for d750365
limingxinleo
authored
d750365
View commit details
Copy full SHA for d750365
View code at this point
Browse repository at this point
Commits on Jul 9, 2023
Upgrade URL pattern for `Str::isUrl()` (#5917)
huangdijia
authored
cfdf089
View commit details
Copy full SHA for cfdf089
View code at this point
Browse repository at this point
Adds `Str::isUrl()` and use it from the validator (#5914)
Show description for f8610a0
huangdijia
authored
f8610a0
View commit details
Copy full SHA for f8610a0
View code at this point
Browse repository at this point
Commits on Jun 25, 2023
chore(str): add deprecated comment (#5875)
BinaryAlan
authored
817e22a
View commit details
Copy full SHA for 817e22a
View code at this point
Browse repository at this point
Commits on Jun 20, 2023
Removed string cache from `Hyperf\Stringable\Str`
Show description for 56dce81
3 people
authored
56dce81
View commit details
Copy full SHA for 56dce81
View code at this point
Browse repository at this point
Commits on Apr 12, 2023
Split `hyperf/stringable` from `hyperf/utils` (#5625)
huangdijia
authored
d9eaddd
View commit details
Copy full SHA for d9eaddd
View code at this point
Browse repository at this point
Loading
You can’t perform that action at this time.