{"id":15404645,"url":"https://github.com/k1low/github-script-php","last_synced_at":"2026-04-29T09:02:27.519Z","repository":{"id":66825401,"uuid":"472943173","full_name":"k1LoW/github-script-php","owner":"k1LoW","description":"Write workflows scripting the GitHub API in PHP","archived":false,"fork":false,"pushed_at":"2022-03-25T08:21:46.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-25T22:02:41.595Z","etag":null,"topics":["actions","github-api","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/k1LoW.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},"funding":{"github":"k1LoW","patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2022-03-22T21:28:00.000Z","updated_at":"2022-04-09T00:07:26.000Z","dependencies_parsed_at":"2023-03-16T12:15:40.553Z","dependency_job_id":null,"html_url":"https://github.com/k1LoW/github-script-php","commit_stats":{"total_commits":16,"total_committers":1,"mean_commits":16.0,"dds":0.0,"last_synced_commit":"7f4a95cd0c34c8a558edb4155b4fc285f8d02449"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/k1LoW/github-script-php","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k1LoW%2Fgithub-script-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k1LoW%2Fgithub-script-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k1LoW%2Fgithub-script-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k1LoW%2Fgithub-script-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/k1LoW","download_url":"https://codeload.github.com/k1LoW/github-script-php/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k1LoW%2Fgithub-script-php/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32418173,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T06:29:02.080Z","status":"ssl_error","status_checked_at":"2026-04-29T06:29:00.631Z","response_time":110,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["actions","github-api","php"],"created_at":"2024-10-01T16:13:56.055Z","updated_at":"2026-04-29T09:02:27.480Z","avatar_url":"https://github.com/k1LoW.png","language":"PHP","funding_links":["https://github.com/sponsors/k1LoW"],"categories":[],"sub_categories":[],"readme":"# github-script-php\n\nThis action makes it easy to write PHP scripts in the workflow, just like [actions/github-script](https://github.com/actions/github-script).\n\nIn order to use this action, a `script` input is provided. The value of that input should be the body of an function call. The following arguments will be provided:\n\n- `$github` A pre-authenticated [knplabs/github-api](https://github.com/KnpLabs/php-github-api) client\n- `$context` An OpenStruct instance containing the context of the workflow run\n\n## Examples\n\n### Print the available attributes of context\n\nref: [actions/github-script example](https://github.com/actions/github-script#print-the-available-attributes-of-context)\n\n``` yaml\n- name: View context attributes\n  uses: k1LoW/github-script-php@v0\n  with:\n    script: var_dump($context);\n```\n\n### Comment on an issue\n\nref: [actions/github-script example](https://github.com/actions/github-script#comment-on-an-issue)\n\n``` yaml\non:\n  issues:\n    types: [opened]\n\njobs:\n  comment:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: k1LoW/github-script-php@v0\n        with:\n          script: |\n            $owner = $context-\u003erepo-\u003eowner;\n            $repo = $context-\u003erepo-\u003erepo;\n            $number = $context-\u003eissue-\u003enumber;\n            $comment = '👋 Thanks for reporting!';\n            $github-\u003eapi('issue')-\u003ecomments()-\u003ecreate($owner, $repo, $number, array('body' =\u003e $comment));\n```\n\n## References\n\n- [actions/github-script](https://github.com/actions/github-script): Write workflows scripting the GitHub API in JavaScript\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fk1low%2Fgithub-script-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fk1low%2Fgithub-script-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fk1low%2Fgithub-script-php/lists"}