Skip to content

Commit 10211d3

Browse files
Merge pull request #19 from ARCANEDEV/develop
Starting Laravel v8 support
2 parents 9361c44 + 03f7f25 commit 10211d3

21 files changed

+74
-71
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
@@ -21,7 +21,7 @@ checks:
2121
tools:
2222
external_code_coverage:
2323
timeout: 600
24-
runs: 6
24+
runs: 4
2525
php_code_sniffer:
2626
enabled: true
2727
config:

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Feel free to check out the [releases](https://github.com/ARCANEDEV/Gravatar/rele
1919
### Features
2020

2121
* Framework-agnostic package.
22-
* Laravel `5.x | 6.x | 7.x` are Supported.
22+
* Laravel `5.x` to `8.x` are Supported.
2323
* Easy setup & configuration.
2424
* Well tested (100% code coverage with maximum code quality).
2525
* Made with :heart: & :coffee:.
@@ -47,7 +47,7 @@ Any ideas are welcome. Feel free to submit any issues or pull requests, please c
4747
[badge_insight]: https://img.shields.io/sensiolabs/i/b295ae87-bc10-4a43-9ca4-fbeab5c7fcda.svg?style=flat-square
4848
[badge_issues]: http://img.shields.io/github/issues/ARCANEDEV/Gravatar.svg?style=flat-square
4949
[badge_package]: https://img.shields.io/badge/package-arcanedev/gravatar-blue.svg?style=flat-square
50-
[badge_laravel]: https://img.shields.io/badge/Laravel%20Supported-5.x%20to%207.x-orange.svg?style=flat-square
50+
[badge_laravel]: https://img.shields.io/badge/Laravel%20Supported-5.x%20to%208.x-orange.svg?style=flat-square
5151
[badge_release]: https://img.shields.io/packagist/v/arcanedev/gravatar.svg?style=flat-square
5252
[badge_downloads]: https://img.shields.io/packagist/dt/arcanedev/gravatar.svg?style=flat-square
5353

_docs/0-Home.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Feel free to check out the [releases](https://github.com/ARCANEDEV/Gravatar/rele
77
### Features
88

99
* Framework-agnostic package.
10-
* Laravel `5.x | 6.x | 7.x` are Supported.
10+
* Laravel `5.x` to `8.x` are Supported.
1111
* Easy setup & configuration.
1212
* Well tested (100% code coverage with maximum code quality).
1313
* Made with :heart: & :coffee:.

_docs/1-Installation-and-Setup.md

Lines changed: 27 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -8,31 +8,37 @@
88

99
## Version Compatibility
1010

11-
| Gravatar | Laravel |
12-
|:---------------------------------|:--------------------------------------------------------------------------------------------------------------------|
13-
| ![Gravatar v4.x][gravatar_4_x] | ![Laravel v7.x][laravel_7_x] |
14-
| ![Gravatar v3.x][gravatar_3_x] | ![Laravel v6.x][laravel_6_x] |
15-
| ![Gravatar v2.4.x][gravatar_2_4] | ![Laravel v5.8][laravel_5_8] |
16-
| ![Gravatar v2.3.x][gravatar_2_3] | ![Laravel v5.7][laravel_5_7] |
17-
| ![Gravatar v2.2.x][gravatar_2_2] | ![Laravel v5.6][laravel_5_6] |
18-
| ![Gravatar v2.1.x][gravatar_2_1] | ![Laravel v5.5][laravel_5_5] |
19-
| ![Gravatar v2.0.x][gravatar_2_0] | ![Laravel v5.4][laravel_5_4] |
20-
| ![Gravatar v1.x][gravatar_1_x] | ![Laravel v5.0][laravel_5_0] ![Laravel v5.1][laravel_5_1] ![Laravel v5.2][laravel_5_2] ![Laravel v5.3][laravel_5_3] |
11+
| Laravel | Gravatar |
12+
|:-----------------------------|:---------------------------------|
13+
| ![Laravel v8.x][laravel_8_x] | ![Gravatar v5.x][gravatar_5_x] |
14+
| ![Laravel v7.x][laravel_7_x] | ![Gravatar v4.x][gravatar_4_x] |
15+
| ![Laravel v6.x][laravel_6_x] | ![Gravatar v3.x][gravatar_3_x] |
16+
| ![Laravel v5.8][laravel_5_8] | ![Gravatar v2.4.x][gravatar_2_4] |
17+
| ![Laravel v5.7][laravel_5_7] | ![Gravatar v2.3.x][gravatar_2_3] |
18+
| ![Laravel v5.6][laravel_5_6] | ![Gravatar v2.2.x][gravatar_2_2] |
19+
| ![Laravel v5.5][laravel_5_5] | ![Gravatar v2.1.x][gravatar_2_1] |
20+
| ![Laravel v5.4][laravel_5_4] | ![Gravatar v2.0.x][gravatar_2_0] |
21+
| ![Laravel v5.3][laravel_5_3] | ![Gravatar v1.x][gravatar_1_x] |
22+
| ![Laravel v5.2][laravel_5_2] | ![Gravatar v1.x][gravatar_1_x] |
23+
| ![Laravel v5.1][laravel_5_1] | ![Gravatar v1.x][gravatar_1_x] |
24+
| ![Laravel v5.0][laravel_5_0] | ![Gravatar v1.x][gravatar_1_x] |
2125

2226
> **Note :** This is a framework-agnostic package, so you can use any version of this package in your PHP project.
2327
24-
[laravel_7_x]: https://img.shields.io/badge/v7.x-supported-brightgreen.svg?style=flat-square "Laravel v7.x"
25-
[laravel_6_x]: https://img.shields.io/badge/v6.x-supported-brightgreen.svg?style=flat-square "Laravel v6.x"
26-
[laravel_5_8]: https://img.shields.io/badge/v5.8-supported-brightgreen.svg?style=flat-square "Laravel v5.8"
27-
[laravel_5_7]: https://img.shields.io/badge/v5.7-supported-brightgreen.svg?style=flat-square "Laravel v5.7"
28-
[laravel_5_6]: https://img.shields.io/badge/v5.6-supported-brightgreen.svg?style=flat-square "Laravel v5.6"
29-
[laravel_5_5]: https://img.shields.io/badge/v5.5-supported-brightgreen.svg?style=flat-square "Laravel v5.5"
30-
[laravel_5_4]: https://img.shields.io/badge/v5.4-supported-brightgreen.svg?style=flat-square "Laravel v5.4"
31-
[laravel_5_3]: https://img.shields.io/badge/v5.3-supported-brightgreen.svg?style=flat-square "Laravel v5.3"
32-
[laravel_5_2]: https://img.shields.io/badge/v5.2-supported-brightgreen.svg?style=flat-square "Laravel v5.2"
33-
[laravel_5_1]: https://img.shields.io/badge/v5.1-supported-brightgreen.svg?style=flat-square "Laravel v5.1"
34-
[laravel_5_0]: https://img.shields.io/badge/v5.0-supported-brightgreen.svg?style=flat-square "Laravel v5.0"
28+
[laravel_8_x]: https://img.shields.io/badge/version-8.x-blue.svg?style=flat-square "Laravel v8.x"
29+
[laravel_7_x]: https://img.shields.io/badge/version-7.x-blue.svg?style=flat-square "Laravel v7.x"
30+
[laravel_6_x]: https://img.shields.io/badge/version-6.x-blue.svg?style=flat-square "Laravel v6.x"
31+
[laravel_5_8]: https://img.shields.io/badge/version-5.8-blue.svg?style=flat-square "Laravel v5.8"
32+
[laravel_5_7]: https://img.shields.io/badge/version-5.7-blue.svg?style=flat-square "Laravel v5.7"
33+
[laravel_5_6]: https://img.shields.io/badge/version-5.6-blue.svg?style=flat-square "Laravel v5.6"
34+
[laravel_5_5]: https://img.shields.io/badge/version-5.5-blue.svg?style=flat-square "Laravel v5.5"
35+
[laravel_5_4]: https://img.shields.io/badge/version-5.4-blue.svg?style=flat-square "Laravel v5.4"
36+
[laravel_5_3]: https://img.shields.io/badge/version-5.3-blue.svg?style=flat-square "Laravel v5.3"
37+
[laravel_5_2]: https://img.shields.io/badge/version-5.2-blue.svg?style=flat-square "Laravel v5.2"
38+
[laravel_5_1]: https://img.shields.io/badge/version-5.1-blue.svg?style=flat-square "Laravel v5.1"
39+
[laravel_5_0]: https://img.shields.io/badge/version-5.0-blue.svg?style=flat-square "Laravel v5.0"
3540

41+
[gravatar_5_x]: https://img.shields.io/badge/version-5.x-blue.svg?style=flat-square "Gravatar v5.x"
3642
[gravatar_4_x]: https://img.shields.io/badge/version-4.x-blue.svg?style=flat-square "Gravatar v4.x"
3743
[gravatar_3_x]: https://img.shields.io/badge/version-3.x-blue.svg?style=flat-square "Gravatar v3.x"
3844
[gravatar_2_4]: https://img.shields.io/badge/version-2.4.x-blue.svg?style=flat-square "Gravatar v2.4.x"

composer.json

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@
1616
"type": "library",
1717
"license": "MIT",
1818
"require": {
19-
"php" : "^7.2.5",
20-
"ext-curl": "*",
21-
"arcanedev/support": "^7.0",
22-
"arcanedev/php-html": "^4.0"
19+
"php": "^7.3",
20+
"ext-curl": "*",
21+
"arcanedev/php-html": "^5.0",
22+
"arcanedev/support": "^8.0"
2323
},
2424
"require-dev": {
25-
"orchestra/testbench": "^5.0",
26-
"phpunit/phpunit": "^8.5|^9.5"
25+
"orchestra/testbench": "^6.0",
26+
"phpunit/phpunit": "^9.3"
2727
},
2828
"autoload": {
2929
"psr-4": {
@@ -36,13 +36,23 @@
3636
"Arcanedev\\Gravatar\\Tests\\": "tests/"
3737
}
3838
},
39+
"scripts": {
40+
"test": "phpunit",
41+
"coverage": "phpunit --coverage-html build/coverage/html"
42+
},
3943
"extra": {
44+
"branch-alias": {
45+
"dev-develop": "5.x-dev"
46+
},
4047
"laravel": {
4148
"providers": [
4249
"Arcanedev\\Gravatar\\GravatarServiceProvider"
4350
]
4451
}
4552
},
53+
"config": {
54+
"sort-packages": true
55+
},
4656
"minimum-stability": "dev",
4757
"prefer-stable": true
4858
}

phpunit.xml.dist

Lines changed: 14 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,22 @@
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">
14-
<directory suffix=".php">./tests/</directory>
9+
<directory suffix=".php">./tests</directory>
1510
</testsuite>
1611
</testsuites>
17-
<filter>
18-
<whitelist>
19-
<directory suffix=".php">./src/</directory>
20-
</whitelist>
21-
</filter>
22-
<logging>
23-
<log type="coverage-clover" target="build/logs/clover.xml"/>
24-
<log type="coverage-text" target="build/logs/coverage.txt"/>
25-
<log type="coverage-html" target="build/logs/coverage"/>
26-
</logging>
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>
2722
</phpunit>

src/Concerns/HashEmail.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
/**
88
* Trait HashEmail
99
*
10-
* @package Arcanedev\Gravatar\Concerns
1110
* @author ARCANEDEV <arcanedev.maroc@gmail.com>
1211
*/
1312
trait HashEmail

src/Contracts/Gravatar.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
/**
88
* Interface Gravatar
99
*
10-
* @package Arcanedev\Gravatar\Contracts
1110
* @author ARCANEDEV <arcanedev.maroc@gmail.com>
1211
*/
1312
interface Gravatar

src/Exceptions/InvalidImageRatingException.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
/**
1010
* Class InvalidImageRatingException
1111
*
12-
* @package Arcanedev\Gravatar\Exceptions
1312
* @author ARCANEDEV <arcanedev.maroc@gmail.com>
1413
*/
1514
class InvalidImageRatingException extends InvalidArgumentException

0 commit comments

Comments
 (0)