Skip to content

Commit

Permalink
Drop support for PHP 7.4 (#1197)
Browse files Browse the repository at this point in the history
* Remove PHP 7.4

* Remove remaining .travis.yml

* Update CI for GeoIP

* Deprecate Geoip provider

geoip extension doesn't seem to be available in PHP 8.
  • Loading branch information
jbelien authored Jul 31, 2023
1 parent 30ae77f commit e472786
Show file tree
Hide file tree
Showing 86 changed files with 88 additions and 162 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/component.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php-version: ['7.4', '8.0', '8.1', '8.2']
php-version: ['8.0', '8.1', '8.2']
component: [Common, Http, Plugin]

name: PHP ${{ matrix.php-version }} / ${{ matrix.component }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php-version: ['7.4', '8.0', '8.1', '8.2']
php-version: ['8.0', '8.1', '8.2']
deps: ['low', 'high']
name: PHP ${{ matrix.php-version }} (${{ matrix.deps }})
steps:
Expand Down
28 changes: 1 addition & 27 deletions .github/workflows/provider.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php-version: ['7.4', '8.0', '8.1', '8.2']
php-version: ['8.0', '8.1', '8.2']
provider:
- AlgoliaPlaces
- ArcGISOnline
Expand Down Expand Up @@ -67,29 +67,3 @@ jobs:
- name: Run test suite
working-directory: ./src/Provider/${{ matrix.provider }}
run: composer run-script test

test-ext-geoip:
name: PHP ${{ matrix.php-version }} (geoip) / ${{ matrix.provider }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php-version: ['7.4']
provider:
- Geoip
steps:
- uses: actions/checkout@v3
- name: Use PHP ${{ matrix.php-version }}
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
extensions: curl, geoip
- name: Validate composer.json and composer.lock
working-directory: ./src/Provider/${{ matrix.provider }}
run: composer validate
- name: Install dependencies
working-directory: ./src/Provider/${{ matrix.provider }}
run: composer update --no-progress
- name: Run test suite
working-directory: ./src/Provider/${{ matrix.provider }}
run: composer run-script test
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
],
"homepage": "http://geocoder-php.org",
"require": {
"php": "^7.4 || ^8.0",
"php": "^8.0",
"igorw/get-in": "^1.0",
"php-http/discovery": "^1.4",
"php-http/message-factory": "^1.0.2",
Expand Down
2 changes: 1 addition & 1 deletion src/Common/.github/workflows/component.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php-version: ['7.4', '8.0', '8.1', '8.2']
php-version: ['8.0', '8.1', '8.2']
steps:
- uses: actions/checkout@v3
- name: Use PHP ${{ matrix.php-version }}
Expand Down
2 changes: 1 addition & 1 deletion src/Common/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
}
],
"require": {
"php": "^7.4 || ^8.0"
"php": "^8.0"
},
"require-dev": {
"nyholm/nsa": "^1.1",
Expand Down
2 changes: 1 addition & 1 deletion src/Http/.github/workflows/component.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php-version: ['7.4', '8.0', '8.1', '8.2']
php-version: ['8.0', '8.1', '8.2']
steps:
- uses: actions/checkout@v3
- name: Use PHP ${{ matrix.php-version }}
Expand Down
2 changes: 1 addition & 1 deletion src/Http/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
}
],
"require": {
"php": "^7.4 || ^8.0",
"php": "^8.0",
"php-http/client-implementation": "^1.0",
"php-http/discovery": "^1.6",
"php-http/httplug": "^1.0 || ^2.0",
Expand Down
2 changes: 1 addition & 1 deletion src/Plugin/.github/workflows/component.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php-version: ['7.4', '8.0', '8.1', '8.2']
php-version: ['8.0', '8.1', '8.2']
steps:
- uses: actions/checkout@v3
- name: Use PHP ${{ matrix.php-version }}
Expand Down
2 changes: 1 addition & 1 deletion src/Plugin/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
}
],
"require": {
"php": "^7.4 || ^8.0",
"php": "^8.0",
"php-http/promise": "^1.0",
"psr/log": "^1.0|^2.0|^3.0",
"psr/simple-cache": "^1.0|^2.0|^3.0",
Expand Down
2 changes: 1 addition & 1 deletion src/Provider/AlgoliaPlaces/.github/workflows/provider.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php-version: ['7.4', '8.0', '8.1', '8.2']
php-version: ['8.0', '8.1', '8.2']
steps:
- uses: actions/checkout@v3
- name: Use PHP ${{ matrix.php-version }}
Expand Down
2 changes: 1 addition & 1 deletion src/Provider/AlgoliaPlaces/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
}
],
"require": {
"php": "^7.4 || ^8.0",
"php": "^8.0",
"ext-json": "*",
"geocoder-php/common-http": "^4.1",
"willdurand/geocoder": "^4.0"
Expand Down
2 changes: 1 addition & 1 deletion src/Provider/ArcGISOnline/.github/workflows/provider.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php-version: ['7.4', '8.0', '8.1', '8.2']
php-version: ['8.0', '8.1', '8.2']
steps:
- uses: actions/checkout@v3
- name: Use PHP ${{ matrix.php-version }}
Expand Down
2 changes: 1 addition & 1 deletion src/Provider/ArcGISOnline/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
}
],
"require": {
"php": "^7.4 || ^8.0",
"php": "^8.0",
"geocoder-php/common-http": "^4.0",
"willdurand/geocoder": "^4.0"
},
Expand Down
2 changes: 1 addition & 1 deletion src/Provider/AzureMaps/.github/workflows/provider.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php-version: ['7.4', '8.0', '8.1', '8.2']
php-version: ['8.0', '8.1', '8.2']
steps:
- uses: actions/checkout@v3
- name: Use PHP ${{ matrix.php-version }}
Expand Down
2 changes: 1 addition & 1 deletion src/Provider/AzureMaps/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
],

"require": {
"php": "^7.4 || ^8.0",
"php": "^8.0",
"geocoder-php/common-http": "^4.0",
"willdurand/geocoder": "^4.0"
},
Expand Down
2 changes: 1 addition & 1 deletion src/Provider/BingMaps/.github/workflows/provider.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php-version: ['7.4', '8.0', '8.1', '8.2']
php-version: ['8.0', '8.1', '8.2']
steps:
- uses: actions/checkout@v3
- name: Use PHP ${{ matrix.php-version }}
Expand Down
2 changes: 1 addition & 1 deletion src/Provider/BingMaps/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
}
],
"require": {
"php": "^7.4 || ^8.0",
"php": "^8.0",
"geocoder-php/common-http": "^4.0",
"willdurand/geocoder": "^4.0"
},
Expand Down
2 changes: 1 addition & 1 deletion src/Provider/Cache/.github/workflows/provider.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php-version: ['7.4', '8.0', '8.1', '8.2']
php-version: ['8.0', '8.1', '8.2']
steps:
- uses: actions/checkout@v3
- name: Use PHP ${{ matrix.php-version }}
Expand Down
2 changes: 1 addition & 1 deletion src/Provider/Cache/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
}
],
"require": {
"php": "^7.4 || ^8.0",
"php": "^8.0",
"psr/simple-cache": "^1.0|^2.0|^3.0",
"willdurand/geocoder": "^4.0.0"
},
Expand Down
2 changes: 1 addition & 1 deletion src/Provider/Chain/.github/workflows/provider.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php-version: ['7.4', '8.0', '8.1', '8.2']
php-version: ['8.0', '8.1', '8.2']
steps:
- uses: actions/checkout@v3
- name: Use PHP ${{ matrix.php-version }}
Expand Down
2 changes: 1 addition & 1 deletion src/Provider/Chain/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
}
],
"require": {
"php": "^7.4 || ^8.0",
"php": "^8.0",
"psr/log": "^1.0|^2.0|^3.0",
"willdurand/geocoder": "^4.0"
},
Expand Down
2 changes: 1 addition & 1 deletion src/Provider/FreeGeoIp/.github/workflows/provider.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php-version: ['7.4', '8.0', '8.1', '8.2']
php-version: ['8.0', '8.1', '8.2']
steps:
- uses: actions/checkout@v3
- name: Use PHP ${{ matrix.php-version }}
Expand Down
2 changes: 1 addition & 1 deletion src/Provider/FreeGeoIp/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
}
],
"require": {
"php": "^7.4 || ^8.0",
"php": "^8.0",
"geocoder-php/common-http": "^4.1",
"willdurand/geocoder": "^4.0"
},
Expand Down
2 changes: 1 addition & 1 deletion src/Provider/GeoIP2/.github/workflows/provider.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php-version: ['7.4', '8.0', '8.1', '8.2']
php-version: ['8.0', '8.1', '8.2']
steps:
- uses: actions/checkout@v3
- name: Use PHP ${{ matrix.php-version }}
Expand Down
2 changes: 1 addition & 1 deletion src/Provider/GeoIP2/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
}
],
"require": {
"php": "^7.4 || ^8.0",
"php": "^8.0",
"geoip2/geoip2": "~2.0",
"willdurand/geocoder": "^4.0"
},
Expand Down
2 changes: 1 addition & 1 deletion src/Provider/GeoIPs/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
}
],
"require": {
"php": "^7.4 || ^8.0",
"php": "^8.0",
"geocoder-php/common-http": "^4.0",
"willdurand/geocoder": "^4.1"
},
Expand Down
2 changes: 1 addition & 1 deletion src/Provider/GeoPlugin/.github/workflows/provider.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php-version: ['7.4', '8.0', '8.1', '8.2']
php-version: ['8.0', '8.1', '8.2']
steps:
- uses: actions/checkout@v3
- name: Use PHP ${{ matrix.php-version }}
Expand Down
2 changes: 1 addition & 1 deletion src/Provider/GeoPlugin/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
}
],
"require": {
"php": "^7.4 || ^8.0",
"php": "^8.0",
"geocoder-php/common-http": "^4.0",
"igorw/get-in": "^1.0",
"willdurand/geocoder": "^4.0"
Expand Down
2 changes: 1 addition & 1 deletion src/Provider/GeocodeEarth/.github/workflows/provider.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php-version: ['7.4', '8.0', '8.1', '8.2']
php-version: ['8.0', '8.1', '8.2']
steps:
- uses: actions/checkout@v3
- name: Use PHP ${{ matrix.php-version }}
Expand Down
2 changes: 1 addition & 1 deletion src/Provider/GeocodeEarth/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
}
],
"require": {
"php": "^7.4 || ^8.0",
"php": "^8.0",
"geocoder-php/common-http": "^4.0",
"geocoder-php/pelias-provider": "^1.0",
"willdurand/geocoder": "^4.0"
Expand Down
33 changes: 0 additions & 33 deletions src/Provider/Geoip/.github/workflows/provider.yml

This file was deleted.

7 changes: 5 additions & 2 deletions src/Provider/Geoip/Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@
[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE)

This is the Geoip provider from the PHP Geocoder. This is a **READ ONLY** repository. See the
[main repo](https://github.com/geocoder-php/Geocoder) for information and documentation.
[main repo](https://github.com/geocoder-php/Geocoder) for information and documentation.

> **Warning**
> This provider is deprecated. Please use the [Geoip2 provider](https://github.com/geocoder-php/geoip2-provider).
### Install

Expand All @@ -18,5 +21,5 @@ composer require geocoder-php/geoip-provider

### Contribute

Contributions are very welcome! Send a pull request to the [main repository](https://github.com/geocoder-php/Geocoder) or
Contributions are very welcome! Send a pull request to the [main repository](https://github.com/geocoder-php/Geocoder) or
report any issues you find on the [issue tracker](https://github.com/geocoder-php/Geocoder/issues).
2 changes: 1 addition & 1 deletion src/Provider/Geoip/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
}
],
"require": {
"php": "^7.4 || ^8.0",
"php": "^8.0",
"ext-geoip": "*",
"willdurand/geocoder": "^4.0"
},
Expand Down
2 changes: 1 addition & 1 deletion src/Provider/Geonames/.github/workflows/provider.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php-version: ['7.4', '8.0', '8.1', '8.2']
php-version: ['8.0', '8.1', '8.2']
steps:
- uses: actions/checkout@v3
- name: Use PHP ${{ matrix.php-version }}
Expand Down
2 changes: 1 addition & 1 deletion src/Provider/Geonames/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
}
],
"require": {
"php": "^7.4 || ^8.0",
"php": "^8.0",
"geocoder-php/common-http": "^4.0",
"willdurand/geocoder": "^4.0"
},
Expand Down
2 changes: 1 addition & 1 deletion src/Provider/GoogleMaps/.github/workflows/provider.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php-version: ['7.4', '8.0', '8.1', '8.2']
php-version: ['8.0', '8.1', '8.2']
steps:
- uses: actions/checkout@v3
- name: Use PHP ${{ matrix.php-version }}
Expand Down
Loading

0 comments on commit e472786

Please sign in to comment.