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
Accelerator
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 }}
Uh oh!
There was an error while loading.
Please reload this page
.
symfony
/
string
Public
Notifications
You must be signed in to change notification settings
Fork
20
Star
1.8k
Code
Actions
Security and quality
0
Insights
Additional navigation options
Code
Actions
Security and quality
Insights
Commits
Breadcrumbs
History for
string
AbstractString.php
on
8.2
User selector
All users
All time
Commit history
Commits on May 5, 2026
Mark callbacks with @param-immediately-invoked-callable where applicable
janedbal
authored and
nicolas-grekas
committed
760b920
View commit details
Copy full SHA for 760b920
View code at this point
Browse repository at this point
Commits on Aug 14, 2025
[HttpKernel][Mime][Serializer][String][Validator] Replace `__sleep/wakeup()` by `__(un)serialize()`
nicolas-grekas
committed
d7b049d
View commit details
Copy full SHA for d7b049d
View code at this point
Browse repository at this point
[Mime] Deprecate implementing `__sleep/wakeup()` on `AbstractPart` implementations
nicolas-grekas
committed
3ba35cb
View commit details
Copy full SHA for 3ba35cb
View code at this point
Browse repository at this point
[Validator] Deprecate implementing `__sleep/wakeup()` on GenericMetadata implementations
nicolas-grekas
committed
eb940c9
View commit details
Copy full SHA for eb940c9
View code at this point
Browse repository at this point
[String] Deprecate implementing `__sleep/wakeup()` on string implementations
nicolas-grekas
committed
68acca9
View commit details
Copy full SHA for 68acca9
View code at this point
Browse repository at this point
Commits on Jan 5, 2025
[String] Add `AbstractString::pascal()` method
raffaelecarelle
authored and
fabpot
committed
1634114
View commit details
Copy full SHA for 1634114
View code at this point
Browse repository at this point
Commits on Sep 28, 2024
[String] Add the `AbstractString::kebab()` method
alexandre-daubois
committed
8133473
View commit details
Copy full SHA for 8133473
View code at this point
Browse repository at this point
Commits on Jul 19, 2024
fix truncating in WordBefore mode with length after last space
xabbuh
committed
f9fde99
View commit details
Copy full SHA for f9fde99
View code at this point
Browse repository at this point
Commits on Jul 3, 2024
[String] Add WORD_STRICT mode to truncate method
Korbeil
committed
25ad779
View commit details
Copy full SHA for 25ad779
View code at this point
Browse repository at this point
Commits on Jun 20, 2024
Prefix all sprintf() calls
derrabus
committed
adfa98a
View commit details
Copy full SHA for adfa98a
View code at this point
Browse repository at this point
Commits on Jan 23, 2024
Merge branch '6.4' into 7.0
Show description for c71eccf
nicolas-grekas
committed
c71eccf
View commit details
Copy full SHA for c71eccf
View code at this point
Browse repository at this point
Merge branch '6.3' into 6.4
Show description for 6901a54
nicolas-grekas
committed
6901a54
View commit details
Copy full SHA for 6901a54
View code at this point
Browse repository at this point
Merge branch '5.4' into 6.3
Show description for bce7504
nicolas-grekas
committed
bce7504
View commit details
Copy full SHA for bce7504
View code at this point
Browse repository at this point
Apply php-cs-fixer fix --rules nullable_type_declaration_for_default_null_value
nicolas-grekas
committed
c209c4d
View commit details
Copy full SHA for c209c4d
View code at this point
Browse repository at this point
Commits on Nov 9, 2023
Merge branch '6.4' into 7.0
Show description for c26cedd
nicolas-grekas
committed
c26cedd
View commit details
Copy full SHA for c26cedd
View code at this point
Browse repository at this point
remove error handler not needed on PHP 8
xabbuh
committed
afab7ff
View commit details
Copy full SHA for afab7ff
View code at this point
Browse repository at this point
Merge branch '6.4' into 7.0
Show description for 144dde9
nicolas-grekas
committed
144dde9
View commit details
Copy full SHA for 144dde9
View code at this point
Browse repository at this point
Merge branch '6.3' into 6.4
Show description for 3f6c023
nicolas-grekas
committed
3f6c023
View commit details
Copy full SHA for 3f6c023
View code at this point
Browse repository at this point
Merge branch '5.4' into 6.3
Show description for 13880a8
nicolas-grekas
committed
13880a8
View commit details
Copy full SHA for 13880a8
View code at this point
Browse repository at this point
[String] Method toByteString conversion using iconv is unreachable
Vincentv92
authored and
nicolas-grekas
committed
2765096
View commit details
Copy full SHA for 2765096
View code at this point
Browse repository at this point
Commits on Jul 27, 2023
Add types to public and protected properties
nicolas-grekas
committed
95ff83d
View commit details
Copy full SHA for 95ff83d
View code at this point
Browse repository at this point
More short closures + isset instead of null checks + etc.
nicolas-grekas
committed
fe9228b
View commit details
Copy full SHA for fe9228b
View code at this point
Browse repository at this point
Commits on Aug 4, 2022
Merge branch '6.1' into 6.2
Show description for ddd2602
derrabus
committed
ddd2602
View commit details
Copy full SHA for ddd2602
View code at this point
Browse repository at this point
Merge branch '6.0' into 6.1
Show description for b70b274
derrabus
committed
b70b274
View commit details
Copy full SHA for b70b274
View code at this point
Browse repository at this point
Merge branch '5.4' into 6.0
Show description for f6ca040
derrabus
committed
f6ca040
View commit details
Copy full SHA for f6ca040
View code at this point
Browse repository at this point
Commits on Aug 3, 2022
Merge branch '4.4' into 5.4
Show description for 40533d8
nicolas-grekas
committed
40533d8
View commit details
Copy full SHA for 40533d8
View code at this point
Browse repository at this point
Commits on Jun 24, 2022
Use preg_last_error_msg() when possible
nicolas-grekas
committed
910c205
View commit details
Copy full SHA for 910c205
View code at this point
Browse repository at this point
Commits on Apr 12, 2022
[Cache][String] Don't use is_iterable() in perf-critical code paths
nicolas-grekas
committed
f0d5d33
View commit details
Copy full SHA for f0d5d33
View code at this point
Browse repository at this point
Commits on Apr 8, 2022
Leverage array_is_list(), get_debug_type(), is_countable(), is_iterable(), str_contains() and str_starts_with()
fancyweb
committed
20a20a4
View commit details
Copy full SHA for 20a20a4
View code at this point
Browse repository at this point
Commits on Dec 16, 2021
Add more nullsafe operators
nicolas-grekas
committed
532df62
View commit details
Copy full SHA for 532df62
View code at this point
Browse repository at this point
Merge branch '6.0' into 6.1
Show description for ad15e5c
nicolas-grekas
committed
ad15e5c
View commit details
Copy full SHA for ad15e5c
View code at this point
Browse repository at this point
[6.0] cs fixes
nicolas-grekas
committed
bae261d
View commit details
Copy full SHA for bae261d
View code at this point
Browse repository at this point
Commits on Dec 8, 2021
Leverage str_starts_with(), str_ends_with() and str_contains()
fancyweb
committed
2f80632
View commit details
Copy full SHA for 2f80632
View code at this point
Browse repository at this point
Commits on Oct 16, 2021
Merge branch '5.4' into 6.0
Show description for 2118912
nicolas-grekas
committed
2118912
View commit details
Copy full SHA for 2118912
View code at this point
Browse repository at this point
Commits on Oct 13, 2021
[String] Add `trimSuffix()` and `trimPrefix()` methods
nicolas-grekas
committed
37db45d
View commit details
Copy full SHA for 37db45d
View code at this point
Browse repository at this point
Previous
Next
You can’t perform that action at this time.