Skip to content

Commit 5ee0544

Browse files
committed
feat: PHP 8.3 support
1 parent ffd7ee7 commit 5ee0544

File tree

6 files changed

+27
-7
lines changed

6 files changed

+27
-7
lines changed

.docker/images/php-fpm/Dockerfile

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ RUN pecl install -o -f redis \
4545
&& rm -rf /tmp/pear \
4646
&& docker-php-ext-enable redis
4747
RUN case ${PHP_VERSION} in \
48-
8.2*|8.1*|8.0*|7.4*) \
48+
8.3*|8.2*|8.1*|8.0*|7.4*) \
4949
docker-php-ext-configure gd --enable-gd --with-freetype --with-jpeg --with-webp \
5050
&& docker-php-ext-install gd; \
5151
;; \
@@ -65,9 +65,21 @@ RUN sed -e 's/memory_limit = 128M/memory_limit = 512M/' -i "$PHP_INI_DIR/php.ini
6565

6666
ARG ENABLE_XDEBUG
6767
RUN if [ ${ENABLE_XDEBUG} = 1 ] ; then \
68-
pecl install xdebug; \
6968
case ${PHP_VERSION} in \
69+
8.3*) \
70+
pecl install xdebug-3.3.0alpha3; \
71+
echo "zend_extension=$(find /usr/local/lib/php/extensions/ -name xdebug.so)" > /usr/local/etc/php/conf.d/xdebug.ini \
72+
&& echo "xdebug.mode=profile" >> /usr/local/etc/php/conf.d/xdebug.ini \
73+
&& echo "xdebug.start_with_request=trigger" >> /usr/local/etc/php/conf.d/xdebug.ini \
74+
&& echo "xdebug.remote_handler=dbgp" >> /usr/local/etc/php/conf.d/xdebug.ini \
75+
&& echo "xdebug.client_port=9003" >> /usr/local/etc/php/conf.d/xdebug.ini \
76+
&& echo "xdebug.discover_client_host=1" >> /usr/local/etc/php/conf.d/xdebug.ini \
77+
&& echo "xdebug.idekey='PHPSTORM'" >> /usr/local/etc/php/conf.d/xdebug.ini \
78+
&& echo "xdebug.output_dir='/opt/profile'" >> /usr/local/etc/php/conf.d/xdebug.ini \
79+
&& docker-php-ext-enable xdebug ;\
80+
;; \
7081
8.2*|8.1*|8.0*|7.4*) \
82+
pecl install xdebug; \
7183
echo "zend_extension=$(find /usr/local/lib/php/extensions/ -name xdebug.so)" > /usr/local/etc/php/conf.d/xdebug.ini \
7284
&& echo "xdebug.mode=profile" >> /usr/local/etc/php/conf.d/xdebug.ini \
7385
&& echo "xdebug.start_with_request=trigger" >> /usr/local/etc/php/conf.d/xdebug.ini \
@@ -79,6 +91,7 @@ RUN if [ ${ENABLE_XDEBUG} = 1 ] ; then \
7991
&& docker-php-ext-enable xdebug ;\
8092
;; \
8193
*) \
94+
pecl install xdebug; \
8295
echo "zend_extension=$(find /usr/local/lib/php/extensions/ -name xdebug.so)" > /usr/local/etc/php/conf.d/xdebug.ini \
8396
&& echo "xdebug.default_enable=1" >> /usr/local/etc/php/conf.d/xdebug.ini \
8497
&& echo "xdebug.remote_enable=1" >> /usr/local/etc/php/conf.d/xdebug.ini \

.env.example

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ NGINX_PORT_443=443
3030
# 8.0
3131
# 8.1
3232
# 8.2
33+
# 8.3
3334
#
3435
PHP_VERSION=8.2
3536

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
1010

1111
No unreleased versions
1212

13+
## [2.5.0] - 2023-11-30
14+
15+
### Added
16+
17+
- support for PHP `8.3` (with xdebug-3.3.0alpha3)
18+
1319
## [2.4.0] - 2023-07-03
1420

1521
### Added

README.it.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Laradhoc
99
![GitHub](https://img.shields.io/github/license/eleftrik/laradhoc)
1010
![GitHub tag (latest by date)](https://img.shields.io/github/v/tag/eleftrik/laradhoc?label=version)
1111

12-
🆕 ✅ *Rilasciata la versione **2.4.0** - supporto per PHP 8.2*
12+
🆕 ✅ *Rilasciata la versione **2.5.0** - supporto per PHP 8.3*
1313

1414
**Laradhoc** è un semplice ambiente di sviluppo LEMP basato su Docker per applicazioni [Laravel](https://laravel.com/).
1515

@@ -19,7 +19,7 @@ Cerchi qualcosa di simile per [WordPress](https://wordpress.org/)? Dai un'occhia
1919
## Caratteristiche
2020

2121
* Nginx
22-
* PHP (7.2 / 7.3 / 7.4 / 8.0 / 8.1 / 8.2) con OPCache
22+
* PHP (7.2 / 7.3 / 7.4 / 8.0 / 8.1 / 8.2 / 8.3) con OPCache
2323
* Composer 2.0
2424
* MySQL / MariaDB
2525
* MongoDB

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Laradhoc
99
![GitHub](https://img.shields.io/github/license/eleftrik/laradhoc)
1010
![GitHub tag (latest by date)](https://img.shields.io/github/v/tag/eleftrik/laradhoc?label=version)
1111

12-
🆕 ✅ *Version **2.4.0** is out - PHP 8.2 support*
12+
🆕 ✅ *Version **2.5.0** is out - PHP 8.3 support*
1313

1414
**Laradhoc** is a Docker-based basic LEMP development environment designed for [Laravel](https://laravel.com/)
1515
applications.
@@ -22,7 +22,7 @@ Looking for a similar Docker environment for [WordPress](https://wordpress.org/)
2222
## Features
2323

2424
* Nginx
25-
* PHP (7.2 / 7.3 / 7.4 / 8.0 / 8.1 / 8.2) with OPCache
25+
* PHP (7.2 / 7.3 / 7.4 / 8.0 / 8.1 / 8.2 / 8.3) with OPCache
2626
* Composer 2.0
2727
* MySQL / MariaDB
2828
* MongoDB

bin/laradhoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env bash
22

3-
LARADHOC_VERSION=2.4.0
3+
LARADHOC_VERSION=2.5.0
44

55
SCRIPT=`realpath $0`
66
SCRIPT_PATH=`dirname $SCRIPT`

0 commit comments

Comments
 (0)