Skip to content

Latest commit

 

History

History
42 lines (27 loc) · 1.56 KB

README.md

File metadata and controls

42 lines (27 loc) · 1.56 KB

Contributing PHP Tests

Merge requests are welcome but will require the tests plus the quality tools to pass:

(Commands must be run from the repository root)

PHPCS, PHPMD, PHPSTAN (Level 6), unit tests:

composer run-script quality
composer run-script tests

# In case you want to fix the code style automatically: 
./vendor/bin/phpcbf lib/ --report=summary

Support & Security

Support for this extension must be posted to the main Phpfastcache repository.

Composer installation:

composer install phpfastcache/couchbasev4-extension

⚠️ This extension requires:

1️⃣ The PHP Couchbase extension 4.x at least

2️⃣ The composer Couchbase/Couchbase library 4.x at least

⚠️ This extension optionally requires:

1️⃣ The PHP Posix to fix a known Couchbase Extension bug PCBC-886.
Once this bug has been fixed the dependency suggestion will be removed. If your application wants to fork the processes using pcntl_fork() the Posix extension is needed, and you want the fix to be enabled, set up the config like this:

$config = (new CouchbaseConfig())->setDoForkDetection(true);

2️⃣ Also the PHP Pcntl if you plan to contribute to this project and run the tests before pushing your Merge Request.