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 30, 2024 via composer

doctrine/inflector 2.0.8

PHP Doctrine Inflector is a small library that can perform string manipulations with regard to upper/lowercase and singular/plural forms of words.
Package summary
Share
0
issues
1
license
1
MIT
Package created
10 Jan 2013
Version published
16 Jun 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:
doctrine/inflector@2.0.8
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 doctrine/inflector 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities

Visualizations

Frequently Asked Questions

What does doctrine/inflector do?

The Doctrine Inflector is a PHP library designed for string manipulation. This package handles transformation of words' case to either uppercase or lowercase and it is especially powerful in converting words between their singular and plural forms, making it an invaluable tool for handling word-based data more efficiently in PHP applications. This capability is commonly required when dealing with database table names and class names, among other programming use-cases.

How do you use doctrine/inflector?

Using Doctrine Inflector in your PHP application is straightforward. Assuming you have composer installed, the first step is to include it in your project by running composer require doctrine/inflector. The library provides a simple API for transforming text:

use Doctrine\Inflector\InflectorFactory;

$inflector = InflectorFactory::create()->build();

echo $inflector->tableize('MyClassName');      // outputs "my_class_name"
echo $inflector->classify('my_class_name');    // outputs "MyClassName"
echo $inflector->pluralize('property');        // outputs "properties"
echo $inflector->singularize('properties');    // outputs "property"

In these examples, the tableize method converts 'MyClassName' into 'my_class_name' and the classify method does the opposite. The pluralize and singularize methods transform 'property' to 'properties' and 'properties' to 'property' respectively.

Where are the doctrine/inflector docs?

The rich documentation for Doctrine Inflector is included in the README file of the package's GitHub repository. This should guide users in different use-cases and scenarios of utilizing the package. No other official external documentation sites exist for this package. For further information, insights, and use-cases you can check the repository and explore the code itself, as well as engage with the community of contributors and users on the GitHub page at https://github.com/doctrine/inflector.