{"id":13617435,"url":"https://github.com/sensiolabs/melody","last_synced_at":"2025-04-14T06:33:44.663Z","repository":{"id":24212996,"uuid":"27604816","full_name":"sensiolabs/melody","owner":"sensiolabs","description":"One-file composer scripts","archived":true,"fork":false,"pushed_at":"2019-06-01T06:26:12.000Z","size":166,"stargazers_count":395,"open_issues_count":0,"forks_count":26,"subscribers_count":18,"default_branch":"master","last_synced_at":"2025-04-11T23:45:39.288Z","etag":null,"topics":["composer-scripts","melody","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/sensiolabs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-12-05T18:37:58.000Z","updated_at":"2025-01-29T19:32:23.000Z","dependencies_parsed_at":"2022-09-11T22:12:31.421Z","dependency_job_id":null,"html_url":"https://github.com/sensiolabs/melody","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sensiolabs%2Fmelody","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sensiolabs%2Fmelody/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sensiolabs%2Fmelody/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sensiolabs%2Fmelody/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sensiolabs","download_url":"https://codeload.github.com/sensiolabs/melody/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248835013,"owners_count":21169137,"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":["composer-scripts","melody","php"],"created_at":"2024-08-01T20:01:41.655Z","updated_at":"2025-04-14T06:33:44.353Z","avatar_url":"https://github.com/sensiolabs.png","language":"PHP","funding_links":[],"categories":["PHP","Scripts"],"sub_categories":["Support"],"readme":"Melody - One-file composer scripts\n==================================\n\nCreate a file named `test.php`:\n\n```php\n\u003c?php\n\u003c\u003c\u003cCONFIG\npackages:\n    - \"symfony/finder: ~2.8\"\nCONFIG;\n\n$finder = Symfony\\Component\\Finder\\Finder::create()\n    -\u003ein(__DIR__)\n    -\u003efiles()\n    -\u003ename('*.php')\n;\n\nforeach ($finder as $file) {\n    echo $file, \"\\n\";\n}\n```\n\nAnd simply run it:\n\n```bash\n$ melody run test.php\n```\n\n![demo](http://melody.sensiolabs.org/img/melody.gif)\n\nMore Information\n----------------\n\nRead the [documentation](http://melody.sensiolabs.org) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsensiolabs%2Fmelody","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsensiolabs%2Fmelody","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsensiolabs%2Fmelody/lists"}