{"id":21467426,"url":"https://github.com/elusivecodes/fyreinflector","last_synced_at":"2025-07-15T05:31:26.582Z","repository":{"id":62508428,"uuid":"420074222","full_name":"elusivecodes/FyreInflector","owner":"elusivecodes","description":"FyreInflector is a free, open-source inflection library for PHP.","archived":false,"fork":false,"pushed_at":"2024-11-01T04:07:22.000Z","size":108,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-11-01T05:17:24.652Z","etag":null,"topics":["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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/elusivecodes.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-10-22T11:32:46.000Z","updated_at":"2024-11-01T04:06:25.000Z","dependencies_parsed_at":"2024-11-01T05:17:13.489Z","dependency_job_id":"d6b0f6ca-dfcf-4ce3-ab12-7dad5163674b","html_url":"https://github.com/elusivecodes/FyreInflector","commit_stats":null,"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elusivecodes%2FFyreInflector","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elusivecodes%2FFyreInflector/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elusivecodes%2FFyreInflector/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elusivecodes%2FFyreInflector/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/elusivecodes","download_url":"https://codeload.github.com/elusivecodes/FyreInflector/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":226017498,"owners_count":17560522,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["inflection","inflector","php"],"created_at":"2024-11-23T08:17:57.874Z","updated_at":"2024-11-23T08:17:58.702Z","avatar_url":"https://github.com/elusivecodes.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FyreInflector\r\n\r\n**FyreInflector** is a free, open-source inflection library for *PHP*.\r\n\r\n\r\n## Table Of Contents\r\n- [Installation](#installation)\r\n- [Basic Usage](#basic-usage)\r\n- [Methods](#methods)\r\n\r\n\r\n\r\n## Installation\r\n\r\n**Using Composer**\r\n\r\n```\r\ncomposer require fyre/inflector\r\n```\r\n\r\nIn PHP:\r\n\r\n```php\r\nuse Fyre\\Utility\\Inflector;\r\n```\r\n\r\n\r\n## Basic Usage\r\n\r\n```php\r\n$inflector = new Inflector();\r\n```\r\n\r\n\r\n## Methods\r\n\r\n**Camelize**\r\n\r\nConvert a delimited string into CamelCase.\r\n\r\n- `$string` is the input string.\r\n- `$delimiter` is a string representing the delimiter, and will default to \"*_*\".\r\n\r\n```php\r\n$camelized = $inflector-\u003ecamelize($string, $delimiter);\r\n```\r\n\r\n**Classify**\r\n\r\nConvert a table_name to a singular ClassName.\r\n\r\n- `$tableName` is a string representing the table name.\r\n\r\n```php\r\n$className = $inflector-\u003eclassify($tableName);\r\n```\r\n\r\n**Dasherize**\r\n\r\nConvert a string into kebab-case.\r\n\r\n- `$string` is the input string.\r\n\r\n```php\r\n$dasherized = $inflector-\u003edasherize($string);\r\n```\r\n\r\n**Humanize**\r\n\r\nConvert a delimited string into Human Readable Form.\r\n\r\n- `$string` is the input string.\r\n- `$delimiter` is a string representing the delimiter, and will default to \"*_*\".\r\n\r\n```php\r\n$title = $inflector-\u003ehumanize($string, $delimiter);\r\n```\r\n\r\n**Pluralize**\r\n\r\nGet the plural form of a word.\r\n\r\n- `$string` is the input string.\r\n\r\n```php\r\n$plural = $inflector-\u003epluralize($string);\r\n```\r\n\r\n**Rules**\r\n\r\nAdd inflection rules.\r\n\r\n- `$type` is a string representing the inflection type, and must be one of either \"*plural*\", \"*singular*\", \"*irregular*\" or \"*uncountable*\".\r\n- `$rules` is an array containing the rules to add.\r\n\r\n```php\r\n$inflector-\u003erules($type, $rules);\r\n```\r\n\r\n**Singularize**\r\n\r\nGet the singular form of a word.\r\n\r\n- `$string` is the input string.\r\n\r\n```php\r\n$singular = $inflector-\u003esingularize($string);\r\n```\r\n\r\n**Tableize**\r\n\r\nConvert a ClassName to a pluralized table_name.\r\n\r\n- `$className` is a string representing the class name.\r\n\r\n```php\r\n$tableName = $inflector-\u003etableize($className);\r\n```\r\n\r\n**Underscore**\r\n\r\nConvert a string into snake_case.\r\n\r\n- `$string` is the input string.\r\n\r\n```php\r\n$underscored = $inflector-\u003eunderscore($string);\r\n```\r\n\r\n**Variable**\r\n\r\nConvert a delimited string into camelBack.\r\n\r\n- `$string` is the input string.\r\n\r\n```php\r\n$variable = $inflector-\u003evariable($string);\r\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felusivecodes%2Ffyreinflector","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Felusivecodes%2Ffyreinflector","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felusivecodes%2Ffyreinflector/lists"}