diff --git a/.editorconfig b/.editorconfig index 575834a..e147490 100644 --- a/.editorconfig +++ b/.editorconfig @@ -11,6 +11,6 @@ indent_style = tab indent_size = tab tab_width = 4 -[{*.json,*.yml,*.md}] +[{*.json,*.yaml,*.yml,*.md}] indent_style = space indent_size = 2 diff --git a/Makefile b/Makefile index 5c23fc5..60ce194 100644 --- a/Makefile +++ b/Makefile @@ -1,27 +1,28 @@ -.PHONY: qa lint cs csf phpstan tests coverage +.PHONY: install qa cs csf phpstan tests coverage-clover coverage-html -all: - @$(MAKE) -pRrq -f $(lastword $(MAKEFILE_LIST)) : 2>/dev/null | awk -v RS= -F: '/^# File/,/^# Finished Make data base/ {if ($$1 !~ "^[#.]") {print $$1}}' | sort | egrep -v -e '^[^[:alnum:]]' -e '^$@$$' | xargs +install: + composer update -vendor: composer.json composer.lock - composer install +qa: phpstan cs -qa: lint phpstan cs - -lint: vendor - vendor/bin/linter src tests - -cs: vendor +cs: +ifdef GITHUB_ACTION + vendor/bin/codesniffer -q --report=checkstyle src tests | cs2pr +else vendor/bin/codesniffer src tests +endif -csf: vendor +csf: vendor/bin/codefixer src tests -phpstan: vendor +phpstan: vendor/bin/phpstan analyse -l max -c phpstan.neon src -tests: vendor - vendor/bin/phpunit tests --colors=always +tests: + vendor/bin/tester -s -p php --colors 1 -C tests/cases + +coverage-clover: + vendor/bin/tester -s -p phpdbg --colors 1 -C --coverage ./coverage.xml --coverage-src ./src tests/cases -coverage: vendor - phpdbg -qrr vendor/bin/phpunit tests --colors=always -c tests/coverage.xml +coverage-html: + vendor/bin/tester -s -p phpdbg --colors 1 -C --coverage ./coverage.html --coverage-src ./src tests/cases diff --git a/README.md b/README.md index 9ac2da3..422f60e 100644 --- a/README.md +++ b/README.md @@ -1,46 +1,56 @@ -# Contributte PSR6 Caching - -[PSR-6 (Caching Interface)](https://www.php-fig.org/psr/psr-6/) adapter for [Nette Caching](https://github.com/nette/caching) - -[![Build Status](https://img.shields.io/travis/contributte/psr6-caching.svg?style=flat-square)](https://travis-ci.org/contributte/psr6-caching) -[![Code coverage](https://img.shields.io/coveralls/contributte/psr6-caching.svg?style=flat-square)](https://coveralls.io/r/contributte/psr6-caching) -[![Licence](https://img.shields.io/packagist/l/contributte/psr6-caching.svg?style=flat-square)](https://packagist.org/packages/contributte/psr6-caching) -[![Downloads this Month](https://img.shields.io/packagist/dm/contributte/psr6-caching.svg?style=flat-square)](https://packagist.org/packages/contributte/psr6-caching) -[![Downloads total](https://img.shields.io/packagist/dt/contributte/psr6-caching.svg?style=flat-square)](https://packagist.org/packages/contributte/psr6-caching) -[![Latest stable](https://img.shields.io/packagist/v/contributte/psr6-caching.svg?style=flat-square)](https://packagist.org/packages/contributte/psr6-caching) -[![PHPStan](https://img.shields.io/badge/PHPStan-enabled-brightgreen.svg?style=flat-square)](https://github.com/phpstan/phpstan) - +![](https://heatbadger.now.sh/github/readme/contributte/psr6-caching/) + +

+ + + + +

+

+ + + + + +

+ +

+ Website 🚀 contributte.org | Contact 👨🏻‍💻 f3l1x.io | Twitter 🐦 @contributte +

+ +## Usage + +To install the latest version of `contributte/psr6-caching` use [Composer](https://getcomposer.com). + +``` +composer require contributte/psr6-caching +``` ## Documentation -- [Setup](.docs/README.md#setup) -- [Usage](.docs/README.md#usage) +For details on how to use this package, check out our [documentation](.docs). ## Versions | State | Version | Branch | Nette | PHP | |-------------|---------|----------|-------|---------| -| dev | `^0.2` | `master` | 3.0+ | `^7.2` | -| stable | `^0.1` | `master` | 3.0+ | `^7.2` | - -## Maintainers - - - - - - - - -
- - - -
- Milan Felix Šulc -
- - - -
- Marek Bartoš -
+| dev | `^0.3` | `master` | 3.0+ | `>=7.2` | +| stable | `^0.2` | `master` | 3.0+ | `>=7.2` | + +## Development + +See [how to contribute](https://contributte.org/contributing.html) to this package. + +This package is currently maintaining by these authors. + + + + + + + + + +----- + +Consider to [support](https://contributte.org/partners.html) **contributte** development team. +Also thank you for using this package. diff --git a/composer.json b/composer.json index b204b08..a6d2c02 100644 --- a/composer.json +++ b/composer.json @@ -8,28 +8,31 @@ "caching" ], "type": "library", - "license": "MPL-2.0", + "license": "MIT", "homepage": "https://github.com/contributte/psr6-caching", "authors": [ { "name": "Filip Šuška", "homepage": "https://github.com/vody105" + }, + { + "name": "Milan Felix Šulc", + "homepage": "https://f3l1x.io" } ], "require": { - "php": ">=7.2.0", + "php": ">=7.2", "nette/caching": "^3.0.0", "psr/cache": "^1.0.0" }, "require-dev": { "nette/di": "^3.0.0", - "ninjify/qa": "^0.9.0", - "phpstan/extension-installer": "^1.0.0", - "phpstan/phpstan-deprecation-rules": "^0.11.0", - "phpstan/phpstan-nette": "^0.11.0", - "phpstan/phpstan-shim": "^0.11.0", - "phpstan/phpstan-strict-rules": "^0.11.0", - "phpunit/phpunit": "^8.0.0" + "ninjify/qa": "^0.12", + "ninjify/nunjuck": "^0.4", + "phpstan/phpstan": "^0.12", + "phpstan/phpstan-deprecation-rules": "^0.12", + "phpstan/phpstan-nette": "^0.12", + "phpstan/phpstan-strict-rules": "^0.12" }, "autoload": { "psr-4": { @@ -48,7 +51,7 @@ }, "extra": { "branch-alias": { - "dev-master": "0.2.x-dev" + "dev-master": "0.3.x-dev" } } }