Skip to content

Commit 21b7eff

Browse files
Merge pull request #6 from ARCANEDEV/develop
Updating the package for Laravel 5.5
2 parents 32a7b45 + 7c4f50d commit 21b7eff

File tree

14 files changed

+61
-35
lines changed

14 files changed

+61
-35
lines changed

.scrutinizer.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ checks:
2323
tools:
2424
external_code_coverage:
2525
timeout: 600
26-
runs: 3
26+
runs: 2
2727
php_code_sniffer:
2828
enabled: true
2929
config:

.travis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ language: php
33
sudo: false
44

55
php:
6-
- 5.6
76
- 7.0
87
- 7.1
98
- nightly

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Spam Blocker is a package that allows you to block referral spammers.
2525
* Easy setup & configuration.
2626
* Well documented & IDE Friendly.
2727
* Well tested with maximum code quality.
28-
* Laravel `5.1 | 5.2 | 5.3 | 5.4` are supported.
28+
* Laravel `5.1 | 5.2 | 5.3 | 5.4 | 5.5` are supported.
2929
* Made with :heart: & :coffee:.
3030

3131
## TODOS
@@ -45,7 +45,7 @@ If you discover any security related issues, please email arcanedev.maroc@gmail.
4545
- [ARCANEDEV][link-author]
4646
- [All Contributors][link-contributors]
4747

48-
[badge_laravel]: https://img.shields.io/badge/Laravel-5.1%20to%205.4-orange.svg?style=flat-square
48+
[badge_laravel]: https://img.shields.io/badge/Laravel-5.1%20to%205.5-orange.svg?style=flat-square
4949
[badge_license]: https://img.shields.io/packagist/l/arcanedev/spam-blocker.svg?style=flat-square
5050
[badge_build]: https://img.shields.io/travis/ARCANEDEV/SpamBlocker.svg?style=flat-square
5151
[badge_coverage]: https://img.shields.io/scrutinizer/coverage/g/ARCANEDEV/SpamBlocker.svg?style=flat-square

_docs/0.Home.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Spam Blocker is a package that allows you to block referral spammers.
77
* Easy setup & configuration.
88
* Well documented & IDE Friendly.
99
* Well tested with maximum code quality.
10-
* Laravel `5.1 | 5.2 | 5.3 | 5.4` are supported.
10+
* Laravel `5.1 | 5.2 | 5.3 | 5.4 | 5.5` are supported.
1111
* Made with :heart: & :coffee:.
1212

1313
## Table of contents

_docs/1.Installation-and-Setup.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
The Spam Blocker package has a few system requirements:
1212

1313
```
14-
- PHP >= 5.6.4
14+
- PHP >= 7.0
1515
```
1616

1717
## Version Compatibility
@@ -20,14 +20,17 @@ The Spam Blocker package has a few system requirements:
2020
|:-------------------------------------------|:---------------------------------------------------------------------------------------|
2121
| ![Spam Blocker v1.2.x][spam_blocker_1_2_x] | ![Laravel v5.1][laravel_5_1] ![Laravel v5.2][laravel_5_2] ![Laravel v5.3][laravel_5_3] |
2222
| ![Spam Blocker v1.3.x][spam_blocker_1_3_x] | ![Laravel v5.4][laravel_5_4] |
23+
| ![Spam Blocker v1.4.x][spam_blocker_1_4_x] | ![Laravel v5.5][laravel_5_5] |
2324

2425
[laravel_5_1]: https://img.shields.io/badge/v5.1-supported-brightgreen.svg?style=flat-square "Laravel v5.1"
2526
[laravel_5_2]: https://img.shields.io/badge/v5.2-supported-brightgreen.svg?style=flat-square "Laravel v5.2"
2627
[laravel_5_3]: https://img.shields.io/badge/v5.3-supported-brightgreen.svg?style=flat-square "Laravel v5.3"
2728
[laravel_5_4]: https://img.shields.io/badge/v5.4-supported-brightgreen.svg?style=flat-square "Laravel v5.4"
29+
[laravel_5_5]: https://img.shields.io/badge/v5.5-supported-brightgreen.svg?style=flat-square "Laravel v5.5"
2830

2931
[spam_blocker_1_2_x]: https://img.shields.io/badge/version-1.2.*-blue.svg?style=flat-square "Spam Blocker v1.2.*"
3032
[spam_blocker_1_3_x]: https://img.shields.io/badge/version-1.3.*-blue.svg?style=flat-square "Spam Blocker v1.3.*"
33+
[spam_blocker_1_4_x]: https://img.shields.io/badge/version-1.4.*-blue.svg?style=flat-square "Spam Blocker v1.4.*"
3134

3235
## Composer
3336

@@ -37,6 +40,8 @@ You can install this package via [Composer](http://getcomposer.org/) by running
3740

3841
### Setup
3942

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

4247
```php

_docs/2.Configuration.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
11
# 2. Configuration
22

3-
### Coming Soon…
3+
## Table of contents
4+
5+
1. [Installation and Setup](1.Installation-and-Setup.md)
6+
2. [Configuration](2.Configuration.md)
7+
3. [Usage](3.Usage.md)
8+
9+
> Coming Soon…

_docs/3.Usage.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
11
# 3. Usage
22

3-
### Coming Soon…
3+
## Table of contents
4+
5+
1. [Installation and Setup](1.Installation-and-Setup.md)
6+
2. [Configuration](2.Configuration.md)
7+
3. [Usage](3.Usage.md)
8+
9+
> Coming Soon…

composer.json

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@
1414
"type": "library",
1515
"license": "MIT",
1616
"require": {
17-
"php": ">=5.6.4",
18-
"arcanedev/support": "~4.1.0",
17+
"php": ">=7.0",
18+
"arcanedev/support": "~4.2.0",
1919
"piwik/referrer-spam-blacklist": "~1.0"
2020
},
2121
"require-dev": {
22-
"orchestra/testbench": "~3.4.0",
23-
"phpunit/phpcov": "~3.0",
24-
"phpunit/phpunit": "~5.0"
22+
"orchestra/testbench": "~3.5.0",
23+
"phpunit/phpcov": "~4.0",
24+
"phpunit/phpunit": "~6.0"
2525
},
2626
"autoload": {
2727
"psr-4": {
@@ -32,5 +32,15 @@
3232
"psr-4": {
3333
"Arcanedev\\SpamBlocker\\Tests\\": "tests/"
3434
}
35+
},
36+
"extra": {
37+
"laravel": {
38+
"providers": [
39+
"Arcanedev\\SpamBlocker\\SpamBlockerServiceProvider"
40+
],
41+
"aliases": {
42+
"SpamBlocker": "Arcanedev\\SpamBlocker\\Facades\\SpamBlocker"
43+
}
44+
}
3545
}
3646
}

src/Contracts/SpamBlocker.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ interface SpamBlocker
1616
/**
1717
* Get the loaded spammers.
1818
*
19-
* @return \Arcanedev\SpamBlocker\Entities\Spammers
19+
* @return \Arcanedev\SpamBlocker\Entities\SpammerCollection
2020
*/
2121
public function spammers();
2222

@@ -94,7 +94,7 @@ public function block($host);
9494
/**
9595
* Get all spammers (allowed and blocked one).
9696
*
97-
* @return \Arcanedev\SpamBlocker\Entities\Spammers
97+
* @return \Arcanedev\SpamBlocker\Entities\SpammerCollection
9898
*/
9999
public function all();
100100

src/Entities/Spammers.php renamed to src/Entities/SpammerCollection.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
<?php namespace Arcanedev\SpamBlocker\Entities;
22

3-
use Arcanedev\Support\Collection;
3+
use Illuminate\Support\Collection;
44

55
/**
6-
* Class Spammers
6+
* Class SpammerCollection
77
*
88
* @package Arcanedev\SpamBlocker\Entities
99
* @author ARCANEDEV <arcanedev.maroc@gmail.com>
1010
*/
11-
class Spammers extends Collection
11+
class SpammerCollection extends Collection
1212
{
1313
/* -----------------------------------------------------------------
1414
| Main Methods

0 commit comments

Comments
 (0)