-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
22 changed files
with
124 additions
and
85 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,39 @@ | ||
name: build | ||
|
||
on: [push, pull_request] | ||
|
||
env: | ||
DEFAULT_COMPOSER_FLAGS: "--prefer-dist --no-interaction --no-progress --optimize-autoloader" | ||
|
||
jobs: | ||
phpunit: | ||
name: PHP ${{ matrix.php }} on ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest] | ||
php: ['7.3', '7.4', '8.0', '8.1'] | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Install PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php }} | ||
extensions: apc, curl, dom, intl, mbstring, mcrypt | ||
ini-values: date.timezone='UTC' | ||
- name: Get composer cache directory | ||
id: composer-cache | ||
run: echo "::set-output name=dir::$(composer config cache-files-dir)" | ||
- name: Cache composer dependencies | ||
uses: actions/cache@v1 | ||
with: | ||
path: ${{ steps.composer-cache.outputs.dir }} | ||
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} | ||
restore-keys: ${{ runner.os }}-composer- | ||
- name: Install dependencies | ||
run: composer update $DEFAULT_COMPOSER_FLAGS | ||
- name: PHP Unit tests | ||
run: vendor/bin/phpunit --verbose |
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 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,58 +1,63 @@ | ||
{ | ||
"name": "simialbi/yii2-rest-client", | ||
"type": "yii2-extension", | ||
"description": "REST client (AR-like model) for Yii Framework 2.0 (via yii2-http-client, extends ApexWire/yii2-restclient)", | ||
"keywords": [ | ||
"yii2", | ||
"rest", | ||
"client", | ||
"model", | ||
"active record" | ||
], | ||
"license": "MIT", | ||
"authors": [ | ||
{ | ||
"name": "ApexWire", | ||
"email": "[email protected]" | ||
"name": "simialbi/yii2-rest-client", | ||
"type": "yii2-extension", | ||
"description": "REST client (AR-like model) for Yii Framework 2.0 (via yii2-http-client, extends ApexWire/yii2-restclient)", | ||
"keywords": [ | ||
"yii2", | ||
"rest", | ||
"client", | ||
"model", | ||
"active record" | ||
], | ||
"license": "MIT", | ||
"authors": [ | ||
{ | ||
"name": "ApexWire", | ||
"email": "[email protected]" | ||
}, | ||
{ | ||
"name": "simialbi", | ||
"email": "[email protected]" | ||
} | ||
], | ||
"support": { | ||
"source": "https://github.com/simialbi/yii2-rest-client", | ||
"issues": "https://github.com/simialbi/yii2-rest-client/issues" | ||
}, | ||
{ | ||
"name": "simialbi", | ||
"email": "[email protected]" | ||
} | ||
], | ||
"support": { | ||
"source": "https://github.com/simialbi/yii2-rest-client", | ||
"issues": "https://github.com/simialbi/yii2-rest-client/issues" | ||
}, | ||
"minimum-stability": "beta", | ||
"require": { | ||
"php": ">=7.0", | ||
"yiisoft/yii2": "^2.0.14", | ||
"yiisoft/yii2-httpclient": "^2.0.0" | ||
}, | ||
"require-dev": { | ||
"yiisoft/yii2-coding-standards": "~2.0", | ||
"phpunit/phpunit": "^5.0.0" | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"simialbi\\yii2\\rest\\": "src" | ||
} | ||
}, | ||
"autoload-dev": { | ||
"psr-4": { | ||
"yiiunit\\extensions\\rest\\": "tests" | ||
} | ||
}, | ||
"repositories": [ | ||
{ | ||
"type": "composer", | ||
"url": "https://asset-packagist.org" | ||
} | ||
], | ||
"extra": { | ||
"branch-alias": { | ||
"dev-master": "2.0.x-dev" | ||
"minimum-stability": "beta", | ||
"require": { | ||
"php": ">=7.3", | ||
"yiisoft/yii2": "^2.0.14", | ||
"yiisoft/yii2-httpclient": "^2.0.0" | ||
}, | ||
"require-dev": { | ||
"yiisoft/yii2-coding-standards": "~2.0", | ||
"phpunit/phpunit": "^9.5.21" | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"simialbi\\yii2\\rest\\": "src" | ||
} | ||
}, | ||
"autoload-dev": { | ||
"psr-4": { | ||
"yiiunit\\extensions\\rest\\": "tests" | ||
} | ||
}, | ||
"repositories": [ | ||
{ | ||
"type": "composer", | ||
"url": "https://asset-packagist.org" | ||
} | ||
], | ||
"extra": { | ||
"branch-alias": { | ||
"dev-master": "2.0.x-dev" | ||
} | ||
}, | ||
"config": { | ||
"allow-plugins": { | ||
"yiisoft/yii2-composer": true | ||
} | ||
} | ||
} | ||
} |
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 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 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 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 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 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 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 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 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,7 +7,6 @@ | |
|
||
namespace simialbi\yii2\rest\conditions; | ||
|
||
|
||
use yii\data\DataFilter; | ||
use yii\helpers\ArrayHelper; | ||
|
||
|
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 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 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 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 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 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 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 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 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
Oops, something went wrong.