Skip to content

Commit 4bdad82

Browse files
committed
Upgrading composer and travis for laravel 8
1 parent c42d0a8 commit 4bdad82

File tree

4 files changed

+35
-31
lines changed

4 files changed

+35
-31
lines changed

.gitignore

+3-1
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,6 @@ composer.phar
77
composer.lock
88
/vendor
99
.DS_Store
10-
.phpunit.result.cache
10+
.phpintel/*
11+
.phpunit.result.cache
12+
.php_cs.cache

.travis.yml

+8-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
11
language: php
22

33
php:
4-
- 7.2
4+
- 7.3
55
- 7.4
66

77
before_script:
88
- travis_retry composer self-update
9-
- travis_retry composer update
9+
- COMPOSER_MEMORY_LIMIT=-1 travis_retry composer install
1010

11-
script: vendor/bin/phpunit --verbose
11+
script:
12+
vendor/bin/phpunit --verbose
13+
14+
notifications:
15+
email:
16+
on_success: never

README.md

+4-16
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,15 @@ Laravel Taggable Trait
44
[![Latest Stable Version](https://poser.pugx.org/rtconner/laravel-tagging/v/stable.svg)](https://packagist.org/packages/rtconner/laravel-tagging)
55
[![Total Downloads](https://poser.pugx.org/rtconner/laravel-tagging/downloads.svg)](https://packagist.org/packages/rtconner/laravel-tagging)
66
[![License](https://poser.pugx.org/rtconner/laravel-tagging/license.svg)](https://packagist.org/packages/rtconner/laravel-tagging)
7-
[![Build Status](https://travis-ci.org/rtconner/laravel-tagging.svg?branch=laravel-7)](https://travis-ci.org/rtconner/laravel-tagging)
8-
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/rtconner/laravel-tagging/badges/quality-score.png?b=laravel-7)](https://scrutinizer-ci.com/g/rtconner/laravel-tagging/?branch=laravel-7)
9-
10-
7+
[![Build Status](https://travis-ci.org/rtconner/laravel-tagging.svg?branch=laravel-8)](https://travis-ci.org/rtconner/laravel-tagging)
8+
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/rtconner/laravel-tagging/badges/quality-score.png?b=laravel-8)](https://scrutinizer-ci.com/g/rtconner/laravel-tagging/?branch=laravel-8)
119

1210
This package is not meant to handle javascript or html in any way. This package handles database storage and read/writes only.
1311

1412
There are no real limits on what characters can be used in a tag. It uses a slug transform to determine if two tags are identical ("sugar-free" and "Sugar Free" would be treated as the same tag). Tag display names are run through Str::title()
1513

16-
[Laravel/Lumen 5 Documentation](https://github.com/rtconner/laravel-tagging/tree/laravel-5)
17-
[Laravel 4 Documentation](https://github.com/rtconner/laravel-tagging/tree/laravel-4)
18-
19-
#### Composer Install (for Laravel 5/6/7 and Lumen 5/6/7)
20-
21-
```shell
22-
composer require rtconner/laravel-tagging "~4.0"
14+
```bash
15+
composer require rtconner/laravel-tagging
2316
```
2417

2518
#### Install and then Run the migrations
@@ -84,11 +77,6 @@ Article::existingTags(); // return collection of all existing tags on any articl
8477

8578
[Documentation: Lumen](docs/lumen.md)
8679

87-
#### Upgrading Laravel 4 to 5
88-
89-
This library stores full model class names into the database. When you upgrade laravel and you add namespaces to your models, you will need to update the records stored in the database.
90-
Alternatively you can override Model::$morphClass on your model class to match the string stored in the database.
91-
9280
#### Credits
9381

9482
- Robert Conner - http://smartersoftware.net

composer.json

+20-11
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,19 @@
77
"authors": [
88
{
99
"name": "Robert Conner",
10-
"email": "rtconner+gh@smarter.bz"
10+
"email": "rtconner+composer@smarter.bz"
1111
}
1212
],
1313
"require": {
14-
"php": ">=7.0",
15-
"illuminate/database": ">= 5.0|^6.0|^7.0|^8.0",
16-
"illuminate/support": ">= 5.0|^6.0|^7.0|^8.0"
14+
"php": "^7.3",
15+
"illuminate/database": ">=8.0",
16+
"illuminate/support": ">=8.0"
1717
},
1818
"require-dev": {
19-
"orchestra/testbench": "5.*|4.*",
20-
"phpunit/phpunit": "8.*",
21-
"mockery/mockery": "~1.2",
22-
"vlucas/phpdotenv": "~4.1"
19+
"orchestra/testbench": "6.*",
20+
"phpunit/phpunit": "9.*",
21+
"mockery/mockery": "1.*",
22+
"squizlabs/php_codesniffer": "3.*"
2323
},
2424
"autoload": {
2525
"psr-4": {
@@ -38,8 +38,17 @@
3838
]
3939
}
4040
},
41-
"minimum-stability": "dev",
4241
"scripts": {
43-
"test": "./vendor/bin/phpunit tests"
44-
}
42+
"test": "vendor/bin/phpunit --color=always",
43+
"check": [
44+
"php-cs-fixer fix --ansi --dry-run --diff .",
45+
"phpcs --report-width=200 --report-summary --report-full src/ tests/ --standard=PSR2 -n",
46+
"phpmd src/,tests/ text ./phpmd.xml.dist"
47+
],
48+
"fix": [
49+
"php-cs-fixer fix --ansi ."
50+
]
51+
},
52+
"minimum-stability": "dev",
53+
"prefer-stable": true
4554
}

0 commit comments

Comments
 (0)