Skip to content

Commit 027c9bc

Browse files
Merge pull request #8 from ARCANEDEV/update-laravel_5.4_support
Adding Laravel 5.4 Support
2 parents 7d7c011 + 4ecdd33 commit 027c9bc

16 files changed

+126
-41
lines changed

.gitattributes

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
1+
* text=auto
2+
3+
/.github export-ignore
14
/_docs export-ignore
25
/tests export-ignore
3-
/.editorconfig export-ignore
4-
/.gitattributes export-ignore
5-
/.gitignore export-ignore
6-
/.scrutinizer.yml export-ignore
7-
/.travis.yml export-ignore
8-
/phpunit.xml export-ignore
6+
.editorconfig export-ignore
7+
.gitattributes export-ignore
8+
.gitignore export-ignore
9+
.scrutinizer.yml export-ignore
10+
.travis.yml export-ignore
11+
phpunit.xml export-ignore
12+
CONTRIBUTING.md export-ignore

.github/ISSUE_TEMPLATE.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
- GeoIP Version: #.#.#
2+
- Laravel Version: #.#.#
3+
- PHP Version: #.#.#
4+
5+
### Description:
6+
7+
### Steps To Reproduce:

.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: 3
2626
php_code_sniffer:
2727
enabled: true
2828
config:

.travis.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@ matrix:
1313
- php: nightly
1414

1515
env:
16-
- TESTBENCH_VERSION=3.1.*
17-
- TESTBENCH_VERSION=3.2.*
18-
- TESTBENCH_VERSION=3.3.*
16+
- TESTBENCH_VERSION=3.4.*
1917

2018
before_script:
2119
- travis_retry composer self-update

CONTRIBUTING.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# CONTRIBUTING
2+
3+
Contributions are welcome, and are accepted via pull requests. Please review these guidelines before submitting any pull requests.
4+
5+
## Guidelines
6+
7+
* Please follow the [PSR-2](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md) Coding Standard, PHP-FIG Naming Conventions and the [PSR-4](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-4-autoloader.md) autoloading standard
8+
* Ensure that the current tests pass, and if you've added something new, add the tests where relevant.
9+
* Remember that we follow SemVer. If you are changing the behaviour, or the public api, you may need to update the docs.
10+
* Send a coherent commit history, making sure each individual commit in your pull request is meaningful. If you had to make multiple intermediate commits while developing, please squash them before submitting.
11+
* You may also need to rebase to avoid merge conflicts.
12+
13+
## Running Tests
14+
15+
You will need an install of [Composer](https://getcomposer.org) before continuing.
16+
17+
First, install the dependencies:
18+
19+
```bash
20+
$ composer install
21+
```
22+
23+
Then run phpunit:
24+
25+
```bash
26+
$ vendor/bin/phpunit
27+
```
28+
29+
If the test suite passes on your local machine you should be good to go.
30+
31+
When you make a pull request, the tests will automatically be run again by [Travis CI](https://travis-ci.org/).

LICENSE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2015-2016 ARCANEDEV <arcanedev.maroc@gmail.com> - GeoIP
3+
Copyright (c) 2015-2017 ARCANEDEV <arcanedev.maroc@gmail.com> - GeoIP
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,18 @@ Feel free to check out the [releases](https://github.com/ARCANEDEV/GeoIP/release
1818

1919
## Features
2020

21-
- Coming soon&hellip;
22-
21+
* Well tested with maximum code quality.
22+
* Easy setup &amp; configuration.
23+
* Laravel `5.1 | 5.2 | 5.3 | 5.4` are supported.
24+
* Well documented &amp; IDE Friendly.
25+
* Made with :heart: &amp; :coffee:.
26+
27+
## Table of contents
28+
29+
1. [Installation and Setup](_docs/1-Installation-and-Setup.md)
30+
2. [Configuration](_docs/2-Configuration.md)
31+
3. [Usage](_docs/3-Usage.md)
32+
2333
## Security
2434

2535
If you discover any security related issues, please email arcanedev-maroc@gmail.com instead of using the issue tracker.

_docs/0-Home.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# GeoIP
2+
3+
GeoIP package for Laravel.
4+
5+
### Features
6+
7+
* Well tested with maximum code quality.
8+
* Easy setup &amp; configuration.
9+
* Laravel `5.1 | 5.2 | 5.3 | 5.4` are supported.
10+
* Well documented &amp; IDE Friendly.
11+
* Made with :heart: &amp; :coffee:.
12+
13+
## Table of contents
14+
15+
1. [Installation and Setup](1-Installation-and-Setup.md)
16+
2. [Configuration](2-Configuration.md)
17+
3. [Usage](3-Usage.md)

_docs/1-Installation-and-Setup.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# 1. Installation
2+
3+
## Server Requirements
4+
5+
The GeoIP package has a few system requirements:
6+
7+
- PHP >= 5.6.4
8+
9+
## Version Compatibility
10+
11+
| GeoIP | Laravel |
12+
|:------------------------------|:---------------------------------------------------------------------------------------|
13+
| ![GeoIP v2.0.x][geo_ip_2_0_x] | ![Laravel v5.1][laravel_5_1] ![Laravel v5.2][laravel_5_2] ![Laravel v5.3][laravel_5_3] |
14+
| ![GeoIP v2.1.x][geo_ip_2_1_x] | ![Laravel v5.4][laravel_5_4] |
15+
16+
[laravel_5_1]: https://img.shields.io/badge/v5.1-supported-brightgreen.svg?style=flat-square "Laravel v5.1"
17+
[laravel_5_2]: https://img.shields.io/badge/v5.2-supported-brightgreen.svg?style=flat-square "Laravel v5.2"
18+
[laravel_5_3]: https://img.shields.io/badge/v5.3-supported-brightgreen.svg?style=flat-square "Laravel v5.3"
19+
[laravel_5_4]: https://img.shields.io/badge/v5.4-supported-brightgreen.svg?style=flat-square "Laravel v5.4"
20+
21+
[geo_ip_2_0_x]: https://img.shields.io/badge/version-2.0.*-blue.svg?style=flat-square "GeoIP v2.0.*"
22+
[geo_ip_2_1_x]: https://img.shields.io/badge/version-2.1.*-blue.svg?style=flat-square "GeoIP v2.1.*"
23+
24+
## Composer
25+
26+
Coming Soon...

_docs/2-Configuration.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# 2. Configuration
2+
3+
Coming Soon...

0 commit comments

Comments
 (0)