Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V3 #727

Open
wants to merge 184 commits into
base: master
Choose a base branch
from
Open

V3 #727

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
184 commits
Select commit Hold shift + click to select a range
0c2c398
wip
Naoray Jan 3, 2024
6c9102e
wip
Naoray Jan 3, 2024
1da742e
add type declarations to all endpoints
Naoray Jan 5, 2024
5cb58e2
Fix styling
Naoray Jan 5, 2024
f66f9c0
fix tests
Naoray Jan 5, 2024
c5bdbd2
merge in changes
Naoray Jun 24, 2024
edcc1e8
Fix styling
Naoray Jun 24, 2024
c10e175
add PSR18 http adapter
Naoray Jun 24, 2024
9d69299
Fix styling
Naoray Jun 24, 2024
1da1fc4
wip
Naoray Jun 24, 2024
ac55229
wip
Naoray Jun 24, 2024
2920090
wip
Naoray Jun 24, 2024
d66feba
Fix styling
Naoray Jun 24, 2024
8b1ba43
wip
Naoray Jun 25, 2024
035d70e
Fix styling
Naoray Jun 25, 2024
18b13e8
merge in changes
Naoray Jun 27, 2024
c5e6e18
Fix styling
Naoray Jun 27, 2024
7d86f99
fix typehints
Naoray Jun 27, 2024
b21057f
wip
Naoray Jun 27, 2024
1d42fa9
Fix styling
Naoray Jun 27, 2024
76e46b5
wip
Naoray Jun 28, 2024
c4f62a0
typecast embedded resources
Naoray Jun 28, 2024
1bd03e3
Fix styling
Naoray Jun 28, 2024
2efbacf
wip
sandervanhooft Jun 21, 2024
bbefe74
Fix styling
sandervanhooft Jun 21, 2024
acbeadd
wip
sandervanhooft Jun 21, 2024
cf26b85
wip
sandervanhooft Jun 21, 2024
837aa04
wip
sandervanhooft Jun 21, 2024
a4a9277
Update version number
sandervanhooft Jun 24, 2024
6436be8
merge in changes
Naoray Jun 30, 2024
e122737
Fix styling
Naoray Jun 30, 2024
85e5909
update github actions
Naoray Jun 30, 2024
db7a507
add php7.4 compatible invade dependency/
Naoray Jun 30, 2024
c743574
remove spatie/invade dependency
Naoray Jun 30, 2024
3fa1abc
change return types to be php7.4 compatible
Naoray Jun 30, 2024
a801414
Fix styling
Naoray Jun 30, 2024
41e3dfa
wip
Naoray Jun 30, 2024
0b135db
update github action versions
Naoray Jun 30, 2024
7e45e92
wip
Naoray Jul 10, 2024
9258b45
add UPGRADING guide
Naoray Jul 16, 2024
ad8930f
wip
Naoray Jul 16, 2024
07ff441
merge in changes
Naoray Jul 17, 2024
6144f6a
remove static resource and collection methods
Naoray Jul 17, 2024
4f0346a
wip
Naoray Jul 17, 2024
2543eef
wip
Naoray Jul 17, 2024
987185a
add changelog action
Naoray Jul 18, 2024
c8300c7
wip
Naoray Jul 18, 2024
6f004b8
wip
Naoray Jul 18, 2024
c477530
wip
Naoray Aug 26, 2024
36b6e65
wip
Naoray Sep 6, 2024
164c1e0
wip
Naoray Sep 6, 2024
0115efa
wip
Naoray Sep 9, 2024
4cdbb75
make v3 php7.4 compatible
Naoray Sep 9, 2024
4fad5bc
wip
Naoray Sep 9, 2024
ec1b4ef
wip
Naoray Sep 9, 2024
44ddaa0
wip
Naoray Sep 9, 2024
be99500
wip
Naoray Sep 9, 2024
bd15bf4
wip
Naoray Sep 9, 2024
ca4a799
wip
Naoray Sep 9, 2024
b74f996
wip
Naoray Sep 9, 2024
8d0a3fd
wip
Naoray Sep 9, 2024
e56a37a
wip
Naoray Sep 9, 2024
8298dff
wip
Naoray Sep 9, 2024
a02a1d1
wip
Naoray Sep 9, 2024
ae721ee
wip
Naoray Sep 9, 2024
bb1d966
wip
Naoray Sep 9, 2024
20317a8
wip
Naoray Sep 9, 2024
5cbc383
wip
Naoray Nov 12, 2024
73404f0
wip
Naoray Nov 14, 2024
e249f3e
wip
Naoray Nov 26, 2024
f2f9fcf
wip
Naoray Nov 26, 2024
f842f91
wip
Naoray Nov 26, 2024
be6161e
wip
Naoray Nov 28, 2024
5e4c726
wip
Naoray Dec 3, 2024
a9b44dd
Fixes coding style
Naoray Dec 3, 2024
c5ef68d
wip
Naoray Dec 3, 2024
79e75b5
Fixes coding style
Naoray Dec 3, 2024
6a06935
fix phpstan
Naoray Dec 3, 2024
edd5d01
fix php7.4 compatibility
Naoray Dec 3, 2024
c0dd9dd
fix php7.4 compatibility
Naoray Dec 3, 2024
cfea22e
Fixes coding style
Naoray Dec 3, 2024
f3de946
fix php7.4 compatibility
Naoray Dec 3, 2024
f80f4f1
fix php7.4 compatibility
Naoray Dec 3, 2024
7c70d2c
fix php7.4 compatibility
Naoray Dec 3, 2024
3736cfe
fix php7.4 compatibility
Naoray Dec 3, 2024
d5a2150
Fixes coding style
Naoray Dec 3, 2024
4c472c9
fix all phpstan errors
Naoray Dec 4, 2024
fa45774
Fixes coding style
Naoray Dec 4, 2024
25aefc7
fix all phpstan errors, this time for sure :fire:
Naoray Dec 4, 2024
81deec0
Fixes coding style
Naoray Dec 4, 2024
b448e2f
wip
Naoray Dec 4, 2024
e15fb88
Fixes coding style
Naoray Dec 4, 2024
7757a39
wip
Naoray Dec 4, 2024
2a21c70
wip
Naoray Dec 4, 2024
e72d0e6
Fixes coding style
Naoray Dec 4, 2024
9a58ddf
fix tests
Naoray Dec 5, 2024
82cc035
Fixes coding style
Naoray Dec 5, 2024
34f8dd5
wip
Naoray Dec 5, 2024
02ca3a2
Fixes coding style
Naoray Dec 5, 2024
8aefdb1
wip
Naoray Dec 6, 2024
16785c5
Fixes coding style
Naoray Dec 6, 2024
b5f6665
wip
Naoray Dec 6, 2024
ab6772d
wip
Naoray Dec 6, 2024
526b270
Merge branch 'master' into v3
Naoray Dec 6, 2024
8007090
Add support for php8.4 to GH test workflow
sandervanhooft Dec 9, 2024
8f31fbd
add sales invoices endpoint
Naoray Dec 10, 2024
3f1c1fa
Fixes coding style
Naoray Dec 10, 2024
fcdbbb0
fix phpstan
Naoray Dec 10, 2024
261cad3
fix phpstan
Naoray Dec 10, 2024
8cddaf6
wip
Naoray Dec 10, 2024
7578a2c
Fixes coding style
Naoray Dec 10, 2024
94d5a76
wip
Naoray Dec 10, 2024
384e7d5
wip
Naoray Dec 12, 2024
5fd78ed
Fixes coding style
Naoray Dec 12, 2024
46a0bdc
wip
Naoray Dec 12, 2024
8c56845
Fixes coding style
Naoray Dec 12, 2024
9f693e4
wip
Naoray Dec 12, 2024
fbf8e3e
Fixes coding style
Naoray Dec 12, 2024
a3a67a8
Merge pull request #755 from mollie/sandervanhooft-patch-1
sandervanhooft Dec 12, 2024
983595a
remove hydration setting and always hydrate
Naoray Dec 17, 2024
ff5ef29
Fixes coding style
Naoray Dec 17, 2024
30ed85c
wip
Naoray Dec 18, 2024
b5aac11
Fixes coding style
Naoray Dec 18, 2024
109e989
wip
Naoray Dec 18, 2024
55d3425
wip
Naoray Dec 18, 2024
94918f1
wip
Naoray Dec 18, 2024
9d3ed67
Fixes coding style
Naoray Dec 18, 2024
1fa13dd
wip
Naoray Dec 18, 2024
539fa62
wip
Naoray Dec 18, 2024
953ae1a
wip
Naoray Dec 18, 2024
df1b4b5
Fixes coding style
Naoray Dec 18, 2024
1bf7dde
wip
Naoray Dec 18, 2024
db324c6
wip
Naoray Dec 18, 2024
529f6e5
Fixes coding style
Naoray Dec 18, 2024
0ccde0d
wip
Naoray Dec 19, 2024
d66ed26
wip
Naoray Dec 19, 2024
9be0ce6
wip
Naoray Dec 20, 2024
cb7f34a
wip
Naoray Dec 20, 2024
292e7ba
wip
Naoray Dec 20, 2024
29cce99
wip
Naoray Dec 20, 2024
60209e6
wip
Naoray Dec 20, 2024
24d5561
wip
Naoray Dec 20, 2024
b5827ca
wip
Naoray Dec 20, 2024
6360e9d
Fixes coding style
Naoray Dec 20, 2024
7e6b6a6
wip
Naoray Dec 23, 2024
d0dc230
Fixes coding style
Naoray Dec 23, 2024
bbf1ac9
Merge branch 'master' into v3
Naoray Dec 23, 2024
6d9bb9a
wip
Naoray Jan 6, 2025
384d1b3
wip
Naoray Jan 6, 2025
e38f256
by default set $testmode = false instead of empty array
Naoray Jan 6, 2025
417686e
Fixes coding style
Naoray Jan 6, 2025
4b7906d
be explicit about mandateEndpointCollection method names
Naoray Jan 6, 2025
30d245f
simplify adapter picker
Naoray Jan 6, 2025
0c58503
Fixes coding style
Naoray Jan 6, 2025
d538389
revert to php-cs-fixer
Naoray Jan 7, 2025
0198f59
remove zip workflow
Naoray Jan 7, 2025
3838d8f
wip
Naoray Jan 7, 2025
01c9d57
Fixes coding style
Naoray Jan 7, 2025
27f05b2
Update idempotency.md
Naoray Jan 7, 2025
982e00e
wip
Naoray Jan 7, 2025
5ca507d
wip
Naoray Jan 7, 2025
852a36a
wip
Naoray Jan 7, 2025
488bc6a
wip
Naoray Jan 7, 2025
40bc569
Fixes coding style
Naoray Jan 7, 2025
732b337
fix phpstan
Naoray Jan 7, 2025
710cd34
wip
Naoray Jan 7, 2025
12b3d27
Fixes coding style
Naoray Jan 7, 2025
65ec656
add scoper zip workflow back in
Naoray Jan 8, 2025
739479b
wip
Naoray Jan 8, 2025
7f4880e
wip
Naoray Jan 8, 2025
971c351
wip
Naoray Jan 8, 2025
18322f0
wip
Naoray Jan 8, 2025
6f35bf4
wip
Naoray Jan 8, 2025
042a8e3
change create zip workflow back for actual releases
Naoray Jan 8, 2025
23316fe
wip
Naoray Jan 10, 2025
998f600
add debugging capabilities
Naoray Jan 15, 2025
79f7edf
Fixes coding style
Naoray Jan 15, 2025
5a32195
wip
Naoray Jan 15, 2025
bef7530
wip
Naoray Jan 15, 2025
27c95d1
Fixes coding style
Naoray Jan 15, 2025
8ce7714
wip
Naoray Jan 15, 2025
0a784a5
wip
Naoray Jan 15, 2025
137fd3d
wip
Naoray Jan 15, 2025
b8c7612
wip
Naoray Jan 16, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
## Specifications

- API Version:
- API Version:
- SDK Version:

## Describe the issue

...

6 changes: 3 additions & 3 deletions .github/workflows/check_php_syntax.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@ on:
push:
pull_request:
schedule:
- cron: '0 0 * * *'
- cron: "0 0 * * *"
jobs:
tests:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
php: [ 7.2 ]
php: [7.4]
sandervanhooft marked this conversation as resolved.
Show resolved Hide resolved
name: Check PHP ${{ matrix.php }} syntax
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
Expand Down
65 changes: 65 additions & 0 deletions .github/workflows/create_scoped_zip.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
name: Create Release Zip

on:
release:
types: [published]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: "7.4"
coverage: none

- name: Install dependencies
run: composer install --no-dev --no-scripts --no-progress

- name: Install PHP-Scoper
run: |
composer global require humbug/php-scoper
echo "${HOME}/.composer/vendor/bin" >> $GITHUB_PATH

- name: Create scoper config
run: |
cat > scoper.inc.php <<EOF
<?php
return [
'prefix' => 'MollieVendor',
'finders' => [],
'exclude-namespaces' => ['Mollie\\Api'],
'exclude-files' => [],
];
EOF

- name: Scope dependencies
run: php-scoper add-prefix --output-dir=./build/scoped

- name: Setup autoloader
run: |
cd build/scoped
composer dump-autoload --classmap-authoritative
php examples/initialize.php
# Swap autoloader files to handle both scoped and non-scoped classes
mv vendor/autoload.php vendor/composer-autoload.php
sed -i.bak 's/autoload.php/composer-autoload.php/g' vendor/scoper-autoload.php
mv vendor/scoper-autoload.php vendor/autoload.php
rm vendor/*.bak

- name: Create release zip
run: |
cd build/scoped
zip -r ../../mollie-api-php-${{ github.event.release.tag_name }}.zip .
cd ../..

- name: Upload zip to release
uses: softprops/action-gh-release@v2
with:
files: mollie-api-php-${{ github.event.release.tag_name }}.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
55 changes: 0 additions & 55 deletions .github/workflows/createzip.yml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,23 +1,21 @@
name: Check & fix styling
name: Fix Code Style

on: [push]

jobs:
php-cs-fixer:
lint:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}
uses: actions/checkout@v4

- name: Run PHP CS Fixer
uses: docker://oskarstark/php-cs-fixer-ga
with:
args: --config=.php-cs-fixer.dist.php --allow-risky=yes

- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v4
- name: Commit linted files
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Fix styling
commit_message: "Fixes coding style"
22 changes: 14 additions & 8 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,35 +3,41 @@ on:
push:
pull_request:
schedule:
- cron: '0 0 * * *'
- cron: "0 0 * * *"
jobs:
tests:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
php: [7.2, 7.3, 7.4, 8.0, 8.1, 8.2, 8.3, 8.4]
php: [7.4, 8.0, 8.1, 8.2, 8.3, 8.4]
name: PHP - ${{ matrix.php }}
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip
tools: composer:v2
coverage: none
- name: Remove PHP CS Fixer dependency to prevent unnecessary dependency collisions
- name: Remove pint dependency to prevent unnecessary dependency collisions
run: |
composer remove --dev friendsofphp/php-cs-fixer
composer remove --dev laravel/pint

- name: Install dependencies
run: |
composer update --prefer-dist --no-interaction --no-progress

- name: Remove PHP CS Fixer dependency to prevent unnecessary dependency collisions
run: |
composer remove --dev friendsofphp/php-cs-fixer

- name: PHPStan
if: ${{ matrix.php >= 7.3 }}
run: |
composer require "phpstan/phpstan:1.12.5"
composer require "phpstan/phpstan" --dev
vendor/bin/phpstan analyse --no-progress

- name: Execute tests
run: vendor/bin/phpunit --verbose
run: vendor/bin/paratest --verbose
28 changes: 28 additions & 0 deletions .github/workflows/update-changelog.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: "Update Changelog"

on:
release:
types: [released]

jobs:
update:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: main

- name: Update Changelog
uses: stefanzweifel/changelog-updater-action@v1
with:
latest-version: ${{ github.event.release.name }}
release-notes: ${{ github.event.release.body }}

- name: Commit updated CHANGELOG
uses: stefanzweifel/git-auto-commit-action@v5
with:
branch: main
commit_message: Update CHANGELOG
file_pattern: CHANGELOG.md
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Changelog

Starting with v3, all all notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased](https://github.com/mollie/mollie-api-php/compare/v3.0.0...HEAD)
Loading
Loading