Skip to content

Commit 99ede99

Browse files
authored
Merge pull request #18 from b24io/v3
V3
2 parents a6363cb + f815536 commit 99ede99

File tree

277 files changed

+4205
-12172
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

277 files changed

+4205
-12172
lines changed

.env

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
APP_ENV=dev
2+
LOYALTY_SDK_CLI_LOGS_FILE=logs/cli.log
3+
LOYALTY_SDK_CLI_LOGS_LEVEL=200

.github/workflows/phpstan.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
on:
2+
push:
3+
pull_request:
4+
5+
name: PHPStan checks
6+
7+
jobs:
8+
static-analysis:
9+
name: "PHPStan"
10+
runs-on: "ubuntu-latest"
11+
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
php-version:
16+
- "8.3"
17+
dependencies: [ highest ]
18+
19+
steps:
20+
- name: "Checkout"
21+
uses: "actions/checkout@v2"
22+
23+
- name: "Install PHP"
24+
uses: "shivammathur/setup-php@v2"
25+
with:
26+
coverage: "none"
27+
php-version: "${{ matrix.php-version }}"
28+
extensions: json, bcmath, curl, intl, mbstring
29+
tools: composer:v2
30+
31+
- name: "Install lowest dependencies"
32+
if: ${{ matrix.dependencies == 'lowest' }}
33+
run: "composer update --prefer-lowest --no-interaction --no-progress --no-suggest"
34+
35+
- name: "Install highest dependencies"
36+
if: ${{ matrix.dependencies == 'highest' }}
37+
run: "composer update --no-interaction --no-progress --no-suggest"
38+
39+
- name: "PHPStan"
40+
run: "make phpstan"
41+
42+
- name: "is PHPStan check succeeded"
43+
if: ${{ success() }}
44+
run: |
45+
echo '✅ PHPStan check pass, congratulations!'
46+
47+
- name: "is PHPStan check failed"
48+
if: ${{ failure() }}
49+
run: |
50+
echo '::error:: ❗️ PHPStan check failed (╯°益°)╯彡┻━┻'

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,6 @@
22
vendor
33
tests/logs/
44
composer.phar
5-
composer.lock
5+
composer.lock
6+
.env.local
7+
/.phpunit.result.cache

.travis.yml

Lines changed: 0 additions & 21 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
11
# loyalty-php-sdk
2+
3+
## 3.0 (2024.01.15)
4+
* migrate to 'symfony/http-client'
5+
* bump minimum PHP version requirements to `8.3.*`
6+
* add `TransactionsFetcher` - fetch transactions
7+
* add cli command `transactions:burn-bonuses`
8+
* add `TransactionsReader` - read transactions from csv-file
9+
210
## 2.1.2 (01.06.2022)
311
* bump `guzzlehttp/guzzle` version requirements to `6.*`
412
## 2.1.1 (10.01.2022)

Makefile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
default:
2+
@echo "make needs target:"
3+
@egrep -e '^\S+' ./Makefile | grep -v default | sed -r 's/://' | sed -r 's/^/ - /'
4+
5+
phpstan:
6+
vendor/bin/phpstan analyse
7+
phpinsights:
8+
vendor/bin/phpinsights analyse ./src

0 commit comments

Comments
 (0)