Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Generated on Jun 12, 2024 via composer

symfony/polyfill-intl-grapheme v1.28.0

Symfony polyfill for intl's grapheme_* functions
Package summary
Share
0
issues
1
license
1
MIT
Package created
25 Oct 2015
Version published
26 Jan 2023
Maintainers
1
Total deps
1
Direct deps
0
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
1 Packages, Including:
symfony/polyfill-intl-grapheme@v1.28.0
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

0
All Dependencies CSV
β“˜ This is a list of symfony/polyfill-intl-grapheme 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities

Visualizations

Frequently Asked Questions

What does symfony/polyfill-intl-grapheme do?

The "Symfony polyfill-intl-grapheme" is a package that provides a partial, native PHP implementation of the Grapheme functions from the Intl extension. The features of this package include functions that allow you to manipulate and manage text buffers encoded in UTF-8, find the position of first and last occurrence of a case-insensitive string or a specific string in grapheme units, determine the length of a string in grapheme units, and return part of a string.

How do you use symfony/polyfill-intl-grapheme?

The "Symfony polyfill-intl-grapheme" package is installed and used in your PHP application via composer. You can install it by running the command composer require symfony/polyfill-intl-grapheme. Once it's installed, you can use it in your PHP script like this:


use Symfony\Polyfill\Intl\Grapheme\Grapheme;

// Extract a sequence of grapheme clusters from a text buffer.
echo Grapheme::grapheme_extract($text, $size, $type, $start, $next); 

// Get string length in grapheme units.
echo Grapheme::grapheme_strlen($text); 

// Find the position of the first occurrence of a case-insensitive string.
echo Grapheme::grapheme_stripos($haystack, $needle);

// The rest of the functions can be used similarly. 

Where are the symfony/polyfill-intl-grapheme docs?

The official documentation of the "Symfony polyfill-intl-grapheme" package can be found in the main Polyfill README at GitHub. This provides additional information and guides on how to use the library correctly in your PHP applications.