Skip to content

Commit a58dd83

Browse files
author
k.polyntsov
committed
update: PHP version
1 parent 744a301 commit a58dd83

File tree

8 files changed

+1805
-13
lines changed

8 files changed

+1805
-13
lines changed

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
11
.idea
22
phpunit.phar
3+
.phpunit.result.cache
34
*~
5+
6+
# composer vendor dir
7+
.composer
8+
vendor

Dockerfile

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
FROM php:8.3-apache
2+
LABEL maintainers="Polyntsov Konstantin <[email protected]>"
3+
4+
# === INSTALL MODULES ===
5+
RUN apt-get update && apt-get install -y zip libzip-dev && docker-php-ext-install zip
6+
7+
# === INSTALL COMPOSER ===
8+
ENV COMPOSER_ALLOW_SUPERUSER=1
9+
RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" \
10+
&& php composer-setup.php --version=2.8.5 \
11+
&& php -r "unlink('composer-setup.php');" \
12+
&& mv composer.phar /usr/local/bin/composer
13+
14+
# === SET UP WORKING DIR ===
15+
WORKDIR /var/www/html

Makefile

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

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,13 @@ Version 2.0
8686

8787
# Contribute
8888

89-
For running tests just run ``$ make``
89+
For running tests run
90+
91+
```bash
92+
docker compose up -d
93+
docker compose exec php8.3 composer install
94+
docker compose exec php8.3 composer test
95+
```
9096

9197
# LICENSE
9298
Redistribution and use in source and binary forms, with or without

composer.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,13 @@
3636
"dev-master": "2.1.x-dev"
3737
}
3838
},
39+
"scripts": {
40+
"test": "./vendor/bin/phpunit --bootstrap expression.php tests/*"
41+
},
3942
"require": {
40-
"php": "^5.4 || >=7.0 <8.1"
43+
"php": "^5.4 || >=7.0 || ^8.1"
44+
},
45+
"require-dev": {
46+
"phpunit/phpunit": "^9"
4147
}
4248
}

0 commit comments

Comments
 (0)