{"id":20262047,"url":"https://github.com/phpsocialnetwork/couchbasev4-extension","last_synced_at":"2026-02-04T08:32:04.648Z","repository":{"id":215464758,"uuid":"738992967","full_name":"PHPSocialNetwork/couchbasev4-extension","owner":"PHPSocialNetwork","description":"Couchbasev4 extension for developer using the new Couchbase v4 API.","archived":false,"fork":false,"pushed_at":"2024-11-27T19:09:37.000Z","size":87,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-24T23:04:56.387Z","etag":null,"topics":["cache","couchbase","couchbasev4","php","phpfastcache"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":false,"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/PHPSocialNetwork.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":null,"code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-01-04T14:23:59.000Z","updated_at":"2024-11-27T19:07:43.000Z","dependencies_parsed_at":"2024-11-14T11:30:03.560Z","dependency_job_id":"de374d40-4115-43cf-b653-a795ba77dc9e","html_url":"https://github.com/PHPSocialNetwork/couchbasev4-extension","commit_stats":null,"previous_names":["phpsocialnetwork/couchbasev4-extension"],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PHPSocialNetwork%2Fcouchbasev4-extension","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PHPSocialNetwork%2Fcouchbasev4-extension/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PHPSocialNetwork%2Fcouchbasev4-extension/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PHPSocialNetwork%2Fcouchbasev4-extension/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PHPSocialNetwork","download_url":"https://codeload.github.com/PHPSocialNetwork/couchbasev4-extension/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248328104,"owners_count":21085258,"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":["cache","couchbase","couchbasev4","php","phpfastcache"],"created_at":"2024-11-14T11:28:11.023Z","updated_at":"2026-02-04T08:31:59.625Z","avatar_url":"https://github.com/PHPSocialNetwork.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Contributing [![PHP Tests](https://github.com/PHPSocialNetwork/couchbasev4-extension/actions/workflows/php.yml/badge.svg)](https://github.com/PHPSocialNetwork/couchbasev4-extension/actions/workflows/php.yml)\nMerge requests are welcome but will require the tests plus the quality tools to pass:\n\n_(Commands must be run from the repository root)_\n### PHPCS, PHPMD, PHPSTAN (Level 6), unit tests:\n\n```bash\ncomposer run-script quality\ncomposer run-script tests\n\n# In case you want to fix the code style automatically: \n./vendor/bin/phpcbf lib/ --report=summary\n```\n\n## Support \u0026 Security\n\nSupport for this extension must be posted to the main [Phpfastcache repository](https://github.com/PHPSocialNetwork/phpfastcache/issues).\n\n## Composer installation:\n\n```php\ncomposer install phpfastcache/couchbasev4-extension\n```\n\n#### ⚠️ This extension requires:\n\n1️⃣ The PHP `Couchbase` extension 4.x at least\n\n2️⃣ The composer `Couchbase/Couchbase` library 4.x at least\n\n#### ⚠️ This extension optionally requires: \n1️⃣ The PHP `Posix` extension is needed use `pcntl_fork()` for process forking.  \n\nTo fork a php process correctly you will need to tell the Couchbase diver to prepare for the fork.\n\n⚠️ __WARNING__ You **must** call the drivers `Phpfastcache\\Drivers\\Couchbasev4\\Driver::prepareToFork()` \njust before the `pcntl_fork()` call or the child process will lock up and then call `handleNotifyFork()` to avoid further \nerrors.\n\n#### Example\n```php\ntry {\n    \\Phpfastcache\\Drivers\\Couchbasev4\\Driver::prepareToFork();\n    $pid = pcntl_fork();\n    \\Phpfastcache\\Drivers\\Couchbasev4\\Driver::handleNotifyFork();\n    if ($pid == -1) {\n        // There was a problem with forking the process\n    } else if ($pid) {\n        // continue parent process operations\n    } else {\n        // continue child process operations\n    }\n} catch (PhpfastcacheDriverCheckException) {\n    // the driver did not allow you to fork the process\n}\n```\n\n2️⃣ Also the PHP `Pcntl` if you plan to contribute to this project and run the tests before pushing your Merge Request.\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphpsocialnetwork%2Fcouchbasev4-extension","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphpsocialnetwork%2Fcouchbasev4-extension","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphpsocialnetwork%2Fcouchbasev4-extension/lists"}