-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from ipinfo/uman/fixes
Various fixes & updates for v2
- Loading branch information
Showing
99 changed files
with
13,377 additions
and
233 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
build | ||
composer.lock | ||
vendor | ||
.phpunit.result.cache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# CHANGELOG | ||
|
||
All notable changes to `ipinfolaravel` will be documented in this file. | ||
|
||
## Version 2.0 | ||
|
||
- Supports Laravel 5.x to 8.x. | ||
- The `ipinfo` object on the request object is not accessible via input, e.g. | ||
`$request->input('ipinfo')->ip`; you must use `$request->ipinfo->ip`, etc. | ||
- The IP for which data is retrieved is now correctly the **client IP**, and | ||
not the server IP. | ||
|
||
## Version 1.0 | ||
|
||
### Added | ||
|
||
- Everything |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,19 +7,25 @@ | |
"name": "James Timmins", | ||
"email": "[email protected]", | ||
"homepage": "https://www.ipinfo.io" | ||
}, | ||
{ | ||
"name": "Uman Shahzad", | ||
"email": "[email protected]", | ||
"homepage": "https://github.com/UmanShahzad" | ||
} | ||
], | ||
"homepage": "https://github.com/ipinfo/ipinfolaravel", | ||
"keywords": ["Laravel", "ipinfolaravel"], | ||
"require": { | ||
"illuminate/support": "~5", | ||
"ipinfo/ipinfo": "^1.0@dev" | ||
"illuminate/support": ">=5, <9", | ||
"ipinfo/ipinfo": "^2.0@dev" | ||
}, | ||
"require-dev": { | ||
"phpunit/phpunit": "~7.0", | ||
"mockery/mockery": "^1.1", | ||
"orchestra/testbench": "~3.0", | ||
"sempro/phpunit-pretty-print": "^1.0" | ||
"phpunit/phpunit": ">=8 <10", | ||
"mockery/mockery": "^1.4.2", | ||
"orchestra/testbench": "^6.4.0", | ||
"sempro/phpunit-pretty-print": "^1.3.0", | ||
"squizlabs/php_codesniffer": "^3.5.8" | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
|
@@ -31,6 +37,10 @@ | |
"ipinfo\\ipinfolaravel\\Tests\\": "tests" | ||
} | ||
}, | ||
"scripts": { | ||
"check-style": "phpcs -p --standard=PSR2 --runtime-set ignore_errors_on_exit 1 --runtime-set ignore_warnings_on_exit 1 src config", | ||
"fix-style": "phpcbf -p --standard=PSR2 --runtime-set ignore_errors_on_exit 1 --runtime-set ignore_warnings_on_exit 1 src config" | ||
}, | ||
"extra": { | ||
"laravel": { | ||
"providers": [ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,4 @@ | |
|
||
return [ | ||
// | ||
]; | ||
]; |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,16 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<phpunit bootstrap="vendor/autoload.php" | ||
backupGlobals="false" | ||
backupStaticAttributes="false" | ||
colors="true" | ||
verbose="true" | ||
convertErrorsToExceptions="true" | ||
convertNoticesToExceptions="true" | ||
convertWarningsToExceptions="true" | ||
processIsolation="false" | ||
stopOnFailure="false"> | ||
<testsuites> | ||
<testsuite name="Package"> | ||
<directory suffix=".php">./tests/</directory> | ||
</testsuite> | ||
</testsuites> | ||
<filter> | ||
<whitelist> | ||
<directory>src/</directory> | ||
</whitelist> | ||
</filter> | ||
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="vendor/autoload.php" backupGlobals="false" backupStaticAttributes="false" colors="true" verbose="true" convertErrorsToExceptions="true" convertNoticesToExceptions="true" convertWarningsToExceptions="true" processIsolation="false" stopOnFailure="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"> | ||
<coverage> | ||
<include> | ||
<directory suffix=".php">src/</directory> | ||
</include> | ||
</coverage> | ||
<testsuites> | ||
<testsuite name="ipinfo-laravel Test Suite"> | ||
<directory>tests</directory> | ||
</testsuite> | ||
</testsuites> | ||
<logging> | ||
<junit outputFile="build/report.junit.xml"/> | ||
</logging> | ||
</phpunit> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?xml version="1.0"?> | ||
<psalm | ||
errorLevel="8" | ||
resolveFromConfigFile="true" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xmlns="https://getpsalm.org/schema/config" | ||
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd" | ||
> | ||
<projectFiles> | ||
<directory name="src" /> | ||
<ignoreFiles> | ||
<directory name="vendor" /> | ||
</ignoreFiles> | ||
</projectFiles> | ||
</psalm> |
Oops, something went wrong.