{"id":30065075,"url":"https://github.com/brick/lock","last_synced_at":"2025-08-12T10:02:23.144Z","repository":{"id":308810416,"uuid":"1033932724","full_name":"brick/lock","owner":"brick","description":null,"archived":false,"fork":false,"pushed_at":"2025-08-08T02:00:08.000Z","size":13,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-08T03:29:46.279Z","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/brick.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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,"zenodo":null},"funding":{"github":"BenMorel"}},"created_at":"2025-08-07T15:14:29.000Z","updated_at":"2025-08-08T02:00:12.000Z","dependencies_parsed_at":"2025-08-08T03:29:47.912Z","dependency_job_id":"98b54149-b798-4916-8dd1-bc02512db256","html_url":"https://github.com/brick/lock","commit_stats":null,"previous_names":["brick/lock"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/brick/lock","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brick%2Flock","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brick%2Flock/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brick%2Flock/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brick%2Flock/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brick","download_url":"https://codeload.github.com/brick/lock/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brick%2Flock/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269372822,"owners_count":24406288,"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","status":"online","status_checked_at":"2025-08-08T02:00:09.200Z","response_time":72,"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-08-08T05:46:59.180Z","updated_at":"2025-08-08T05:47:25.037Z","avatar_url":"https://github.com/brick.png","language":"PHP","funding_links":["https://github.com/sponsors/BenMorel"],"categories":[],"sub_categories":[],"readme":"## Brick\\Lock\n\n\u003cimg src=\"https://raw.githubusercontent.com/brick/brick/master/logo.png\" alt=\"\" align=\"left\" height=\"64\"\u003e\n\nA PHP library to work with advisory locks.\n\n[![Build Status](https://github.com/brick/lock/workflows/CI/badge.svg)](https://github.com/brick/lock/actions)\n[![Coverage Status](https://coveralls.io/repos/github/brick/lock/badge.svg?branch=master)](https://coveralls.io/github/brick/lock?branch=master)\n[![Latest Stable Version](https://poser.pugx.org/brick/lock/v/stable)](https://packagist.org/packages/brick/lock)\n[![Total Downloads](https://poser.pugx.org/brick/lock/downloads)](https://packagist.org/packages/brick/lock)\n[![License](https://img.shields.io/badge/license-MIT-blue.svg)](http://opensource.org/licenses/MIT)\n\n### Installation\n\nThis library is installable via [Composer](https://getcomposer.org/):\n\n```bash\ncomposer require brick/lock\n```\n\n### Requirements\n\nThis library requires PHP 8.2 or later.\n\n### Project status \u0026 release process\n\nWhile this library is still under development, it is well tested and considered stable enough to use in production\nenvironments.\n\nThe current releases are numbered `0.x.y`. When a non-breaking change is introduced (adding new methods, optimizing\nexisting code, etc.), `y` is incremented.\n\n**When a breaking change is introduced, a new `0.x` version cycle is always started.**\n\nIt is therefore safe to lock your project to a given release cycle, such as `^0.13`.\n\nIf you need to upgrade to a newer release cycle, check the [release history](https://github.com/brick/lock/releases)\nfor a list of changes introduced by each further `0.x.0` version.\n\n### Overview\n\nTo be written.\n\n### Use in a Symfony project\n\nIn a Symfony project using the Doctrine ORM, add the following config, typically in `config/services.yaml`:\n\n```yaml\nservices:\n    Brick\\Lock\\LockFactoryInterface:\n        class: Brick\\Lock\\LockFactory\n\n    Brick\\Lock\\LockDriverInterface:\n        class: Brick\\Lock\\Driver\\MysqlLockDriver\n\n    Brick\\Lock\\Database\\ConnectionInterface:\n        class: Brick\\Lock\\Database\\Connection\\DoctrineConnection\n```\n\nYou can now type-hint the `Brick\\Lock\\LockFactoryInterface` service in your code and use it to create locks.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrick%2Flock","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrick%2Flock","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrick%2Flock/lists"}