{"id":41214972,"url":"https://github.com/phore/phore-system","last_synced_at":"2026-01-22T23:58:48.686Z","repository":{"id":57039231,"uuid":"141443197","full_name":"phore/phore-system","owner":"phore","description":"Wrappers for exec","archived":false,"fork":false,"pushed_at":"2024-05-09T18:23:15.000Z","size":25,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-08-11T08:33:23.861Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://infracamp.org/project/phore/","language":"Shell","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/phore.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-07-18T14:06:05.000Z","updated_at":"2022-10-21T23:12:58.000Z","dependencies_parsed_at":"2022-08-24T00:51:20.258Z","dependency_job_id":null,"html_url":"https://github.com/phore/phore-system","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/phore/phore-system","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phore%2Fphore-system","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phore%2Fphore-system/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phore%2Fphore-system/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phore%2Fphore-system/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phore","download_url":"https://codeload.github.com/phore/phore-system/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phore%2Fphore-system/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28675282,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-22T20:48:19.482Z","status":"ssl_error","status_checked_at":"2026-01-22T20:48:14.968Z","response_time":144,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":[],"created_at":"2026-01-22T23:58:45.975Z","updated_at":"2026-01-22T23:58:48.677Z","avatar_url":"https://github.com/phore.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Phore System :: Wrapper to exec()\n\nThis documentation is written along the guidelines of educational grade documentation discussed in the \n[infracamp](https://github.com/infracamp/infracamp/blob/master/DOCUMENTATION_GUIDE.md) project. Please ask and\ndocument issues.\n\n## Goals\n\n- Secure and easy-to-use wrapper around `exec()`\n\n## Quickstart\n\n**phore_exec**\n```php\n$return = phore_exec(\"ls -l :path\", [\"path\"=\u003e\"some Path \"])\necho $return;\n```\n\n**phore_proc**\n\n- Read STDOUT/STDERR:\n\n```php\n$result = phore_proc(\"ls -l *\", [\"/some/path\"])-\u003ewait();\necho \"\\nStderr: \" . $result-\u003egetSTDERRContents(); \necho \"\\nStdOut: \" . $result-\u003egetSTDOUTContents();\n```\n\n- Read stream\n\n```php\n$result = phore_proc(\"ls -l *\", [\"/some/path\"])\n    -\u003ewatch(1, function ($data, $len, PhoreProc $proc) use () {\n        if ($data === null) {\n            echo \"End of stream\";\n            return;\n        }\n        echo \"Steam in: $data\";\n    })-\u003ewait();\necho \"\\nStderr: \" . $result-\u003egetSTDERRContents(); \n```\n\n\n\n\n## Installation\n\nWe suggest using [composer](http://getcomposer.com):\n\n```\ncomposer require phore/system\n``` \n\n                            ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphore%2Fphore-system","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphore%2Fphore-system","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphore%2Fphore-system/lists"}