{"id":16229205,"url":"https://github.com/morris/sync","last_synced_at":"2025-03-19T13:31:40.676Z","repository":{"id":57019906,"uuid":"23044609","full_name":"morris/sync","owner":"morris","description":"Synchronized function calls for PHP","archived":false,"fork":false,"pushed_at":"2015-01-05T16:17:17.000Z","size":148,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-28T19:01:24.336Z","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":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/morris.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-08-17T16:22:36.000Z","updated_at":"2019-06-16T07:20:35.000Z","dependencies_parsed_at":"2022-08-22T20:31:12.274Z","dependency_job_id":null,"html_url":"https://github.com/morris/sync","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/morris%2Fsync","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/morris%2Fsync/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/morris%2Fsync/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/morris%2Fsync/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/morris","download_url":"https://codeload.github.com/morris/sync/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243996095,"owners_count":20380937,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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-10-10T12:57:41.230Z","updated_at":"2025-03-19T13:31:40.430Z","avatar_url":"https://github.com/morris.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Synchronization for PHP\n\n```php\n\u003c?php\n\n// Call a function in a mutually exclusive way using a lockfile.\n// A process will only block other processes and never block itself,\n// so you can safely nest synchronized operations.\n\nSync::call( function() {\n\n\t// do critical stuff like IO here\n\n} );\n\n// Set default lockfile\n\nSync::$lock = 'my/default/.lock';\n\n// Use different lockfile by passing it as the second argument\n\nSync::call( $func, 'my/other/.lock' );\n```\n\n## Requirements\n\n- PHP 5.3+\n\n\n## Installation\n\nThe composer package name is `morris/sync`. You can also download or\nfork the repository.\n\n\n## License\n\nSync is licensed under the MIT License. See `LICENSE.md` for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmorris%2Fsync","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmorris%2Fsync","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmorris%2Fsync/lists"}