Skip to content

Commit a41cf5e

Browse files
authored
Merge pull request #5 from LabyMod/php-81-compatibility
2 parents a5b40dc + 2fdcc1a commit a41cf5e

28 files changed

+261
-619
lines changed

.ddev/commands/web/test

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/bash
2+
3+
4+
## Description: Test webhooks (./tests/test.php)
5+
## Usage: test
6+
/usr/bin/php /var/www/html/tests/test.php

.ddev/config.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: discord-webhook
2+
type: php
3+
omit_containers: [db, dba]
4+
docroot: ""
5+
php_version: "8.1"
6+
webserver_type: nginx-fpm
7+
router_http_port: "80"
8+
router_https_port: "443"
9+
xdebug_enabled: false
10+
additional_hostnames: []
11+
additional_fqdns: []
12+
mariadb_version: "10.3"
13+
mysql_version: ""
14+
nfs_mount_enabled: false
15+
mutagen_enabled: false
16+
use_dns_when_possible: true
17+
composer_version: "2"
18+
web_environment: []

.ddev/docker-compose.web.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
version: '3'
2+
3+
services:
4+
web:
5+
env_file:
6+
- ../.env.local

.env.dist

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
DISCORD_TEST_URL=

.gitignore

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,5 @@
22
/tmp/
33
/src/vendor/
44
/composer.lock
5-
6-
# PHPUnit
7-
/.phpunit/*
8-
!/.phpunit/.gitkeep
9-
/.phpunit*.cache
5+
/.env*
6+
!/.env.dist

.phpunit/.gitkeep

Whitespace-only changes.

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# Changelog
22

3+
## 2.0.0
4+
* FEATURE: PHP 8.1 ready
5+
* Added proper type annotations
6+
* Removed php annotations
7+
* BC BREAKS
8+
* Drop support for PHP 7.4
9+
* DEPRECATIONS
10+
* All `Embed::COLOR_*` constants (will be removed in 3.0); use `\DicordWebhook\EmbedColor::XY` now.
11+
312
### 1.0.6
413
* Changed `guzzlehttp/guzzle` version bound to be backwards compatible.
514

Dockerfile

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

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,14 @@
77

88
Send Discord messages directly from your PHP application. Even with embeds & files!
99

10+
## Versions & Compatibility
11+
12+
| Release | Supported PHP Versions | Supported Symfony Versions | Release Date | Maintained | Branch |
13+
|---------|------------------------|------------------------------|--------------|------------|--------|
14+
| 3.x | `^8.1` | `^4.4.35`, `^5.3.12`, `^6.0` | ??? | Yes | master |
15+
| 2.x | `^8.0` | `^4.4.35`, `^5.3.12`, `^6.0` | ??? | Yes | 2.x |
16+
| 1.x | `^7.3`, `^8.0` | `^3.0`, `^4.0`, `^5.0` | 05.01.2020 | No | 1.x |
17+
1018
## Installation
1119

1220
**Composer installation**

composer.json

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,14 @@
1212
}
1313
],
1414
"require": {
15-
"php": "^7.3 || ^8.0",
16-
"guzzlehttp/guzzle": ">=6.3",
17-
"symfony/serializer": "^3.0 || ^4.0 || ^5.0",
15+
"php": "^8.0",
16+
"guzzlehttp/guzzle": ">=7.2",
17+
"symfony/serializer": "^4.4.35 || ^5.3.12 || ^6.0",
1818
"doctrine/collections": "^1.6",
19-
"symfony/yaml": "^3.0 || ^4.0 || ^5.0",
20-
"symfony/property-access": "^3.0 || ^4.0 || ^5.0"
19+
"symfony/yaml": "^4.0 || ^5.0 || ^6.0",
20+
"symfony/property-access": "^4.0 || ^5.0 || ^6.0"
2121
},
2222
"require-dev": {
23-
"phpunit/phpunit": "~9.5.0",
2423
"symfony/var-dumper": "^5.0"
2524
},
2625
"config": {

0 commit comments

Comments
 (0)