This repository was archived by the owner on Mar 31, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 7 files changed +42
-13
lines changed Expand file tree Collapse file tree 7 files changed +42
-13
lines changed Original file line number Diff line number Diff line change 16
16
- 8.0
17
17
- 8.1
18
18
- 8.2
19
+ - 8.3
20
+
19
21
steps :
20
- - uses : actions/checkout@v2
22
+ - uses : actions/checkout@v4
21
23
22
24
- name : Install PHP
23
25
uses : shivammathur/setup-php@v2
@@ -29,10 +31,10 @@ jobs:
29
31
30
32
- name : Get Composer Cache Directory
31
33
id : composer-cache
32
- run : echo "::set-output name= dir:: $(composer config cache-files-dir)"
34
+ run : echo "dir= $(composer config cache-files-dir)" >> $GITHUB_OUTPUT
33
35
34
36
- name : Cache Composer packages
35
- uses : actions/cache@v2
37
+ uses : actions/cache@v3
36
38
with :
37
39
path : ${{ steps.composer-cache.outputs.dir }}
38
40
key : php${{ matrix.php }}-composer-${{ hashFiles('**/composer.json') }}
Original file line number Diff line number Diff line change 1
1
php-input-filter
2
2
===
3
3
4
+ 2.0.2 [ 2023-12-30]
5
+ ---
6
+
7
+ - Added supporting of PHP 8.3.
8
+
4
9
2.0.1 [ 2023-01-29]
5
10
---
6
11
Original file line number Diff line number Diff line change 8
8
9
9
A simple and powerful input filter for any PHP application. It's alike a form, but not the same. ;)
10
10
11
- Supporting PHP from 7.4 up to 8.2 .
11
+ Supporting PHP from 7.4 up to 8.x .
12
12
13
13
## Installation
14
14
Original file line number Diff line number Diff line change 27
27
},
28
28
"require-dev" : {
29
29
"phpunit/phpunit" : " ^9.5.28" ,
30
- "friendsofphp/php-cs-fixer" : " ^3.13.2 "
30
+ "friendsofphp/php-cs-fixer" : " ^3.45.0 "
31
31
},
32
32
"autoload" : {
33
33
"psr-4" : {
Original file line number Diff line number Diff line change 1
1
zend_extension =xdebug
2
2
xdebug.mode =debug,develop
3
+ xdebug.log =/home/php-cli/php-xdebug.log
Original file line number Diff line number Diff line change 1
- FROM php:8.2-cli-alpine
1
+ FROM php:8.3-cli-alpine
2
+
3
+ ARG GITHUB_OAUTH_TOKEN=""
4
+ ARG USER_UID=""
5
+ ARG USER_GID=""
2
6
3
7
RUN apk add --no-cache $PHPIZE_DEPS && apk add --update linux-headers
4
8
5
9
RUN pecl install xdebug && docker-php-ext-enable xdebug
6
10
RUN rm -f /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
7
11
COPY 50_xdebug.ini /usr/local/etc/php/conf.d/
8
12
9
- RUN curl -sS https://getcomposer.org/installer | php -- --2 --install-dir=/usr/bin --filename=composer
10
- ARG GITHUB_OAUTH_TOKEN=false
11
- RUN if [ ${GITHUB_OAUTH_TOKEN} != false ]; then \
12
- composer config -g github-oauth.github.com ${GITHUB_OAUTH_TOKEN} \
13
- ;fi
13
+ RUN addgroup -g $USER_GID php-cli \
14
+ && adduser -u $USER_UID -G php-cli -s /bin/sh -D php-cli
15
+
16
+ USER php-cli
14
17
15
- RUN export COMPOSER_DISABLE_XDEBUG_WARN=1
18
+ ENV PATH="/home/php-cli/.local/bin:/home/php-cli/.composer/vendor/bin:${PATH}"
19
+
20
+ RUN mkdir -p /home/php-cli/.local/bin && \
21
+ curl -sS https://getcomposer.org/installer | \
22
+ /usr/local/bin/php -- --2 --install-dir=/home/php-cli/.local/bin --filename=composer
23
+
24
+ RUN if [ -n "${GITHUB_OAUTH_TOKEN}" ]; then \
25
+ composer config -g github-oauth.github.com ${GITHUB_OAUTH_TOKEN} \
26
+ ;fi
16
27
17
28
CMD ["php" , "-a" ]
Original file line number Diff line number Diff line change @@ -5,10 +5,20 @@ services:
5
5
build :
6
6
context : workenv
7
7
args :
8
- - GITHUB_OAUTH_TOKEN=<YOUR_TOKEN>
8
+ - " GITHUB_OAUTH_TOKEN=<YOUR_TOKEN>"
9
+ # For Docker Desktop under macOS doesn't matter what IDs will be specified, because Docker works
10
+ # through virtualization, and you may comment "USER_UID" and "USER_GID" args.
11
+ # id -u
12
+ - " USER_UID=1000"
13
+ # id -g
14
+ - " USER_GID=1000"
9
15
working_dir : /app
10
16
tty : true
11
17
volumes :
12
18
- type : bind
13
19
source : ./
14
20
target : /app
21
+ extra_hosts :
22
+ # host.docker.internal doesn't necessary if you use Docker Desktop under macOS, because its
23
+ # specified automatically, and you may comment line below.
24
+ - " host.docker.internal:host-gateway"
You can’t perform that action at this time.
0 commit comments