Skip to content

Commit 7008978

Browse files
committed
Drop support for PHP < 7.0
1 parent 4289d31 commit 7008978

File tree

2 files changed

+17
-26
lines changed

2 files changed

+17
-26
lines changed

.travis.yml

Lines changed: 8 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
language: php
22

33
php:
4-
- 5.4
5-
- 5.5
6-
- 5.6
74
- 7.0
85
- 7.1
6+
- 7.2
97

108
services:
119
- redis-server
@@ -17,37 +15,26 @@ env:
1715
- REQUIRE=""
1816
- DB=mysql CAKE_VERSION=2
1917

18+
- secure: "NRP8WNBaBZnMrB0fyu19pReMYORhmf9y+LdxHoBCCmJGlm8ELpup0DinezG57kTTpvPRqlUCZF0XahZj5TAsb8FhI4FRUqPpLT1Osolz9UFHq90pe6nECmqkfAC+aU5jrXOG8q0Xd8UuJ4fpKRdS/dfmRY7QUPw3Cmv7B9TNmEI="
19+
2020
matrix:
21-
- DB=mysql CAKE_VERSION=2.6
22-
- DB=mysql CAKE_VERSION=2.7
23-
- DB=mysql CAKE_VERSION=2.8
24-
- DB=mysql CAKE_VERSION=2.9
25-
- DB=mysql CAKE_VERSION=2.10
21+
- CAKE_VERSION=2.9
22+
- CAKE_VERSION=2.10 PHPUNIT_VERSION=^5.7
2623

2724
matrix:
2825
include:
2926
- php: 7.1
3027
env:
31-
- CODECOVERAGE=1
28+
- CODECOVERAGE=1 PHPUNIT_VERSION=^5.7
3229
- php: 7.1
3330
env:
3431
- PHPCS=1
3532
- php: 7.1
3633
env:
3734
- FOC_VALIDATE=1
3835
exclude:
39-
- php: 7.0
40-
env: DB=mysql CAKE_VERSION=2.6
41-
- php: 7.0
42-
env: DB=mysql CAKE_VERSION=2.7
43-
- php: 7.0
44-
env: DB=mysql CAKE_VERSION=2.8
45-
- php: 7.1
46-
env: DB=mysql CAKE_VERSION=2.6
47-
- php: 7.1
48-
env: DB=mysql CAKE_VERSION=2.7
49-
- php: 7.1
50-
env: DB=mysql CAKE_VERSION=2.8
36+
- php: 7.2
37+
env: CAKE_VERSION=2.9
5138

5239
branches:
5340
only:

README.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
# Redis plugin for CakePHP
22

3-
[![Build Status](https://travis-ci.org/Oefenweb/cakephp-redis.png?branch=master)](https://travis-ci.org/Oefenweb/cakephp-redis) [![PHP 7 ready](http://php7ready.timesplinter.ch/Oefenweb/cakephp-redis/badge.svg)](https://travis-ci.org/Oefenweb/cakephp-redis) [![Coverage Status](https://codecov.io/gh/Oefenweb/cakephp-redis/branch/master/graph/badge.svg)](https://codecov.io/gh/Oefenweb/cakephp-redis) [![Packagist downloads](http://img.shields.io/packagist/dt/Oefenweb/cakephp-redis.svg)](https://packagist.org/packages/oefenweb/cakephp-redis) [![Code Climate](https://codeclimate.com/github/Oefenweb/cakephp-redis/badges/gpa.svg)](https://codeclimate.com/github/Oefenweb/cakephp-redis)
3+
[![Build Status](https://travis-ci.org/Oefenweb/cakephp-redis.png?branch=master)](https://travis-ci.org/Oefenweb/cakephp-redis)
4+
[![PHP 7 ready](http://php7ready.timesplinter.ch/Oefenweb/cakephp-redis/badge.svg)](https://travis-ci.org/Oefenweb/cakephp-redis)
5+
[![Coverage Status](https://codecov.io/gh/Oefenweb/cakephp-redis/branch/master/graph/badge.svg)](https://codecov.io/gh/Oefenweb/cakephp-redis)
6+
[![Packagist downloads](http://img.shields.io/packagist/dt/Oefenweb/cakephp-redis.svg)](https://packagist.org/packages/oefenweb/cakephp-redis)
7+
[![Code Climate](https://codeclimate.com/github/Oefenweb/cakephp-redis/badges/gpa.svg)](https://codeclimate.com/github/Oefenweb/cakephp-redis)
48

59
Redis (DataSource) Plugin for CakePHP
610

711
## Requirements
812

9-
* CakePHP 2.6.0 or greater.
10-
* PHP 5.4.16 or greater.
13+
* CakePHP 2.9.0 or greater.
14+
* PHP 7.0.0 or greater.
1115
* PhpRedis.
1216

1317
## Installation
@@ -42,7 +46,7 @@ CakePlugin::load('Redis');
4246
<?php
4347
class DATABASE_CONFIG {
4448

45-
public $redis = array(
49+
public $redis = [
4650
'datasource' => 'Redis.RedisSource',
4751
'host' => '127.0.0.1',
4852
'port' => 6379,
@@ -52,7 +56,7 @@ class DATABASE_CONFIG {
5256
'persistent' => false,
5357
'unix_socket' => '',
5458
'prefix' => '',
55-
);
59+
];
5660
```
5761

5862
## Usage

0 commit comments

Comments
 (0)