{"id":19001709,"url":"https://github.com/ledccn/pipeline","last_synced_at":"2026-06-19T08:31:19.089Z","repository":{"id":190651287,"uuid":"683164037","full_name":"ledccn/pipeline","owner":"ledccn","description":"管道流水线模式 ledc/pipeline","archived":false,"fork":false,"pushed_at":"2025-07-30T13:37:52.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-04T07:30:33.264Z","etag":null,"topics":[],"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/ledccn.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}},"created_at":"2023-08-25T18:45:34.000Z","updated_at":"2025-07-30T13:37:55.000Z","dependencies_parsed_at":null,"dependency_job_id":"dd46a493-bc16-435d-8e22-0e944525cbe4","html_url":"https://github.com/ledccn/pipeline","commit_stats":null,"previous_names":["ledccn/pipeline"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/ledccn/pipeline","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ledccn%2Fpipeline","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ledccn%2Fpipeline/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ledccn%2Fpipeline/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ledccn%2Fpipeline/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ledccn","download_url":"https://codeload.github.com/ledccn/pipeline/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ledccn%2Fpipeline/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34523982,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-19T02:00:06.005Z","response_time":61,"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":[],"created_at":"2024-11-08T18:12:23.937Z","updated_at":"2026-06-19T08:31:19.068Z","avatar_url":"https://github.com/ledccn.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 安装 Install\n\n```\ncomposer require ledc/pipeline\n```\n\n\n# 使用 Usage\n\n```\n\u003c?php\nuse Ledc\\Pipeline\\Pipeline;\n\n//初始数据\nclass Request\n{\n    public int $number = 1;\n}\n\n//管道数组\n$pipes = [];\nforeach (range(1, 3) as $row) {\n    $pipes[] = function ($request, $next) use ($row) {\n        echo 'pipe-before' . $row . PHP_EOL;\n        $request-\u003enumber += $row;\n        $request = $next($request);\n        echo 'pipe-after' . $row . PHP_EOL;\n        return $request;\n    };\n}\n\n//核心逻辑\n$init = function ($request) {\n    echo 'init start' . PHP_EOL;\n    var_dump($request);\n    echo 'init end' . PHP_EOL;\n    return 'init';\n};\n\n$pipeline = new Pipeline();\n$result = $pipeline-\u003esend(new Request())\n    -\u003ethrough($pipes)\n    -\u003ethen($init);\n\nvar_dump($result);\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fledccn%2Fpipeline","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fledccn%2Fpipeline","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fledccn%2Fpipeline/lists"}