{"id":25456436,"url":"https://github.com/autoframe/process-control","last_synced_at":"2026-06-28T02:32:18.346Z","repository":{"id":196692317,"uuid":"694851315","full_name":"autoframe/process-control","owner":"autoframe","description":null,"archived":false,"fork":false,"pushed_at":"2024-04-04T10:44:54.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-25T00:32:39.364Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/autoframe.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":"2023-09-21T20:35:07.000Z","updated_at":"2023-09-26T21:29:27.000Z","dependencies_parsed_at":null,"dependency_job_id":"49eba09c-33c8-4c2c-b6cd-895646c169a2","html_url":"https://github.com/autoframe/process-control","commit_stats":null,"previous_names":["autoframe/process-control"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/autoframe/process-control","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/autoframe%2Fprocess-control","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/autoframe%2Fprocess-control/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/autoframe%2Fprocess-control/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/autoframe%2Fprocess-control/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/autoframe","download_url":"https://codeload.github.com/autoframe/process-control/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/autoframe%2Fprocess-control/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34875357,"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-28T02:00:05.809Z","response_time":54,"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":"2025-02-18T01:38:35.211Z","updated_at":"2026-06-28T02:32:18.327Z","avatar_url":"https://github.com/autoframe.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Autoframe is a low level framework that is oriented on SOLID flexibility\n\n[![Build Status](https://github.com/autoframe/process-control/workflows/PHPUnit-tests/badge.svg)](https://github.com/autoframe/process-control/actions?query=branch:main)\n[![License: The 3-Clause BSD License](https://img.shields.io/github/license/autoframe/process-control)](https://opensource.org/license/bsd-3-clause/)\n![Packagist Version](https://img.shields.io/packagist/v/autoframe/process-control?label=packagist%20stable)\n[![Downloads](https://img.shields.io/packagist/dm/autoframe/process-control.svg)](https://packagist.org/packages/autoframe/process-control)\n\n*PHP worker instance create and inter process lock check Autoframe Framework*\n\n\n```php\n/** Concrete implementation that uses the php temporary folder to store the lock */\nnamespace Autoframe\\Process\\Control\\Lock;\nclass AfrLockFileClass implements AfrLockInterface\n...\ninterface AfrLockInterface\n{\n    /** Check if the lock is in place */\n    public function isLocked(): bool;\n\n    /** Creates a new lock or fails */\n    public function obtainLock(): bool;\n\n    /** Returns false if lock is in place and the lock file can't be closed\n     *  Returns true if there is no lock in place or operation was successfully made */\n    public function releaseLock(): bool;\n\n    /** Returns Process ID for the lock thread or zero if other case */\n    public function getLockPid(): int;\n}\n```\n\n---\n\n```php\n/** Concrete implementation for create (spawn) worker process in background */\nnamespace Autoframe\\Process\\Control\\Worker\\Background;\nclass AfrBackgroundWorkerClass implements AfrBackgroundWorkerInterface\n...\ninterface AfrBackgroundWorkerInterface\n{\n    /** Returns /usr/bin/php or C:\\xampp\\php\\php.exe or php */\n    public static function getPhpBin(): string;\n\n    /** Calls: php $execFileArgs \u003e /dev/null \u0026 or widows equivalent start /B */\n    public static function execWithArgs(string $execFileArgs): void;\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fautoframe%2Fprocess-control","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fautoframe%2Fprocess-control","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fautoframe%2Fprocess-control/lists"}