Skip to content

Commit 636aa58

Browse files
authored
Merge pull request #5 from RunOpenCode/feature/library-update
Updated library and added callback handlers
2 parents 346bdfa + 1ef34e4 commit 636aa58

34 files changed

Lines changed: 5713 additions & 1798 deletions

Dockerfile

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
FROM php:8.2-fpm
2+
3+
RUN apt-get update
4+
RUN apt-get install -y --no-install-recommends wget
5+
RUN apt-get install -y --allow-unauthenticated gnupg
6+
RUN apt-get install -y --allow-unauthenticated xsltproc
7+
RUN apt-get install -y --allow-unauthenticated git
8+
RUN apt-get install -y --allow-unauthenticated zip
9+
RUN apt-get install -y --allow-unauthenticated unzip
10+
RUN apt-get install -y --allow-unauthenticated libzip-dev
11+
12+
#####################################################################################
13+
# #
14+
# Setup Composer #
15+
# #
16+
#####################################################################################
17+
18+
WORKDIR /tmp
19+
20+
ENV COMPOSER_HOME /composer
21+
22+
# Add global binary directory to PATH and make sure to re-export it
23+
ENV PATH /composer/vendor/bin:$PATH
24+
25+
# Allow Composer to be run as root
26+
ENV COMPOSER_ALLOW_SUPERUSER 1
27+
28+
# Setup the Composer installer
29+
RUN curl -o /tmp/composer-setup.php https://getcomposer.org/installer \
30+
&& curl -o /tmp/composer-setup.sig https://composer.github.io/installer.sig \
31+
&& php -r "if (hash('SHA384', file_get_contents('/tmp/composer-setup.php')) !== trim(file_get_contents('/tmp/composer-setup.sig'))) { unlink('/tmp/composer-setup.php'); echo 'Invalid installer' . PHP_EOL; exit(1); }"
32+
33+
RUN php /tmp/composer-setup.php
34+
35+
RUN mv /tmp/composer.phar /usr/local/bin/composer.phar && \
36+
ln -s /usr/local/bin/composer.phar /usr/local/bin/composer && \
37+
chmod +x /usr/local/bin/composer

bin/attach.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/usr/bin/env bash
2+
3+
docker exec -w "/var/www/html" -it runopencode_sax_test sh -c "/bin/bash"

bin/run.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
docker-compose up -d --build > /dev/null

bin/shutdown.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
docker-compose down

composer.json

Lines changed: 55 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,58 @@
11
{
2-
"name": "runopencode/sax",
3-
"description": "XML SAX (JAVA like) parser",
4-
"keywords": [
5-
"xml",
6-
"sax",
7-
"xml parser"
8-
],
9-
"minimum-stability": "stable",
10-
"license": "MIT",
11-
"authors": [
12-
{
13-
"name": "Nikola Svitlica a.k.a TheCelavi",
14-
"email": "thecelavi@gmail.com",
15-
"homepage": "http://www.runopencode.com"
16-
}
17-
],
18-
"require": {
19-
"psr/http-message": "~1.0",
20-
"roave/security-advisories": "dev-master"
21-
},
22-
"autoload": {
23-
"psr-4": {
24-
"RunOpenCode\\Sax\\": "src/RunOpenCode/Sax"
25-
}
26-
},
27-
"require-dev": {
28-
"php": ">=7",
29-
"guzzlehttp/psr7": "~1.0",
30-
"phpunit/phpunit": "~6.0",
31-
"mockery/mockery": "~0.9|~1.0",
32-
"squizlabs/php_codesniffer": "~2.0",
33-
"phploc/phploc": "dev-master",
34-
"pdepend/pdepend": "~2.5",
35-
"phpmd/phpmd": "@stable",
36-
"sebastian/phpcpd": "dev-master",
37-
"theseer/phpdox": "dev-master",
38-
"escapestudios/symfony2-coding-standard": "~2.0"
39-
},
40-
"autoload-dev": {
41-
"psr-4": {
42-
"RunOpenCode\\Sax\\Test\\": "test/"
43-
}
44-
},
45-
"suggest": {
46-
"guzzlehttp/psr7": "Provides PSR-7 StreamInterface implementation."
2+
"name": "runopencode/sax",
3+
"description": "XML SAX (JAVA like) parser",
4+
"keywords": [
5+
"xml",
6+
"sax",
7+
"xml parser"
8+
],
9+
"minimum-stability": "stable",
10+
"license": "MIT",
11+
"authors": [
12+
{
13+
"name": "Nikola Svitlica a.k.a TheCelavi",
14+
"email": "thecelavi@gmail.com",
15+
"homepage": "http://www.runopencode.com"
4716
}
17+
],
18+
"require": {
19+
"psr/http-message": "~1.0",
20+
"roave/security-advisories": "dev-master",
21+
"ext-xml": "*",
22+
"ext-dom": "*",
23+
"ext-simplexml": "*"
24+
},
25+
"autoload": {
26+
"psr-4": {
27+
"RunOpenCode\\Sax\\": "src/RunOpenCode/Sax"
28+
}
29+
},
30+
"require-dev": {
31+
"php": ">=8.2",
32+
"guzzlehttp/psr7": "^2.6",
33+
"phpunit/phpunit": "^9.5",
34+
"mockery/mockery": "^1.6.11",
35+
"squizlabs/php_codesniffer": "^3.9.0",
36+
"phploc/phploc": "^2.0.5",
37+
"pdepend/pdepend": "^2.16.2",
38+
"phpmd/phpmd": "^2.15.0",
39+
"sebastian/phpcpd": "^2.0.1",
40+
"theseer/phpdox": "^0.7.0",
41+
"escapestudios/symfony2-coding-standard": "^3.13.0",
42+
"phpstan/phpstan": "^1.10.64",
43+
"vimeo/psalm": "^5.6.0"
44+
},
45+
"autoload-dev": {
46+
"psr-4": {
47+
"RunOpenCode\\Sax\\Test\\": "test/"
48+
}
49+
},
50+
"suggest": {
51+
"guzzlehttp/psr7": "Provides PSR-7 StreamInterface implementation."
52+
},
53+
"scripts": {
54+
"phpunit": "XDEBUG_MODE=coverage vendor/bin/phpunit --coverage-html ./build/phpunit",
55+
"phpstan": "vendor/bin/phpstan analyse -l 9 src test",
56+
"psalm": "XDEBUG_MODE=off vendor/bin/psalm --no-diff"
57+
}
4858
}

0 commit comments

Comments
 (0)