Skip to content

Commit 4ead8b4

Browse files
authored
Merge pull request #2 from XternalSoft/docs/update-php-8.2-requirements
docs(readme): update php requirement and package version
2 parents 46c9998 + d50688f commit 4ead8b4

2 files changed

Lines changed: 14 additions & 14 deletions

File tree

.devcontainer/Dockerfile

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
FROM ubuntu:20.04
1+
FROM php:8.2-cli
22

3-
RUN export DEBIAN_FRONTEND=noninteractive \
4-
&& apt update \
5-
&& apt install -y php7.4-cli php7.4-dev php7.4-mbstring php7.4-curl php7.4-intl git zip unzip libicu-dev
3+
RUN apt update && apt install -y \
4+
git \
5+
zip \
6+
unzip \
7+
libicu-dev \
8+
libcurl4-openssl-dev \
9+
libonig-dev
610

7-
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
11+
RUN docker-php-ext-install intl mbstring curl
12+
13+
RUN pecl install xdebug && docker-php-ext-enable xdebug
814

9-
RUN mkdir -p /xdebug && git clone https://github.com/xdebug/xdebug.git --recursive --branch 3.1.0 /xdebug
10-
RUN cd /xdebug \
11-
&& phpize \
12-
&& ./configure --enable-xdebug \
13-
&& make \
14-
&& make install \
15-
&& echo 'zend_extension=xdebug' > /etc/php/7.4/cli/conf.d/99-xdebug.ini
15+
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
1616

1717
RUN php -v
1818

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ It is strongly recommended to:
2626
## Installation
2727

2828
##### System requirements:
29-
* PHP >= __7.2__ (old versions supports __5.4+__)
29+
* PHP >= __8.2__
3030
* php-curl
3131
* php-mbstring
3232
* Open port __43__ in firewall
@@ -45,7 +45,7 @@ composer require xternalsoft/php-whois
4545
or composer.json:
4646
````
4747
"require": {
48-
"xternalsoft/php-whois": "^4.0"
48+
"xternalsoft/php-whois": "^1.0"
4949
}
5050
````
5151

0 commit comments

Comments
 (0)