{"id":16254393,"url":"https://github.com/ptondereau/ext-redlock-php","last_synced_at":"2026-03-11T04:31:52.120Z","repository":{"id":38085955,"uuid":"501250801","full_name":"ptondereau/ext-redlock-php","owner":"ptondereau","description":"PHP Extension built with Rust to implement redlock alogirthm","archived":false,"fork":false,"pushed_at":"2022-07-07T20:35:58.000Z","size":98,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-09-18T19:30:11.515Z","etag":null,"topics":["php","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/ptondereau.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}},"created_at":"2022-06-08T12:55:39.000Z","updated_at":"2023-12-13T09:28:17.000Z","dependencies_parsed_at":"2022-07-12T00:30:59.318Z","dependency_job_id":null,"html_url":"https://github.com/ptondereau/ext-redlock-php","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ptondereau/ext-redlock-php","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ptondereau%2Fext-redlock-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ptondereau%2Fext-redlock-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ptondereau%2Fext-redlock-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ptondereau%2Fext-redlock-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ptondereau","download_url":"https://codeload.github.com/ptondereau/ext-redlock-php/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ptondereau%2Fext-redlock-php/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30370797,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T21:41:54.280Z","status":"online","status_checked_at":"2026-03-11T02:00:07.027Z","response_time":84,"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":["php","rust"],"created_at":"2024-10-10T15:21:38.934Z","updated_at":"2026-03-11T04:31:52.091Z","avatar_url":"https://github.com/ptondereau.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Redlock algorithm implementation for PHP in Rust\n\n[![CI](https://github.com/ptondereau/ext-redlock-php/actions/workflows/tests.yml/badge.svg)](https://github.com/ptondereau/ext-redlock-php/actions/workflows/tests.yml)\n\n## Requirements\n\n- [`cargo-php`](https://crates.io/crates/cargo-php)\n- PHP with `php-dev` installed \u003e= 8.1\n- Rust \u003e= 1.61\n- CLang 5\n\n## Generating PHP stubs\n\n[`cargo-php`](https://crates.io/crates/cargo-php) have a builtin feature to generate stubs but it's not finalized and stable enough. We use for the moment https://github.com/sasezaki/php-extension-stub-generator to generate with this current usage:\n\n```bash\n$ cargo build\n$ php \\\n    -dextension=target/debug/libext_redlock_php.so \\\n    php-extension-stub-generator.phar dump-files ext-redlock-php stubs\n```\n\n## What is redlock?\n\nhttps://redis.io/docs/reference/patterns/distributed-locks/\n\n\n## TODO\n- [ ] Build for all supported versions of PHP\n- [ ] Create release artifacts for all PHP versions and OS plaform.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fptondereau%2Fext-redlock-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fptondereau%2Fext-redlock-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fptondereau%2Fext-redlock-php/lists"}