Skip to content

Commit

Permalink
Add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tmekinyan committed Mar 10, 2024
1 parent 61cdfc0 commit 74c316c
Show file tree
Hide file tree
Showing 9 changed files with 1,725 additions and 14 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/reports
/vendor
/.idea
.phpunit.result.cache
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
<p align="center"><img src="https://raw.githubusercontent.com/hibit-dev/geodetect/master/images/preview.png" alt="Automatically detect user's geo data based on their IP address"></p>

<p align="center">
<a href="https://github.com/hibit-dev/geodetect"><img alt="GitHub License" src="https://img.shields.io/github/license/hibit-dev/geodetect"></a>
<a href="https://packagist.org/packages/hibit-dev/geodetect"><img alt="Packagist Version" src="https://img.shields.io/packagist/v/hibit-dev/geodetect"></a>
<a href="https://packagist.org/packages/hibit-dev/geodetect"><img alt="Packagist Downloads" src="https://img.shields.io/packagist/dt/hibit-dev/geodetect"></a>
</p>

# GeoDetect: IP-based country detection
GeoDetect is a framework-agnostic PHP package that allows to effortlessly extract valuable country information from IP addresses. Powered by a robust and up-to-date IP geolocation database, the package provides accurate results and ensures reliable performance. By Integrating GeoDetect into your PHP applications developers can easily implement geolocation functionality without the hassle of building and maintaining their own IP geolocation database.

Expand Down
7 changes: 5 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
"illuminate/support": "^8.0|^9.0|^10.0"
},
"require-dev": {
"phpstan/phpstan": "^1.10"
"phpstan/phpstan": "^1.10",
"phpunit/phpunit": "^4.8|^5.5|^6.5|^9.4|^10.0|^11.0"
},
"autoload": {
"psr-4": {
Expand All @@ -38,7 +39,9 @@
}
},
"scripts": {
"analyse": "vendor/bin/phpstan analyse -c phpstan.neon"
"analyse": "vendor/bin/phpstan analyse -c phpstan.neon",
"test": "vendor/bin/phpunit tests",
"test-coverage": "vendor/bin/phpunit tests --coverage-html reports/"
},
"extra": {
"laravel": {
Expand Down
Loading

0 comments on commit 74c316c

Please sign in to comment.