Skip to content

Commit 2e19be4

Browse files
Merge pull request #55 from ARCANEDEV/develop
Adding Laravel 8 support
2 parents 1084cae + 91ec2ec commit 2e19be4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+61
-114
lines changed

.github/workflows/run-tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
strategy:
1010
fail-fast: true
1111
matrix:
12-
php: [7.2, 7.3, 7.4]
12+
php: [7.3, 7.4]
1313
dependency-version: [prefer-lowest, prefer-stable]
1414

1515
name: PHP ${{ matrix.php }} - ${{ matrix.dependency-version }}
@@ -22,7 +22,7 @@ jobs:
2222
uses: actions/cache@v2
2323
with:
2424
path: ~/.composer/cache/files
25-
key: dependencies-laravel-7-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
25+
key: dependencies-laravel-8-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
2626

2727
- name: Setup PHP
2828
uses: shivammathur/setup-php@v2

.scrutinizer.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ checks:
2222
tools:
2323
external_code_coverage:
2424
timeout: 600
25-
runs: 6
25+
runs: 4
2626
php_code_sniffer:
2727
enabled: true
2828
config:

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Feel free to check out the [releases](https://github.com/ARCANEDEV/SEO-Helper/re
2525
* Easy setup & configuration.
2626
* Well documented & IDE Friendly.
2727
* Well tested with maximum code quality.
28-
* Laravel `5.x | 6.x | 7.x` are supported.
28+
* Laravel `5.x` to `8.x` are supported.
2929
* Made with :heart: & :coffee:.
3030

3131
## Table of contents

_docs/0-Home.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ SEO Helper is a package that provides tools and helpers for SEO (Search Engine O
1111
* Easy setup & configuration.
1212
* Well documented & IDE Friendly.
1313
* Well tested with maximum code quality.
14-
* Laravel `5.x | 6.x | 7.x` are supported.
14+
* Laravel `5.x` to `8.x` are supported.
1515
* Made with :heart: & :coffee:.
1616

1717
## Table of contents

_docs/1-Installation-and-Setup.md

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,22 @@
1010

1111
## Version Compatibility
1212

13-
| SEO-Helper | Laravel |
14-
|:---------------------------------------|:---------------------------------------------------------------------------------------|
15-
| ![SEO-Helper v3.x][seo_helper_3_x] | ![Laravel v7.x][laravel_7_x] |
16-
| ![SEO-Helper v2.x][seo_helper_2_x] | ![Laravel v6.x][laravel_6_x] |
17-
| ![SEO-Helper v1.7.x][seo_helper_1_7_x] | ![Laravel v5.8][laravel_5_8] |
18-
| ![SEO-Helper v1.6.x][seo_helper_1_6_x] | ![Laravel v5.7][laravel_5_7] |
19-
| ![SEO-Helper v1.5.x][seo_helper_1_5_x] | ![Laravel v5.6][laravel_5_6] |
20-
| ![SEO-Helper v1.4.x][seo_helper_1_4_x] | ![Laravel v5.5][laravel_5_5] |
21-
| ![SEO-Helper v1.3.x][seo_helper_1_3_x] | ![Laravel v5.4][laravel_5_4] |
22-
| ![SEO-Helper v1.2.x][seo_helper_1_2_x] | ![Laravel v5.1][laravel_5_1] ![Laravel v5.2][laravel_5_2] ![Laravel v5.3][laravel_5_3] |
23-
| ![SEO-Helper v1.1.x][seo_helper_1_1_x] | ![Laravel v5.0][laravel_5_0] |
24-
13+
| Laravel | SEO-Helper |
14+
|:-----------------------------|:---------------------------------------|
15+
| ![Laravel v8.x][laravel_8_x] | ![SEO-Helper v4.x][seo_helper_4_x] |
16+
| ![Laravel v7.x][laravel_7_x] | ![SEO-Helper v3.x][seo_helper_3_x] |
17+
| ![Laravel v6.x][laravel_6_x] | ![SEO-Helper v2.x][seo_helper_2_x] |
18+
| ![Laravel v5.8][laravel_5_8] | ![SEO-Helper v1.7.x][seo_helper_1_7_x] |
19+
| ![Laravel v5.7][laravel_5_7] | ![SEO-Helper v1.6.x][seo_helper_1_6_x] |
20+
| ![Laravel v5.6][laravel_5_6] | ![SEO-Helper v1.5.x][seo_helper_1_5_x] |
21+
| ![Laravel v5.5][laravel_5_5] | ![SEO-Helper v1.4.x][seo_helper_1_4_x] |
22+
| ![Laravel v5.4][laravel_5_4] | ![SEO-Helper v1.3.x][seo_helper_1_3_x] |
23+
| ![Laravel v5.3][laravel_5_3] | ![SEO-Helper v1.2.x][seo_helper_1_2_x] |
24+
| ![Laravel v5.2][laravel_5_2] | ![SEO-Helper v1.2.x][seo_helper_1_2_x] |
25+
| ![Laravel v5.1][laravel_5_1] | ![SEO-Helper v1.2.x][seo_helper_1_2_x] |
26+
| ![Laravel v5.0][laravel_5_0] | ![SEO-Helper v1.1.x][seo_helper_1_1_x] |
27+
28+
[laravel_8_x]: https://img.shields.io/badge/v8.x-supported-brightgreen.svg?style=flat-square "Laravel v8.x"
2529
[laravel_7_x]: https://img.shields.io/badge/v7.x-supported-brightgreen.svg?style=flat-square "Laravel v7.x"
2630
[laravel_6_x]: https://img.shields.io/badge/v6.x-supported-brightgreen.svg?style=flat-square "Laravel v6.x"
2731
[laravel_5_8]: https://img.shields.io/badge/v5.8-supported-brightgreen.svg?style=flat-square "Laravel v5.8"
@@ -34,6 +38,7 @@
3438
[laravel_5_1]: https://img.shields.io/badge/v5.1-supported-brightgreen.svg?style=flat-square "Laravel v5.1"
3539
[laravel_5_0]: https://img.shields.io/badge/v5.0-supported-brightgreen.svg?style=flat-square "Laravel v5.0"
3640

41+
[seo_helper_4_x]: https://img.shields.io/badge/version-4.x-blue.svg?style=flat-square "SEO-Helper v4.x"
3742
[seo_helper_3_x]: https://img.shields.io/badge/version-3.x-blue.svg?style=flat-square "SEO-Helper v3.x"
3843
[seo_helper_2_x]: https://img.shields.io/badge/version-2.x-blue.svg?style=flat-square "SEO-Helper v2.x"
3944
[seo_helper_1_7_x]: https://img.shields.io/badge/version-1.7.x-blue.svg?style=flat-square "SEO-Helper v1.7.x"
@@ -54,7 +59,7 @@ You can install this package via [Composer](http://getcomposer.org/) by running
5459

5560
> **NOTE :** The package will automatically register itself if you're using Laravel `>= v5.5`, so you can skip this section.
5661
57-
Once the package is installed, you can register the service provider in `config/app.php` in the `providers` array:
62+
Once the package installed, you can register the service provider in `config/app.php` in the `providers` array:
5863

5964
```php
6065
// config/app.php

composer.json

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@
1717
"type": "library",
1818
"license": "MIT",
1919
"require": {
20-
"php": "^7.2.5",
21-
"arcanedev/php-html": "^4.0",
22-
"arcanedev/support": "^7.0"
20+
"php": "^7.3",
21+
"arcanedev/php-html": "^5.0",
22+
"arcanedev/support": "^8.0"
2323
},
2424
"require-dev": {
25-
"ext-dom": "*",
26-
"orchestra/testbench": "^5.0",
27-
"phpunit/phpunit": "^8.5|^9.0"
25+
"ext-dom": "*",
26+
"orchestra/testbench": "^6.0",
27+
"phpunit/phpunit": "^9.3"
2828
},
2929
"autoload": {
3030
"psr-4": {
@@ -37,13 +37,23 @@
3737
"Arcanedev\\SeoHelper\\Tests\\": "tests/"
3838
}
3939
},
40+
"scripts": {
41+
"test": "phpunit",
42+
"coverage": "phpunit --coverage-html build/coverage/html"
43+
},
4044
"extra": {
45+
"branch-alias": {
46+
"dev-develop": "4.x-dev"
47+
},
4148
"laravel": {
4249
"providers": [
4350
"Arcanedev\\SeoHelper\\SeoHelperServiceProvider"
4451
]
4552
}
4653
},
54+
"config": {
55+
"sort-packages": true
56+
},
4757
"minimum-stability": "dev",
4858
"prefer-stable": true
4959
}

phpunit.xml.dist

Lines changed: 13 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,25 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<phpunit backupGlobals="false"
3-
backupStaticAttributes="false"
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:noNamespaceSchemaLocation="./vendor/phpunit/phpunit/phpunit.xsd"
44
bootstrap="vendor/autoload.php"
55
colors="true"
6-
convertErrorsToExceptions="true"
7-
convertNoticesToExceptions="true"
8-
convertWarningsToExceptions="true"
9-
processIsolation="false"
10-
stopOnFailure="false"
11-
>
6+
>
127
<testsuites>
138
<testsuite name="Package Test Suite">
149
<directory suffix=".php">./tests/</directory>
1510
</testsuite>
1611
</testsuites>
17-
<filter>
18-
<whitelist>
19-
<directory suffix=".php">./src/</directory>
20-
</whitelist>
21-
</filter>
12+
<coverage processUncoveredFiles="true">
13+
<include>
14+
<directory suffix=".php">./src</directory>
15+
</include>
16+
<report>
17+
<clover outputFile="build/coverage/clover.xml"/>
18+
<html outputDirectory="build/coverage/html"/>
19+
<text outputFile="build/coverage/coverage.txt" showOnlySummary="true"/>
20+
</report>
21+
</coverage>
2222
<php>
2323
<env name="APP_ENV" value="testing"/>
2424
</php>
25-
<logging>
26-
<log type="coverage-clover" target="build/logs/clover.xml"/>
27-
<log type="coverage-text" target="build/logs/coverage.txt"/>
28-
<log type="coverage-html" target="build/logs/coverage"/>
29-
</logging>
3025
</phpunit>

src/Contracts/Entities/Analytics.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
/**
1010
* Interface Analytics
1111
*
12-
* @package Arcanedev\SeoHelper\Contracts\Entities
1312
* @author ARCANEDEV <arcanedev.maroc@gmail.com>
1413
*/
1514
interface Analytics extends Renderable

src/Contracts/Entities/Description.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
/**
1010
* Interface Description
1111
*
12-
* @package Arcanedev\SeoHelper\Contracts\Entities
1312
* @author ARCANEDEV <arcanedev.maroc@gmail.com>
1413
*/
1514
interface Description extends Renderable

src/Contracts/Entities/Keywords.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
/**
1010
* Interface Keywords
1111
*
12-
* @package Arcanedev\SeoHelper\Contracts\Entities
1312
* @author ARCANEDEV <arcanedev.maroc@gmail.com>
1413
*/
1514
interface Keywords extends Renderable

0 commit comments

Comments
 (0)