Skip to content

Commit

Permalink
Upgrading composer and travis for laravel 8
Browse files Browse the repository at this point in the history
  • Loading branch information
rtconner committed Oct 17, 2020
1 parent c42d0a8 commit 4bdad82
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 31 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,6 @@ composer.phar
composer.lock
/vendor
.DS_Store
.phpunit.result.cache
.phpintel/*
.phpunit.result.cache
.php_cs.cache
11 changes: 8 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
language: php

php:
- 7.2
- 7.3
- 7.4

before_script:
- travis_retry composer self-update
- travis_retry composer update
- COMPOSER_MEMORY_LIMIT=-1 travis_retry composer install

script: vendor/bin/phpunit --verbose
script:
vendor/bin/phpunit --verbose

notifications:
email:
on_success: never
20 changes: 4 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,15 @@ Laravel Taggable Trait
[![Latest Stable Version](https://poser.pugx.org/rtconner/laravel-tagging/v/stable.svg)](https://packagist.org/packages/rtconner/laravel-tagging)
[![Total Downloads](https://poser.pugx.org/rtconner/laravel-tagging/downloads.svg)](https://packagist.org/packages/rtconner/laravel-tagging)
[![License](https://poser.pugx.org/rtconner/laravel-tagging/license.svg)](https://packagist.org/packages/rtconner/laravel-tagging)
[![Build Status](https://travis-ci.org/rtconner/laravel-tagging.svg?branch=laravel-7)](https://travis-ci.org/rtconner/laravel-tagging)
[![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)


[![Build Status](https://travis-ci.org/rtconner/laravel-tagging.svg?branch=laravel-8)](https://travis-ci.org/rtconner/laravel-tagging)
[![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)

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

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()

[Laravel/Lumen 5 Documentation](https://github.com/rtconner/laravel-tagging/tree/laravel-5)
[Laravel 4 Documentation](https://github.com/rtconner/laravel-tagging/tree/laravel-4)

#### Composer Install (for Laravel 5/6/7 and Lumen 5/6/7)

```shell
composer require rtconner/laravel-tagging "~4.0"
```bash
composer require rtconner/laravel-tagging
```

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

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

#### Upgrading Laravel 4 to 5

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.
Alternatively you can override Model::$morphClass on your model class to match the string stored in the database.

#### Credits

- Robert Conner - http://smartersoftware.net
Expand Down
31 changes: 20 additions & 11 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,19 @@
"authors": [
{
"name": "Robert Conner",
"email": "rtconner+gh@smarter.bz"
"email": "rtconner+composer@smarter.bz"
}
],
"require": {
"php": ">=7.0",
"illuminate/database": ">= 5.0|^6.0|^7.0|^8.0",
"illuminate/support": ">= 5.0|^6.0|^7.0|^8.0"
"php": "^7.3",
"illuminate/database": ">=8.0",
"illuminate/support": ">=8.0"
},
"require-dev": {
"orchestra/testbench": "5.*|4.*",
"phpunit/phpunit": "8.*",
"mockery/mockery": "~1.2",
"vlucas/phpdotenv": "~4.1"
"orchestra/testbench": "6.*",
"phpunit/phpunit": "9.*",
"mockery/mockery": "1.*",
"squizlabs/php_codesniffer": "3.*"
},
"autoload": {
"psr-4": {
Expand All @@ -38,8 +38,17 @@
]
}
},
"minimum-stability": "dev",
"scripts": {
"test": "./vendor/bin/phpunit tests"
}
"test": "vendor/bin/phpunit --color=always",
"check": [
"php-cs-fixer fix --ansi --dry-run --diff .",
"phpcs --report-width=200 --report-summary --report-full src/ tests/ --standard=PSR2 -n",
"phpmd src/,tests/ text ./phpmd.xml.dist"
],
"fix": [
"php-cs-fixer fix --ansi ."
]
},
"minimum-stability": "dev",
"prefer-stable": true
}

0 comments on commit 4bdad82

Please sign in to comment.