For greater ease it is recommended to use docker containers.
Run container with memcached directly via command:
docker run --rm --name yiisoft-cache-memcached-cache --detach --publish 11211:11211 memcached:1.6.23
Memcached must be accessible by address 127.0.0.1
. If you use PHP via docker container, run PHP container in network
of memcached container. Use docker run
command argument for it:
--network container:yiisoft-cache-memcached-cache
The package is tested with PHPUnit. To run tests:
./vendor/bin/phpunit
The package tests are checked with Infection mutation framework with Infection Static Analysis Plugin. To run it:
./vendor/bin/roave-infection-static-analysis-plugin
The code is statically analyzed with Psalm. To run static analysis:
./vendor/bin/psalm
Use Rector to make codebase follow some specific rules or use either newest or any specific version of PHP:
./vendor/bin/rector
This package uses composer-require-checker to check if all
dependencies are correctly defined in composer.json
. To run the checker, execute the following command:
./vendor/bin/composer-require-checker