{"id":47718702,"url":"https://github.com/eufony/inflector","last_synced_at":"2026-04-02T19:12:29.911Z","repository":{"id":56979779,"uuid":"432702054","full_name":"eufony/inflector","owner":"eufony","description":"Common interfaces for inflection libraries.","archived":false,"fork":false,"pushed_at":"2023-02-08T07:54:43.000Z","size":38,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"v2.x","last_synced_at":"2025-05-20T22:37:25.019Z","etag":null,"topics":["eufony","inflection","inflector","php"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eufony.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-11-28T12:09:00.000Z","updated_at":"2023-02-05T16:48:37.000Z","dependencies_parsed_at":"2023-02-19T11:00:29.770Z","dependency_job_id":null,"html_url":"https://github.com/eufony/inflector","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/eufony/inflector","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eufony%2Finflector","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eufony%2Finflector/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eufony%2Finflector/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eufony%2Finflector/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eufony","download_url":"https://codeload.github.com/eufony/inflector/tar.gz/refs/heads/v2.x","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eufony%2Finflector/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31314123,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-02T12:59:32.332Z","status":"ssl_error","status_checked_at":"2026-04-02T12:54:48.875Z","response_time":89,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["eufony","inflection","inflector","php"],"created_at":"2026-04-02T19:12:29.346Z","updated_at":"2026-04-02T19:12:29.904Z","avatar_url":"https://github.com/eufony.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003eThe Eufony Inflector Package\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://packagist.org/packages/eufony/inflector\"\u003e\n        \u003cimg alt=\"Packagist Downloads\" src=\"https://img.shields.io/packagist/dt/eufony/inflector?label=Packagist%20Downloads\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://github.com/eufony/inflector\"\u003e\n        \u003cimg alt=\"GitHub Stars\" src=\"https://img.shields.io/github/stars/eufony/inflector?label=GitHub%20Stars\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://github.com/eufony/inflector/issues\"\u003e\n        \u003cimg alt=\"Issues\" src=\"https://img.shields.io/github/issues/eufony/inflector/open?label=Issues\"\u003e\n    \u003c/a\u003e\n    \u003cbr\u003e\n    \u003ca href=\"https://github.com/eufony/inflector#license\"\u003e\n        \u003cimg alt=\"License\" src=\"https://img.shields.io/github/license/eufony/inflector?label=License\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://github.com/eufony/inflector#contributing\"\u003e\n        \u003cimg alt=\"Community Built\" src=\"https://img.shields.io/badge/Made%20with-%E2%9D%A4-red\"\u003e\n    \u003c/a\u003e\n\u003c/p\u003e\n\n*eufony/inflector provides a standardized interface for linguistic inflection libraries.*\n\n*eufony/inflector* is a PHP library that aims to improve interoperability between linguistic inflection implementations.\nIt provides a common interface for changing the capitalization of strings, as well as the pluralization and\nsingularization of words.\n\nInterested? [Here's how to get started.](#getting-started)\n\n## Getting started\n\n### Installation\n\n*eufony/inflector* is released as a [Packagist](https://packagist.org/) package and can be easily installed\nvia [Composer](https://getcomposer.org/) with:\n\n    composer require \"eufony/inflector\"\n\n### Basic Usage\n\n*eufony/inflector* provides `InflectorInterface`, which defines the following methods:\n\n```php\n// Convert between `PascalCase`, `snake_case`, and `camelCase`.\necho $inflector-\u003etoPascalCase($string);\necho $inflector-\u003etoSnakeCase($string);\necho $inflector-\u003etoCamelCase($string);\n\n// Convert between pluralized and singularized words.\necho $inflector-\u003epluralize($string);\necho $inflector-\u003esingularize($string);\n```\n\nIt also provides a couple of pseudo-implementations to get you started:\n\n```php\n// A fake implementation based on the Null Object Pattern\n// that returns any string it is given without any modifications.\n$inflector = new NullInflector();\n\n// A wrapper class to manually define exceptions to the return values of another implementation.\n$inflector = new ExceptionAdapter($inflector, cases: [[\"id\", \"id\", \"ID\"]], words: [\"moose\", \"meese\"]);\n\n// A wrapper class around the inflector implementation by the Doctrine project.\n$inflector = new DoctrineInflector();\n```\n\n## Contributing\n\nFound a bug or a missing feature? You can report it over at\nthe [issue tracker](https://github.com/eufony/inflector/issues).\n\n## License\n\nThis program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public\nLicense as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later\nversion.\n\nThis program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied\nwarranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more\ndetails.\n\nYou should have received a copy of the GNU Lesser General Public License along with this program. If not,\nsee \u003chttps://www.gnu.org/licenses/\u003e.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feufony%2Finflector","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feufony%2Finflector","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feufony%2Finflector/lists"}