{"id":21394198,"url":"https://github.com/mikeshiyan/process-builder","last_synced_at":"2026-02-21T14:33:08.649Z","repository":{"id":57049648,"uuid":"192203785","full_name":"mikeshiyan/process-builder","owner":"mikeshiyan","description":"Builds command lines for symfony/process using magic methods.","archived":false,"fork":false,"pushed_at":"2025-07-18T12:09:16.000Z","size":22,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-27T22:54:52.904Z","etag":null,"topics":["cmd","composer","exec","oop","php","process","shell"],"latest_commit_sha":null,"homepage":null,"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/mikeshiyan.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-06-16T14:57:49.000Z","updated_at":"2025-07-18T12:08:31.000Z","dependencies_parsed_at":"2025-01-23T01:42:15.624Z","dependency_job_id":null,"html_url":"https://github.com/mikeshiyan/process-builder","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/mikeshiyan/process-builder","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikeshiyan%2Fprocess-builder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikeshiyan%2Fprocess-builder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikeshiyan%2Fprocess-builder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikeshiyan%2Fprocess-builder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mikeshiyan","download_url":"https://codeload.github.com/mikeshiyan/process-builder/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikeshiyan%2Fprocess-builder/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29683990,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-21T14:31:22.911Z","status":"ssl_error","status_checked_at":"2026-02-21T14:31:22.570Z","response_time":107,"last_error":"SSL_read: 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":["cmd","composer","exec","oop","php","process","shell"],"created_at":"2024-11-22T14:14:39.609Z","updated_at":"2026-02-21T14:33:08.632Z","avatar_url":"https://github.com/mikeshiyan.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Process Builder\n\nBuilds command lines for symfony/process using magic methods.\n\nBest suited for use as a [Composer](https://getcomposer.org) library.\n\n## Requirements\n\n* PHP \u0026ge; 8.0\n* [symfony/process](https://github.com/symfony/process) \u0026ge; 5\n\n## Installation\n\nTo add this library to your Composer project:\n```\ncomposer require shiyan/process-builder\n```\n\n## Usage examples\n\nUsing the `ProcessBuilder` class:\n```\nuse Shiyan\\ProcessBuilder\\ProcessBuilder;\n\n$ls = new ProcessBuilder(app: 'ls', cwd: '~');\nprint $ls('-la'); // Prints the command output.\n\n$ls-\u003echDir('../'); // Changes the working directory, not the command argument.\nprint $ls('-la');\n```\n\nUsing a class which extends the `BaseProcessBuilder`:\n```\nuse Shiyan\\ProcessBuilder\\Example\\Git;\n\n$git = new Git('/var/www');\n\nif ($git-\u003estatus('-z') != '') {\n  $git-\u003eadd('--all');\n  $git-\u003ecommit('-m', 'Some changes');\n  $git-\u003epush('origin', 'master');\n}\n```\n\nBy default, an underlying process runs automatically. This behavior can be\nchanged:\n```\nuse Shiyan\\ProcessBuilder\\ProcessBuilder;\n\n$ls = new ProcessBuilder('ls');\n$ls-\u003esetAutoRun(FALSE);\n$process = $ls('-la');\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikeshiyan%2Fprocess-builder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmikeshiyan%2Fprocess-builder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikeshiyan%2Fprocess-builder/lists"}