Skip to content

Commit

Permalink
Drop support for PHP < 7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
tersmitten committed Jan 22, 2019
1 parent dac6144 commit c678331
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 8 deletions.
5 changes: 2 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,10 @@ sudo: false
language: php

php:
- 5.4
- 5.5
- 5.6
- 7.0
- 7.1
- 7.2
- 7.3
- hhvm

matrix:
Expand Down
2 changes: 1 addition & 1 deletion .travis/after-success.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ thisFile="$(readlink -f ${0})";
thisFilePath="$(dirname ${thisFile})";
#
if [ "${CODECOVERAGE}" = '1' ]; then
bash <(curl -s https://codecov.io/bash)
bash <(curl -sSL https://codecov.io/bash)
fi
2 changes: 1 addition & 1 deletion .travis/before-script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ composer install --no-ansi --no-progress --no-interaction --prefer-source;
if [ "${PHPCS}" = '1' ]; then
composer require --dev 'squizlabs/php_codesniffer=2.*';
else
composer require --dev 'phpunit/phpunit=4.*';
composer require --dev 'phpunit/phpunit=^7';
fi
2 changes: 1 addition & 1 deletion .travis/script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ thisFilePath="$(dirname ${thisFile})";
if [ "${PHPCS}" = '1' ]; then
vendor/bin/phpcs --standard=PSR2 src tests;
elif [ "${CODECOVERAGE}" = '1' ]; then
vendor/bin/phpunit --stderr --configuration phpunit.xml --coverage-clover build/logs/clover.xml;
phpdbg -qrr vendor/bin/phpunit --stderr --configuration phpunit.xml --coverage-clover build/logs/clover.xml;
else
vendor/bin/phpunit --stderr --configuration phpunit.xml;
fi
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
# Damerau Levenshtein

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

Get text similarity level with Damerau-Levenshtein distance.

## Requirements

* PHP 5.4.16 or greater.
* PHP 7.0.0 or greater.

## Installation

Expand Down

0 comments on commit c678331

Please sign in to comment.