{"id":18610560,"url":"https://github.com/ixnode/php-naming-conventions","last_synced_at":"2026-03-17T11:35:16.884Z","repository":{"id":64938165,"uuid":"579720551","full_name":"ixnode/php-naming-conventions","owner":"ixnode","description":"PHP Naming Conventions","archived":false,"fork":false,"pushed_at":"2024-07-18T20:21:36.000Z","size":55,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-30T19:26:29.366Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/ixnode.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2022-12-18T17:15:05.000Z","updated_at":"2024-07-18T20:21:36.000Z","dependencies_parsed_at":"2024-11-07T03:21:12.479Z","dependency_job_id":null,"html_url":"https://github.com/ixnode/php-naming-conventions","commit_stats":{"total_commits":4,"total_committers":1,"mean_commits":4.0,"dds":0.0,"last_synced_commit":"b19c434b20786c5ef786002bb9f41210cbf79b8b"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/ixnode/php-naming-conventions","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ixnode%2Fphp-naming-conventions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ixnode%2Fphp-naming-conventions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ixnode%2Fphp-naming-conventions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ixnode%2Fphp-naming-conventions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ixnode","download_url":"https://codeload.github.com/ixnode/php-naming-conventions/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ixnode%2Fphp-naming-conventions/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30622774,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-17T11:26:08.186Z","status":"ssl_error","status_checked_at":"2026-03-17T11:24:37.311Z","response_time":56,"last_error":"SSL_read: 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":[],"created_at":"2024-11-07T03:11:03.622Z","updated_at":"2026-03-17T11:35:16.845Z","avatar_url":"https://github.com/ixnode.png","language":"PHP","readme":"# PHP Naming Conventions\n\n[![Release](https://img.shields.io/github/v/release/ixnode/php-naming-conventions)](https://github.com/ixnode/php-naming-conventions/releases)\n[![](https://img.shields.io/github/release-date/ixnode/php-naming-conventions)](https://github.com/ixnode/php-naming-conventions/releases)\n![](https://img.shields.io/github/repo-size/ixnode/php-naming-conventions.svg)\n[![PHP](https://img.shields.io/badge/PHP-^8.2-777bb3.svg?logo=php\u0026logoColor=white\u0026labelColor=555555\u0026style=flat)](https://www.php.net/supported-versions.php)\n[![PHPStan](https://img.shields.io/badge/PHPStan-Level%20Max-777bb3.svg?style=flat)](https://phpstan.org/user-guide/rule-levels)\n[![PHPUnit](https://img.shields.io/badge/PHPUnit-Unit%20Tests-6b9bd2.svg?style=flat)](https://phpunit.de)\n[![PHPCS](https://img.shields.io/badge/PHPCS-PSR12-416d4e.svg?style=flat)](https://www.php-fig.org/psr/psr-12/)\n[![PHPMD](https://img.shields.io/badge/PHPMD-ALL-364a83.svg?style=flat)](https://github.com/phpmd/phpmd)\n[![Rector - Instant Upgrades and Automated Refactoring](https://img.shields.io/badge/Rector-PHP%208.2-73a165.svg?style=flat)](https://github.com/rectorphp/rector)\n[![LICENSE](https://img.shields.io/github/license/ixnode/php-api-version-bundle)](https://github.com/ixnode/php-api-version-bundle/blob/master/LICENSE)\n\n\u003e This library translate a given string or convention into another convention.\n\u003e The following conventions are supported:\n\n| Convention     | Representation         |\n|----------------|------------------------|\n| `raw`          | A raw string           |\n| `words`        | ['a', 'raw', 'string'] |\n| `title`        | A Raw String           |\n| `pascalCase`   | ARawString             |\n| `camelCase`    | aRawString             |\n| `under_scored` | a_raw_string           |\n| `config`       | a.raw.string           |\n| `constant`     | A_RAW_STRING           |\n\n## Installation\n\n```bash\ncomposer require ixnode/php-naming-conventions\n```\n\n```bash\nvendor/bin/php-naming-conventions -V\n```\n\n```bash\nphp-naming-conventions 0.1.0 (12-18-2022 01:17:26) - Björn Hempel \u003cbjoern@hempel.li\u003e\n```\n\n## Usage\n\n```php\nuse Ixnode\\PhpNamingConventions\\NamingConventions;\n```\n\n```php\n$rawString = 'Group Private';\n\nprint (new NamingConventions($rawString))-\u003egetTitle();\n// (string) Group Private\n\nprint (new NamingConventions($rawString))-\u003egetPascalCase();\n// (string) GroupPrivate\n\nprint (new NamingConventions($rawString))-\u003egetCamelCase();\n// (string) groupPrivate\n\nprint (new NamingConventions($rawString))-\u003egetUnderscored();\n// (string) group_private\n\nprint (new NamingConventions($rawString))-\u003egetConstant();\n// (string) GROUP_PRIVATE\n\nprint (new NamingConventions($rawString))-\u003egetConfig();\n// (string) group.private\n\nprint (new NamingConventions($rawString))-\u003egetSeparated();\n// (string) group-private\n\nprint (new NamingConventions($rawString))-\u003egetRaw();\n// (string) Group Private\n\nprint (new NamingConventions($rawString))-\u003egetWords();\n// (array) [[0] =\u003e group, [1] =\u003e private]\n```\n\n## Development\n\n```bash\ngit clone git@github.com:ixnode/php-naming-conventions.git \u0026\u0026 cd php-naming-conventions\n```\n\n```bash\ncomposer install\n```\n\n```bash\ncomposer test\n```\n\n## License\n\nThis tool is licensed under the MIT License - see the [LICENSE](/LICENSE) file for details","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fixnode%2Fphp-naming-conventions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fixnode%2Fphp-naming-conventions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fixnode%2Fphp-naming-conventions/lists"}