Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
48 changes: 48 additions & 0 deletions .env.actions
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
APP_NAME="EP-Online PHP Wrapper"
APP_ENV=testing
APP_KEY=arandomkeythatdoesnotrealymatter
APP_DEBUG=true
APP_LOG_LEVEL=debug
DEBUGBAR_ENABLED=false
LOG_CHANNEL=daily
APP_DOMAIN=localhost
APP_URL=http://localhost

APP_TIMEZONE=Europe/Amsterdam
APP_LOCALE=nl
APP_FALLBACK_LOCALE=en
APP_FAKER_LOCALE=en_US
APP_MAINTENANCE_DRIVER=file
APP_MAINTENANCE_STORE=database
BCRYPT_ROUNDS=12

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=ep_online_test
DB_USERNAME=root
DB_PASSWORD=

BROADCAST_CONNECTION=log
CACHE_STORE=file
SESSION_DRIVER=file
QUEUE_CONNECTION=sync

MAIL_MAILER=log
MAIL_HOST=host.docker.internal
MAIL_PORT=2525
MAIL_USERNAME=EP-Online-Local
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null

MAIL_FROM_ADDRESS=noreply@hoomdossier.nl
MAIL_FROM_ADDRESS_NOREPLY=noreply@hoomdossier.nl
MAIL_FROM_NAME=Hoomdossier

PUSHER_APP_ID=
PUSHER_APP_KEY=
PUSHER_APP_SECRET=

SESSION_ENCRYPT=false
SESSION_PATH=/
SESSION_DOMAIN=null
68 changes: 68 additions & 0 deletions .github/workflows/static-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
name: Static analysis
on:
push:
branches: [ "develop" ]
pull_request:
branches: [ "develop" ]

jobs:
phpstan:
name: PHPStan code analysis [PHP ${{ matrix.php }} - ${{ matrix.os }} - ${{ matrix.dependency-version }}]
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest ]
php: [8.2, 8.3, 8.4]
#dependency-version: [ prefer-lowest, prefer-stable ]
dependency-version: [ prefer-stable ]

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

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

- name: Copy .env
run: php -r "copy('.env.actions', '.env');"
- name: Run composer install
run: composer install --prefer-dist
- name: Run larastan (PHPStan) - Static code analysis
run: ./vendor/bin/phpstan analyse --memory-limit=2G

phpcs:
name: PHPcs PSR check [PHP ${{ matrix.php }} - ${{ matrix.os }} - ${{ matrix.dependency-version }}]
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest ]
php: [8.2, 8.3, 8.4]
#dependency-version: [ prefer-lowest, prefer-stable ]
dependency-version: [ prefer-stable ]

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

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

- name: Copy .env
run: php -r "copy('.env.actions', '.env');"
- name: Run composer install
run: composer install --prefer-dist

- name: Run phpcs - PSR2 check
# run: ./vendor/bin/phpcs --standard=phpcs.xml src # Run with warnings > This will still trigger failure
run: ./vendor/bin/phpcs --standard=phpcs.xml src -n # To run errors only
# run: ./vendor/bin/phpcs --standard=PSR2 src
6 changes: 6 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# v5.0.0
- Changed PHP requirements to `^8.2`
- Minimum version for "guzzlehttp/guzzle" is now `^7.9`
- Minimum version for "psr/log" is now `^3.0`
- Removed the `info` endpoint
- Added the `ping` endpoint
50 changes: 30 additions & 20 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,33 @@
{
"name": "ecodenl/ep-online-php-wrapper",
"description": "PHP Wrapper for the EP Online Public REST API ",
"type": "library",
"license": "OSL-3.0",
"authors": [
{
"name": "Bodhi Looij",
"email": "b.looij@wedesignit.nl",
"role": "Developer"
"name": "ecodenl/ep-online-php-wrapper",
"description": "PHP Wrapper for the EP Online Public REST API",
"type": "library",
"license": "OSL-3.0",
"authors": [
{
"name": "Bodhi Looij",
"email": "b.looij@wedesignit.nl",
"role": "Developer"
},
{
"name": "Yannick Schrijvers",
"email": "y.schrijvers@wedesignit.nl",
"role": "Developer"
}
],
"require": {
"php": "^8.2",
"guzzlehttp/guzzle": "^7.9",
"psr/log": "^3.0",
"ext-json": "*"
},
"autoload": {
"psr-4": {
"Ecodenl\\EpOnlinePhpWrapper\\": "src"
}
},
"require-dev": {
"phpstan/phpstan": "^2.0",
"squizlabs/php_codesniffer": "^3.11"
}
],
"require": {
"php": "^7.4.0|^8.0",
"guzzlehttp/guzzle": "^6.3.1|^7.4.5",
"psr/log": "^1.1.4|^3.0"
},
"autoload": {
"psr-4": {
"Ecodenl\\EpOnlinePhpWrapper\\": "src"
}
}
}
Loading