Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
This package has been abandoned. Use EnglishInflector from the String component instead.
Generated on May 16, 2024 via composer

symfony/inflector v5.4.21

Converts words between their singular and plural forms (English only)
Package summary
Share
1
issue
1
high severity
meta
1
1
license
8
MIT
Package created
31 Mar 2016
Version published
14 Feb 2023
Maintainers
1
Total deps
8
Direct deps
3
License
MIT

Issues

1

1 high severity issue

high
via: symfony/inflector@v5.4.21
Collapse
Expand

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
8 Packages, Including:
symfony/deprecation-contracts@v3.5.0
symfony/inflector@v5.4.21
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@v6.4.7
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

3
All Dependencies CSV
β“˜ This is a list of symfony/inflector 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
symfony/deprecation-contractsv3.5.0-MIT
prod
symfony/polyfill-php80v1.29.0-MIT
prod
symfony/stringv6.4.7-MIT
prod

Visualizations

Frequently Asked Questions

What does symfony/inflector do?

The Symfony/Inflector package is a powerful tool that converts words between their singular and plural forms, exclusively for the English language. It provides developers an easy way to manage the variations in terms used in their codes.

How do you use symfony/inflector?

In order to use the Symfony/Inflector, you'd typically first need to install it via Composer using the command composer require symfony/inflector. After successful installation, you can incorporate it into your project with a standard PHP require statement like require 'vendor/autoload.php; Within your code, you can utilize the functionality of the Inflector as follows:

use Symfony\Component\String\Inflector\EnglishInflector;

$inflector = new EnglishInflector();

$pluralizedWords = $inflector->pluralize('car');

In the example code above, you first import the EnglishInflector class from the Symfony Inflector component. Next, an instance of the EnglishInflector class is created and assigned to the variable $inflector. Finally, the pluralize function of the EnglishInflector instance is invoked and passed the word 'car' to exemplify the Inflector in action. This would return an array with 'cars' as its value.

Please note that this package is deprecated since Symfony version 5.1. You're recommended to use the String component EnglishInflector instead.

Where are the symfony/inflector docs?

The Symfony/Inflector doesn't have its own dedicated docs. For general guidance on Symfony component usage and contributing to the project, you can refer to the Symfony official documentation. Should you come across any issues with the Inflector or wish to propose improvements, make sure to report them or send Pull Requests in the main Symfony repository.