Skip to content

Commit

Permalink
Repo: sync maintenance
Browse files Browse the repository at this point in the history
  • Loading branch information
f3l1x committed Jan 9, 2021
1 parent 73c8edd commit 6840b52
Show file tree
Hide file tree
Showing 4 changed files with 81 additions and 67 deletions.
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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
35 changes: 18 additions & 17 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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
88 changes: 49 additions & 39 deletions README.md
Original file line number Diff line number Diff line change
@@ -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/)

<p align=center>
<a href="https://github.com/contributte/psr6-caching/actions"><img src="https://badgen.net/github/checks/contributte/psr6-caching"></a>
<a href="https://coveralls.io/r/contributte/psr6-caching"><img src="https://badgen.net/coveralls/c/github/contributte/psr6-caching"></a>
<a href="https://packagist.org/packages/contributte/psr6-caching"><img src="https://badgen.net/packagist/dm/contributte/psr6-caching"></a>
<a href="https://packagist.org/packages/contributte/psr6-caching"><img src="https://badgen.net/packagist/v/contributte/psr6-caching"></a>
</p>
<p align=center>
<a href="https://packagist.org/packages/contributte/psr6-caching"><img src="https://badgen.net/packagist/php/contributte/psr6-caching"></a>
<a href="https://github.com/contributte/psr6-caching"><img src="https://badgen.net/github/license/contributte/psr6-caching"></a>
<a href="https://bit.ly/ctteg"><img src="https://badgen.net/badge/support/gitter/cyan"></a>
<a href="https://bit.ly/cttfo"><img src="https://badgen.net/badge/support/forum/yellow"></a>
<a href="https://contributte.org/partners.html"><img src="https://badgen.net/badge/sponsor/donations/F96854"></a>
</p>

<p align=center>
Website 🚀 <a href="https://contributte.org">contributte.org</a> | Contact 👨🏻‍💻 <a href="https://f3l1x.io">f3l1x.io</a> | Twitter 🐦 <a href="https://twitter.com/contributte">@contributte</a>
</p>

## 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

<table>
<tbody>
<tr>
<td align="center">
<a href="https://github.com/f3l1x">
<img width="150" height="150" src="https://avatars2.githubusercontent.com/u/538058?v=3&s=150">
</a>
</br>
<a href="https://github.com/f3l1x">Milan Felix Šulc</a>
</td>
<td align="center">
<a href="https://github.com/mabar">
<img width="150" height="150" src="https://avatars0.githubusercontent.com/u/20974277?s=150&v=4">
</a>
</br>
<a href="https://github.com/mabar">Marek Bartoš</a>
</td>
</tr>
</tbody>
</table>
| 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.

<a href="https://github.com/vody105">
<img width="80" height="80" src="https://avatars1.githubusercontent.com/u/22433893?v=4&s=80">
</a>

<a href="https://github.com/f3l1x">
<img width="80" height="80" src="https://avatars2.githubusercontent.com/u/538058?v=4&s=80">
</a>

-----

Consider to [support](https://contributte.org/partners.html) **contributte** development team.
Also thank you for using this package.
23 changes: 13 additions & 10 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand All @@ -48,7 +51,7 @@
},
"extra": {
"branch-alias": {
"dev-master": "0.2.x-dev"
"dev-master": "0.3.x-dev"
}
}
}

0 comments on commit 6840b52

Please sign in to comment.