davidgomezgam / pluralizador
Singularize and Pluralize Spanish words.
Installs: 1 703
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 1
Open Issues: 1
Requires
- php: >=5.5
- danielstjules/stringy: ~1.8
This package is not auto-updated.
Last update: 2017-12-24 09:48:50 UTC
README
Singularize and Pluralize Spanish words.
Usage ( without Eloquent by Laravel )
- Singular
# Singular
> use Pluralizador\Infector as Str;
> $singularFromPlural = Str::singular("jueces");
> echo $singularFromPlural; // Output: juez
- Plural
# Plural
> use Pluralizador\Support\Str;
> $pluralFromSingular = Str::plural("juez");
> echo $pluralFromSingular; // Output: jueces
Usage with Eloquent
- You can use this library with Eloquent by Laravel. For more info: https://github.com/davidgomezgam/pluralizador-eloquent
Contact
David Gómez
License
Pluralizador is available under the MIT license. See the LICENSE file for more info.