{"id":15525353,"url":"https://github.com/ghostwriter/case-converter","last_synced_at":"2025-04-23T08:50:18.776Z","repository":{"id":221885983,"uuid":"755603630","full_name":"ghostwriter/case-converter","owner":"ghostwriter","description":"Convert strings from and to AdaCase, CamelCase, CobolCase, KebabCase, Lowercase, MacroCase, PascalCase, SentenceCase, SnakeCase, TitleCase, TrainCase, and Uppercase","archived":false,"fork":false,"pushed_at":"2025-04-22T00:43:25.000Z","size":406,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"2.1.x","last_synced_at":"2025-04-22T01:29:04.997Z","etag":null,"topics":["ada-case","camel-case","case-converter","cobol-case","ghostwriter","kebab-case","lower-case","macro-case","pascal-case","sentence-case","snake-case","title-case","train-case","upper-case"],"latest_commit_sha":null,"homepage":"https://github.com/ghostwriter/case-converter","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ghostwriter.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":["ghostwriter"]}},"created_at":"2024-02-10T17:59:53.000Z","updated_at":"2025-04-22T00:43:27.000Z","dependencies_parsed_at":"2024-04-03T21:26:06.394Z","dependency_job_id":"dbcff482-2daf-485d-aeb5-3a49f8fe2b43","html_url":"https://github.com/ghostwriter/case-converter","commit_stats":null,"previous_names":["ghostwriter/case-converter"],"tags_count":3,"template":false,"template_full_name":"ghostwriter/wip","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghostwriter%2Fcase-converter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghostwriter%2Fcase-converter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghostwriter%2Fcase-converter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghostwriter%2Fcase-converter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ghostwriter","download_url":"https://codeload.github.com/ghostwriter/case-converter/tar.gz/refs/heads/2.1.x","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250402895,"owners_count":21424770,"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":["ada-case","camel-case","case-converter","cobol-case","ghostwriter","kebab-case","lower-case","macro-case","pascal-case","sentence-case","snake-case","title-case","train-case","upper-case"],"created_at":"2024-10-02T10:57:00.882Z","updated_at":"2025-04-23T08:50:18.770Z","avatar_url":"https://github.com/ghostwriter.png","language":"PHP","funding_links":["https://github.com/sponsors/ghostwriter"],"categories":[],"sub_categories":[],"readme":"# Case Converter\n\n[![GitHub Sponsors](https://img.shields.io/github/sponsors/ghostwriter?label=Sponsor+@ghostwriter/case-converter\u0026logo=GitHub+Sponsors)](https://github.com/sponsors/ghostwriter)\n[![Automation](https://github.com/ghostwriter/case-converter/actions/workflows/automation.yml/badge.svg)](https://github.com/ghostwriter/case-converter/actions/workflows/automation.yml)\n[![Supported PHP Version](https://badgen.net/packagist/php/ghostwriter/case-converter?color=8892bf)](https://www.php.net/supported-versions)\n[![Downloads](https://badgen.net/packagist/dt/ghostwriter/case-converter?color=blue)](https://packagist.org/packages/ghostwriter/case-converter)\n\nConvert strings from and to `AdaCase`, `CamelCase`, `CobolCase`, `KebabCase`, `Lowercase`, `MacroCase`, `PascalCase`, `SentenceCase`, `SnakeCase`, `TitleCase`, `TrainCase`, and `Uppercase`.\n\n## Installation\n\nYou can install the package via composer:\n\n``` bash\ncomposer require ghostwriter/case-converter\n```\n\n### Star ⭐️ this repo if you find it useful\n\nYou can also star (🌟) this repo to find it easier later.\n\n## Usage\n\n```php\nuse GhostWriter\\CaseConverter\\CaseConverter;\n\n$string = 'The quick, brown fox jumps over the lazy dog.';\n\n// $caseConverter = new CaseConverter();\n// or\n$caseConverter = CaseConverter::new();\n\n// The_Quick_Brown_Fox_Jumps_Over_The_Lazy_Dog\n$caseConverter-\u003etoAdaCase($string); \n\n// theQuickBrownFoxJumpsOverTheLazyDog\n$caseConverter-\u003etoCamelCase($string);\n\n// THE-QUICK-BROWN-FOX-JUMPS-OVER-THE-LAZY-DOG\n$caseConverter-\u003etoCobolCase($string);\n\n// the.quick.brown.fox.jumps.over.the.lazy.dog\n$caseConverter-\u003etoDotCase($string);\n\n// the-quick-brown-fox-jumps-over-the-lazy-dog\n$caseConverter-\u003etoKebabCase($string);\n\n// the quick brown fox jumps over the lazy dog\n$caseConverter-\u003etoLowerCase($string);\n\n// THE_QUICK_BROWN_FOX_JUMPS_OVER_THE_LAZY_DOG\n$caseConverter-\u003etoMacroCase($string);\n\n// TheQuickBrownFoxJumpsOverTheLazyDog\n$caseConverter-\u003etoPascalCase($string);\n\n// The quick brown fox jumps over the lazy dog\n$caseConverter-\u003etoSentenceCase($string);\n\n// the_quick_brown_fox_jumps_over_the_lazy_dog\n$caseConverter-\u003etoSnakeCase($string);\n\n// The Quick Brown Fox Jumps Over The Lazy Dog\n$caseConverter-\u003etoTitleCase($string);\n\n// The-Quick-Brown-Fox-Jumps-Over-The-Lazy-Dog\n$caseConverter-\u003etoTrainCase($string);\n\n// THE QUICK BROWN FOX JUMPS OVER THE LAZY DOG\n$caseConverter-\u003etoUpperCase($string);\n```\n\n### Credits\n\n- [Nathanael Esayeas](https://github.com/ghostwriter)\n- [All Contributors](https://github.com/ghostwriter/case-converter/contributors)\n\n### Changelog\n\nPlease see [CHANGELOG.md](./CHANGELOG.md) for more information on what has changed recently.\n\n### License\n\nPlease see [LICENSE](./LICENSE) for more information on the license that applies to this project.\n\n### Security\n\nPlease see [SECURITY.md](./SECURITY.md) for more information on security disclosure process.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fghostwriter%2Fcase-converter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fghostwriter%2Fcase-converter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fghostwriter%2Fcase-converter/lists"}