Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on Apr 24, 2024 via composer

symfony/string v5.3.13

Provides an object-oriented API to strings and deals with bytes, UTF-8 code points and grapheme clusters in a unified way
Package summary
Share
0
issues
1
license
6
MIT
Package created
5 Oct 2019
Version published
16 Dec 2021
Maintainers
1
Total deps
6
Direct deps
5
License
MIT

Issues

0
This package has no issues

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
6 Packages, Including:
symfony/polyfill-ctype@v1.29.0
symfony/polyfill-intl-grapheme@v1.29.0
symfony/polyfill-intl-normalizer@v1.29.0
symfony/polyfill-mbstring@v1.29.0
symfony/polyfill-php80@v1.29.0
symfony/string@v5.3.13
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

5
All Dependencies CSV
β“˜ This is a list of symfony/string 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
symfony/polyfill-ctypev1.29.0-MIT
prod
symfony/polyfill-intl-graphemev1.29.0-MIT
prod
symfony/polyfill-intl-normalizerv1.29.0-MIT
prod
symfony/polyfill-mbstringv1.29.0-MIT
prod
symfony/polyfill-php80v1.29.0-MIT
prod

Visualizations

Frequently Asked Questions

What does symfony/string do?

The Symfony/String package provides an object-oriented API for string manipulation, unifying the handling of bytes, UTF-8 code points, and grapheme clusters. The advantage of using this package is that it provides a wide range of string operation methods which make it easier to handle complex string manipulation tasks. This is especially handy when dealing with multibyte or Unicode strings.

How do you use symfony/string?

To use the Symfony/String in your PHP code, you first need to require the package using composer:

composer require symfony/string

After you've included the package in your project, you can use it to perform string operations. For instance, let's create a new UnicodeString object and call a few example operations on it.

use Symfony\Component\String\UnicodeString;

$unicodeString = new UnicodeString('Hello, world!');
echo $unicodeString->lower(); // Output: 'hello, world!'
echo $unicodeString->length(); // Output: 13
echo $unicodeString->startsWith('Hello'); // Output: true

In this example, we have invoked methods to transform the string into lowercase, get the string's length, and check whether the string starts with the phrase 'Hello'.

Where are the symfony/string docs?

The official documentation for Symfony/String can be found on the Symfony website at https://symfony.com/doc/current/components/string.html. The documentation contains detailed information on all the methods provided by the package, along with plenty of code examples. It's a fantastic resource for beginners and seasoned developers alike hoping to familiarize themselves with this powerful String handling package.