Skip to content

Commit ae0a085

Browse files
committed
chore: Add Dependabot config and GitHub Actions for PHP CI
This commit introduces a Dependabot configuration for daily Composer updates and a GitHub Actions workflow for PHP dependency management and validation. It also updates `composer.json` to require PHP 8.3+, bumps PHPUnit to 12.0.10, and adjusts the README to reflect the new PHP version requirement.
1 parent 080645d commit ae0a085

File tree

4 files changed

+42
-4
lines changed

4 files changed

+42
-4
lines changed

.github/dependabot.yml

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: composer
4+
directory: /
5+
schedule:
6+
interval: daily

.github/workflows/php.yml

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: PHP Composer
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- name: Update Composer dependencies
17+
run: composer update --no-interaction --no-progress
18+
19+
- name: Validate composer.json and composer.lock
20+
run: composer validate --strict
21+
22+
- name: Cache Composer packages
23+
id: composer-cache
24+
uses: actions/cache@v3
25+
with:
26+
path: vendor
27+
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
28+
restore-keys: |
29+
${{ runner.os }}-php-
30+
31+
- name: Install dependencies
32+
run: composer install --prefer-dist --no-progress

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
# Getting Started
88
### Requirements
9-
* [**PHP 7.4+**](https://www.php.net/downloads.php)
9+
* [**PHP 8.3+**](https://www.php.net/downloads.php)
1010
* Extensions: [Composer](https://getcomposer.org/), [PHP-JSON](https://www.php.net/manual/en/book.json.php)
1111

1212
# ⚒️ Install

composer.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"license": "MIT",
1313
"authors": [
1414
{
15-
"name": "Efe Bagri",
15+
"name": "Efe Bağrı",
1616
"email": "composer@exbil.net",
1717
"homepage": "https://www.exbil.net/"
1818
}
@@ -22,15 +22,15 @@
2222
"source": "https://github.com/exbil/lexoffice-php-api"
2323
},
2424
"require": {
25-
"php": "^7.4 | ^8",
25+
"php": ">=8.3",
2626
"ext-json": "*",
2727
"ext-curl": "*",
2828
"guzzlehttp/guzzle": "^6.2 | ^7.0",
2929
"psr/cache": "^1.0 | ^2.0 | ^3.0"
3030
},
3131
"require-dev": {
3232
"fzaninotto/faker": "^1.9.1",
33-
"phpunit/phpunit": "^9.0",
33+
"phpunit/phpunit": "^12.0.10",
3434
"symfony/cache": "^5.1"
3535
},
3636
"autoload": {

0 commit comments

Comments
 (0)