Skip to content
Merged

1.0 #130

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
78 commits
Select commit Hold shift + click to select a range
dc349f6
add PhpStan, Improve PHP Docs, add strict return types
Sysix Jul 5, 2020
6e4fac1
implement throwable in own exceptions
Sysix Jul 5, 2020
ee9d98f
phpstan doc for Pagination and DocumentClientTrait
Sysix Jul 5, 2020
ae2e2bb
Merge branch 'feature/missing-clients' into feature/strict-type
Sysix Jul 5, 2020
3c49f79
add github action shepherd
Sysix Jul 6, 2020
dc24539
update shepherd action
Sysix Jul 6, 2020
f3cdb87
update shepherd action
Sysix Jul 6, 2020
75da968
update shepherd action
Sysix Jul 6, 2020
4ffd8d2
update shepherd action
Sysix Jul 6, 2020
dbe003a
Merge branch 'development' into feature/strict-type
Sysix Nov 22, 2020
4c02a37
update composer.lock after merge
Sysix Nov 22, 2020
9d182ef
add `declare(strict_types=1);` to every file
Sysix Nov 22, 2020
079a37a
rename Client Files, use new namespace `Clicksports\LexOffice\Clients`
Sysix Nov 22, 2020
4d5e1ae
split Create/Get/Update/Delete into Traits.
Sysix Feb 7, 2021
a025e17
Merge remote-tracking branch 'origin/development' into cleanup/clients
Sysix Feb 28, 2021
96c650e
refactor new clients
Sysix Feb 28, 2021
a735d03
add declare strict types
Sysix Feb 28, 2021
c8e6f47
fix phpstan
Sysix Feb 28, 2021
043bff8
Merge remote-tracking branch 'origin/development' into feature/strict…
Sysix Feb 28, 2021
c2478d1
fix phpstan + merge
Sysix Feb 28, 2021
233fbae
Merge remote-tracking branch 'origin/feature/strict-type' into cleanu…
Sysix Feb 28, 2021
836122f
Merge pull request #23 from clicksports/cleanup/clients
Sysix Feb 28, 2021
988f848
fix delete Trait + composer scripts
Sysix Feb 28, 2021
e8c6c34
fix test cache dir missing
Sysix Feb 28, 2021
a480186
Merge remote-tracking branch 'origin/development' into 1.0-dev
Aug 9, 2021
a1e23df
update structure after merge
Aug 9, 2021
1d237df
update composer lock after merge
Aug 9, 2021
ff6a08d
remove CacheResponseTrait, add UPDATE.md to suggest how to implement it
Aug 9, 2021
9fe3a1b
remove Exceptions\CacheException from all references
Aug 9, 2021
4e0ab12
update composer json
Aug 9, 2021
95b7878
add GetAllVoucherListTrait.php, add declare strict type
Aug 12, 2021
3d0bc7d
update phpunit config
Aug 12, 2021
4cfdfd4
remove cache section in readme
Aug 12, 2021
1e84fc7
update tests for clients who supports getAll($states)
Aug 12, 2021
8f168ce
add getPage option for Clients which has already VoucherListTrait
Aug 12, 2021
790ab3b
add phpdoc for voucherListTypes
Aug 12, 2021
f362314
update readme
Aug 12, 2021
1613450
small fixes
Aug 12, 2021
8570392
add filters for VoucherList and Contact
Aug 23, 2021
34fac6b
Merge branch 'development' into 1.0-dev
Sysix Nov 25, 2023
4c2153a
Merge remote-tracking branch 'origin/development' into 1.0-dev
Sysix Nov 25, 2023
456467c
update phpstan
Sysix Nov 25, 2023
24b861e
test fix after merge
Sysix Nov 25, 2023
d154344
remove php8.0 support
Sysix Nov 25, 2023
1d00668
improve doc types
Sysix Nov 25, 2023
4946d1c
fix datetime format for voucherlist
Sysix Nov 25, 2023
d337ef5
small test improvments + VERSION constant removed
Sysix Nov 25, 2023
f3241ad
change namespace
Sysix Nov 25, 2023
5f51ef4
update UPGRADE.md
Sysix Nov 25, 2023
86a4166
fix unit test
Sysix Nov 25, 2023
36fe494
improve Code styles in tests
Sysix Nov 25, 2023
c2cdb62
remove redundant phpdocs, remove catching of request exceptions, allo…
Sysix Nov 30, 2023
b1a3c08
update readme + upgrade
Sysix Nov 30, 2023
9db9676
update readme
Sysix Nov 30, 2023
258f73b
add sensitiveParam attribute for $apiKey
Sysix Nov 30, 2023
0700ee2
remove guzzlehttp/guzzle requirement, add guzzlehttp/psr7 requirement
Sysix Nov 30, 2023
0857daf
update tests
Sysix Nov 30, 2023
79ee238
update tests
Sysix Nov 30, 2023
cbaf343
add deprecation warnings for getAll() and some getPage Methodes
Sysix Dec 5, 2023
76379e2
build queries with http_build_query
Sysix Dec 5, 2023
216b627
rewrite tests, check for requests
Sysix Dec 6, 2023
a6e6e8a
add missing tests
Sysix Dec 6, 2023
768a36b
add missing getVoucherListClients tests
Sysix Dec 6, 2023
37f5a6c
return first failed response when trying to load document as content
Sysix Dec 7, 2023
14c33f3
fix test for VoucherList->getAll()
Sysix Dec 7, 2023
d8c4868
remove composer lock
Sysix Dec 7, 2023
19f924f
update readme, inform to otpimize http client
Sysix Dec 7, 2023
8ebe058
update ci tests
Sysix Dec 7, 2023
adccfc3
cleanup BaseClient, move to Utils, deprecate getAsJson
Sysix Dec 7, 2023
9f6b883
update readme, add new filters
Sysix Dec 7, 2023
9c8aa3b
encode incoming uuids
Sysix Dec 7, 2023
fbdbfdc
able to upload file to a voucher id
Sysix Dec 7, 2023
dfe93b5
encode instead of decode
Sysix Dec 7, 2023
d8c51ad
use right trigger error level for deprecations
Sysix Dec 8, 2023
06d93e2
level up phpstan to 9
Sysix Dec 8, 2023
b75b862
update di
Sysix Dec 8, 2023
b1c11ae
update phstan ci test
Sysix Dec 8, 2023
7c35d07
pagination client can be sorted (expect contact)
Sysix Dec 8, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
/tests export-ignore
/.gitattributes export-ignore
/.gitignore export-ignore
/phpunit.xml
/phpunit.xml export-ignore
/phpstan.neon export-ignore
17 changes: 17 additions & 0 deletions .github/workflows/phpstan.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Run Shepherd

on: [pull_request]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: php-actions/composer@v6
- uses: php-actions/phpstan@v3
with:
path: src/ tests/
level: 9


22 changes: 12 additions & 10 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,32 +14,34 @@ jobs:
strategy:
fail-fast: true
matrix:
php: [8.3, 8.2, 8.1, 8.0]
php: [8.3, 8.2, 8.1]
dependency-version: [prefer-lowest, prefer-stable]
guzzle: [7.*, 6.2]

name: PHP${{ matrix.php }} - G${{ matrix.guzzle }} - ${{ matrix.dependency-version }}
name: PHP${{ matrix.php }} - ${{ matrix.dependency-version }}

steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Get Composer Cache Directory
id: composer-cache
run: |
echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT

- name: Cache dependencies
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ~/.composer/cache/files
key: dependencies-guzzle-${{ matrix.guzzle }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
path: ${{ steps.composer-cache.outputs.dir }}
key: php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: curl
coverage: none

- name: Install dependencies
- name: Install prefered version dependencies
run: |
composer require "guzzlehttp/guzzle:${{ matrix.guzzle }}" --no-interaction --no-update
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction

- name: Execute tests
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/update-license.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
update-license-year:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: FantasticFiasco/action-update-license-year@v2
Expand Down
133 changes: 127 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
.idea/
/tests/cache/


# Created by https://www.toptal.com/developers/gitignore/api/windows,macos,linux,composer
# Edit at https://www.toptal.com/developers/gitignore?templates=windows,macos,linux,composer
# Created by https://www.toptal.com/developers/gitignore/api/windows,macos,linux,composer,phpunit,phpstorm+all,visualstudiocode
# Edit at https://www.toptal.com/developers/gitignore?templates=windows,macos,linux,composer,phpunit,phpstorm+all,visualstudiocode

### Composer ###
composer.phar
/vendor/

# Commit your application's lock file https://getcomposer.org/doc/01-basic-usage.md#commit-your-composer-lock-file-to-version-control
# You may choose to ignore a library lock file http://getcomposer.org/doc/02-libraries.md#lock-file
# composer.lock
composer.lock

### Linux ###
*~
Expand Down Expand Up @@ -60,6 +59,128 @@ Temporary Items
# iCloud generated files
*.icloud

### PhpStorm+all ###
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839

# User-specific stuff
.idea/**/workspace.xml
.idea/**/tasks.xml
.idea/**/usage.statistics.xml
.idea/**/dictionaries
.idea/**/shelf

# AWS User-specific
.idea/**/aws.xml

# Generated files
.idea/**/contentModel.xml

# Sensitive or high-churn files
.idea/**/dataSources/
.idea/**/dataSources.ids
.idea/**/dataSources.local.xml
.idea/**/sqlDataSources.xml
.idea/**/dynamic.xml
.idea/**/uiDesigner.xml
.idea/**/dbnavigator.xml

# Gradle
.idea/**/gradle.xml
.idea/**/libraries

# Gradle and Maven with auto-import
# When using Gradle or Maven with auto-import, you should exclude module files,
# since they will be recreated, and may cause churn. Uncomment if using
# auto-import.
# .idea/artifacts
# .idea/compiler.xml
# .idea/jarRepositories.xml
# .idea/modules.xml
# .idea/*.iml
# .idea/modules
# *.iml
# *.ipr

# CMake
cmake-build-*/

# Mongo Explorer plugin
.idea/**/mongoSettings.xml

# File-based project format
*.iws

# IntelliJ
out/

# mpeltonen/sbt-idea plugin
.idea_modules/

# JIRA plugin
atlassian-ide-plugin.xml

# Cursive Clojure plugin
.idea/replstate.xml

# SonarLint plugin
.idea/sonarlint/

# Crashlytics plugin (for Android Studio and IntelliJ)
com_crashlytics_export_strings.xml
crashlytics.properties
crashlytics-build.properties
fabric.properties

# Editor-based Rest Client
.idea/httpRequests

# Android studio 3.1+ serialized cache file
.idea/caches/build_file_checksums.ser

### PhpStorm+all Patch ###
# Ignore everything but code style settings and run configurations
# that are supposed to be shared within teams.

.idea/*

!.idea/codeStyles
!.idea/runConfigurations

### PHPUnit ###
# Covers PHPUnit
# Reference: https://phpunit.de/

# Generated files
.phpunit.result.cache
.phpunit.cache

# PHPUnit
/app/phpunit.xml
/phpunit.xml

# Build data
/build/

### VisualStudioCode ###
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
!.vscode/*.code-snippets

# Local History for Visual Studio Code
.history/

# Built Visual Studio Code Extensions
*.vsix

### VisualStudioCode Patch ###
# Ignore all local history of files
.history
.ionide

### Windows ###
# Windows thumbnail cache files
Thumbs.db
Expand All @@ -86,4 +207,4 @@ $RECYCLE.BIN/
# Windows shortcuts
*.lnk

# End of https://www.toptal.com/developers/gitignore/api/windows,macos,linux,composer
# End of https://www.toptal.com/developers/gitignore/api/windows,macos,linux,composer,phpunit,phpstorm+all,visualstudiocode
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2023 CLICKSPORTS GmbH
Copyright (c) 2023 Sysix

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
Loading