Skip to content

Commit

Permalink
Merge pull request #67 from nguyenanhung/v4.x
Browse files Browse the repository at this point in the history
Add v4.x
  • Loading branch information
nguyenanhung authored Apr 2, 2024
2 parents 5d7901f + 1029ba3 commit 98a5bbc
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 37 deletions.
66 changes: 33 additions & 33 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,36 +2,36 @@
name: Testing My Requests by HungNG
on: [ push, pull_request ]
jobs:
build:
strategy:
matrix:
operating-system: [ ubuntu-latest, ubuntu-20.04, ubuntu-22.04, macos-latest, macos-11 ]
php-versions: [ '7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2' ]
runs-on: ${{ matrix.operating-system }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup PHP, with composer and extensions
uses: shivammathur/setup-php@v2 # From https://github.com/shivammathur/setup-php
with:
php-version: ${{ matrix.php-versions }}
extensions: mbstring, intl, curl, json, openssl, iconv, mcrypt, sodium, bcmath, xml
- name: Get composer cache directory
id: composer-cache
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
- name: Cache dependencies
uses: actions/cache@v3
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ runner.os }}-composer-
- name: Install dependencies
run: composer install --no-progress --prefer-dist --optimize-autoloader
- name: Test class My Requests
run: php ./test/testRequest.php
- name: Test Helper Simple Send Request & Get IP Address
run: php ./test/testHelper.php
- name: Test class IP
run: php ./test/testIP.php
- name: Test class Utils
run: php ./test/testUtils.php
build:
strategy:
matrix:
operating-system: [ ubuntu-latest,macos-latest ]
php-versions: [ '8.0', '8.1', '8.2' ]
runs-on: ${{ matrix.operating-system }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup PHP, with composer and extensions
uses: shivammathur/setup-php@v2 # From https://github.com/shivammathur/setup-php
with:
php-version: ${{ matrix.php-versions }}
extensions: mbstring, intl, curl, json, openssl, iconv, mcrypt, sodium, bcmath, xml
- name: Get composer cache directory
id: composer-cache
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
- name: Cache dependencies
uses: actions/cache@v3
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ runner.os }}-composer-
- name: Install dependencies
run: composer install --no-progress --prefer-dist --optimize-autoloader
- name: Test class My Requests
run: php ./test/testRequest.php
- name: Test Helper Simple Send Request & Get IP Address
run: php ./test/testHelper.php
- name: Test class IP
run: php ./test/testIP.php
- name: Test class Utils
run: php ./test/testUtils.php
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@
}
],
"require": {
"php": ">=7.0",
"php": "^8.0",
"ext-curl": "*",
"ext-json": "*",
"ext-iconv": "*",
"symfony/http-foundation": "^6.0 || ^5.3 || ^4.4 || ^3.4",
"symfony/http-foundation": "^7.0 || ^6.0 || ^5.4 || ^4.4 || ^3.4",
"symfony/polyfill-mbstring": ">= 1.0",
"php-curl-class/php-curl-class": "^9 || ^8",
"guzzlehttp/guzzle": "^7 || ^6",
Expand Down
4 changes: 2 additions & 2 deletions src/ProjectInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
*/
interface ProjectInterface
{
const VERSION = '3.1.2';
const VERSION = '4.0.0';
const LAST_MODIFIED = '2024-04-02';
const MIN_PHP_VERSION = '7.0';
const MIN_PHP_VERSION = '8.0';
const GET = 'GET';
const HEAD = 'HEAD';
const DELETE = 'DELETE';
Expand Down

0 comments on commit 98a5bbc

Please sign in to comment.