{"id":15755034,"url":"https://github.com/sweetchuck/robo-stringy","last_synced_at":"2025-09-03T01:40:22.412Z","repository":{"id":32345074,"uuid":"132283893","full_name":"Sweetchuck/robo-stringy","owner":"Sweetchuck","description":null,"archived":false,"fork":false,"pushed_at":"2024-11-06T19:55:52.000Z","size":212,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"2.x","last_synced_at":"2025-08-29T23:52:29.650Z","etag":null,"topics":["robo-task","string-manipulation","stringy"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Sweetchuck.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null}},"created_at":"2018-05-05T20:56:54.000Z","updated_at":"2022-02-04T14:15:24.000Z","dependencies_parsed_at":"2024-10-25T06:48:21.543Z","dependency_job_id":"9cf5430d-8c8b-4a15-a3a6-0ce546b9b9b8","html_url":"https://github.com/Sweetchuck/robo-stringy","commit_stats":{"total_commits":14,"total_committers":2,"mean_commits":7.0,"dds":0.1428571428571429,"last_synced_commit":"e994de8d10e3f9179a6747f3a401deb8f66752bf"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/Sweetchuck/robo-stringy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sweetchuck%2Frobo-stringy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sweetchuck%2Frobo-stringy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sweetchuck%2Frobo-stringy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sweetchuck%2Frobo-stringy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Sweetchuck","download_url":"https://codeload.github.com/Sweetchuck/robo-stringy/tar.gz/refs/heads/2.x","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sweetchuck%2Frobo-stringy/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273377148,"owners_count":25094526,"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","status":"online","status_checked_at":"2025-09-02T02:00:09.530Z","response_time":77,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["robo-task","string-manipulation","stringy"],"created_at":"2024-10-04T08:06:37.359Z","updated_at":"2025-09-03T01:40:22.383Z","avatar_url":"https://github.com/Sweetchuck.png","language":"PHP","readme":"# Robo Stringy\n\n[![CircleCI](https://circleci.com/gh/Sweetchuck/robo-stringy/tree/2.x.svg?style=svg)](https://circleci.com/gh/Sweetchuck/robo-stringy/?branch=2.x)\n[![codecov](https://codecov.io/gh/Sweetchuck/robo-stringy/branch/2.x/graph/badge.svg?token=HSF16OGPyr)](https://app.codecov.io/gh/Sweetchuck/robo-stringy/branch/2.x)\n\nThis Robo task is useful when you need to do string manipulation in a\n`\\Robo\\State\\Data`.\n\n\n## Install\n\n`composer require sweetchuck/robo-stringy`\n\n\n## Task - taskStringy()\n\n```php\n\u003c?php\n\nclass RoboFile extends \\Robo\\Tasks\n{\n    use \\Sweetchuck\\Robo\\Stringy\\StringyTaskLoader;\n    \n    /**\n     * @command stringy:simple\n     */\n    public function cmdStringySimple(string $text = 'Hello', string $suffix = 'World')\n    {\n        return $this\n            -\u003ecollectionBuilder()\n            -\u003eaddTask(\n                $this\n                    -\u003etaskStringy()\n                    -\u003esetString($text)\n                    -\u003ecallIsUpperCase()\n                    -\u003ecallAppend(\" $suffix\")\n                    -\u003ecallUnderscored()\n            )\n            -\u003eaddCode(function (\\Robo\\State\\Data $data): int {\n                $output = $this-\u003eoutput();\n                $output-\u003ewriteln('Is upper case: ' . var_export($data['stringy.isUpperCase'], true));\n                $output-\u003ewriteln(\"Result: {$data['stringy']}\");\n\n                return 0;\n            });\n    }\n}\n```\n\nRun `vendor/bin/robo stringy:simple`  \nOutput:\n\u003e \u003cpre\u003eIs upper case: false\n\u003e Result: hello_world\u003c/pre\u003e\n\nRun `vendor/bin/robo stringy:simple FOO`  \nOutput:\n\u003e \u003cpre\u003eIs upper case: true\n\u003e Result: f_o_o_world\u003c/pre\u003e\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsweetchuck%2Frobo-stringy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsweetchuck%2Frobo-stringy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsweetchuck%2Frobo-stringy/lists"}