kuaukutsu / yii2-cache

Cache Decorator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cache Decorator

...

Docker

local

docker build -t kuaukutsu/cache:php .
docker run --init -it --rm -v "$(pwd):/app" -w /app kuaukutsu/cache:php sh

Testing

Unit testing

The package is tested with PHPUnit. To run tests:

./vendor/bin/phpunit

local

docker run --init -it --rm -v "$(pwd):/app" -w /app kuaukutsu/cache:php ./vendor/bin/phpunit 

Code Sniffer

local

docker run --init -it --rm -v "$(pwd):/app" -w /app kuaukutsu/cache:php ./vendor/bin/phpcs 

phpqa

docker run --init -it --rm -v "$(pwd):/app" -v "$(pwd)/phpqa/tmp:/tmp" -w /app jakzal/phpqa phpcs

Static analysis

The code is statically analyzed with Psalm. To run static analysis:

./vendor/bin/psalm

local

docker run --init -it --rm -v "$(pwd):/app" -w /app kuaukutsu/cache:php ./vendor/bin/psalm 

phpqa

docker run --init -it --rm -v "$(pwd):/app" -v "$(pwd)/phpqa/tmp:/tmp" -w /app jakzal/phpqa psalm

About

Cache Decorator


Languages

Language:PHP 96.4%Language:Dockerfile 3.6%