-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from RunOpenCode/feature/library-update
Updated library and added callback handlers
- Loading branch information
Showing
34 changed files
with
5,713 additions
and
1,798 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
FROM php:8.2-fpm | ||
|
||
RUN apt-get update | ||
RUN apt-get install -y --no-install-recommends wget | ||
RUN apt-get install -y --allow-unauthenticated gnupg | ||
RUN apt-get install -y --allow-unauthenticated xsltproc | ||
RUN apt-get install -y --allow-unauthenticated git | ||
RUN apt-get install -y --allow-unauthenticated zip | ||
RUN apt-get install -y --allow-unauthenticated unzip | ||
RUN apt-get install -y --allow-unauthenticated libzip-dev | ||
|
||
##################################################################################### | ||
# # | ||
# Setup Composer # | ||
# # | ||
##################################################################################### | ||
|
||
WORKDIR /tmp | ||
|
||
ENV COMPOSER_HOME /composer | ||
|
||
# Add global binary directory to PATH and make sure to re-export it | ||
ENV PATH /composer/vendor/bin:$PATH | ||
|
||
# Allow Composer to be run as root | ||
ENV COMPOSER_ALLOW_SUPERUSER 1 | ||
|
||
# Setup the Composer installer | ||
RUN curl -o /tmp/composer-setup.php https://getcomposer.org/installer \ | ||
&& curl -o /tmp/composer-setup.sig https://composer.github.io/installer.sig \ | ||
&& 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); }" | ||
|
||
RUN php /tmp/composer-setup.php | ||
|
||
RUN mv /tmp/composer.phar /usr/local/bin/composer.phar && \ | ||
ln -s /usr/local/bin/composer.phar /usr/local/bin/composer && \ | ||
chmod +x /usr/local/bin/composer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/usr/bin/env bash | ||
|
||
docker exec -w "/var/www/html" -it runopencode_sax_test sh -c "/bin/bash" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
docker-compose up -d --build > /dev/null |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
docker-compose down |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,58 @@ | ||
{ | ||
"name": "runopencode/sax", | ||
"description": "XML SAX (JAVA like) parser", | ||
"keywords": [ | ||
"xml", | ||
"sax", | ||
"xml parser" | ||
], | ||
"minimum-stability": "stable", | ||
"license": "MIT", | ||
"authors": [ | ||
{ | ||
"name": "Nikola Svitlica a.k.a TheCelavi", | ||
"email": "thecelavi@gmail.com", | ||
"homepage": "http://www.runopencode.com" | ||
} | ||
], | ||
"require": { | ||
"psr/http-message": "~1.0", | ||
"roave/security-advisories": "dev-master" | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"RunOpenCode\\Sax\\": "src/RunOpenCode/Sax" | ||
} | ||
}, | ||
"require-dev": { | ||
"php": ">=7", | ||
"guzzlehttp/psr7": "~1.0", | ||
"phpunit/phpunit": "~6.0", | ||
"mockery/mockery": "~0.9|~1.0", | ||
"squizlabs/php_codesniffer": "~2.0", | ||
"phploc/phploc": "dev-master", | ||
"pdepend/pdepend": "~2.5", | ||
"phpmd/phpmd": "@stable", | ||
"sebastian/phpcpd": "dev-master", | ||
"theseer/phpdox": "dev-master", | ||
"escapestudios/symfony2-coding-standard": "~2.0" | ||
}, | ||
"autoload-dev": { | ||
"psr-4": { | ||
"RunOpenCode\\Sax\\Test\\": "test/" | ||
} | ||
}, | ||
"suggest": { | ||
"guzzlehttp/psr7": "Provides PSR-7 StreamInterface implementation." | ||
"name": "runopencode/sax", | ||
"description": "XML SAX (JAVA like) parser", | ||
"keywords": [ | ||
"xml", | ||
"sax", | ||
"xml parser" | ||
], | ||
"minimum-stability": "stable", | ||
"license": "MIT", | ||
"authors": [ | ||
{ | ||
"name": "Nikola Svitlica a.k.a TheCelavi", | ||
"email": "thecelavi@gmail.com", | ||
"homepage": "http://www.runopencode.com" | ||
} | ||
], | ||
"require": { | ||
"psr/http-message": "~1.0", | ||
"roave/security-advisories": "dev-master", | ||
"ext-xml": "*", | ||
"ext-dom": "*", | ||
"ext-simplexml": "*" | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"RunOpenCode\\Sax\\": "src/RunOpenCode/Sax" | ||
} | ||
}, | ||
"require-dev": { | ||
"php": ">=8.2", | ||
"guzzlehttp/psr7": "^2.6", | ||
"phpunit/phpunit": "^9.5", | ||
"mockery/mockery": "^1.6.11", | ||
"squizlabs/php_codesniffer": "^3.9.0", | ||
"phploc/phploc": "^2.0.5", | ||
"pdepend/pdepend": "^2.16.2", | ||
"phpmd/phpmd": "^2.15.0", | ||
"sebastian/phpcpd": "^2.0.1", | ||
"theseer/phpdox": "^0.7.0", | ||
"escapestudios/symfony2-coding-standard": "^3.13.0", | ||
"phpstan/phpstan": "^1.10.64", | ||
"vimeo/psalm": "^5.6.0" | ||
}, | ||
"autoload-dev": { | ||
"psr-4": { | ||
"RunOpenCode\\Sax\\Test\\": "test/" | ||
} | ||
}, | ||
"suggest": { | ||
"guzzlehttp/psr7": "Provides PSR-7 StreamInterface implementation." | ||
}, | ||
"scripts": { | ||
"phpunit": "XDEBUG_MODE=coverage vendor/bin/phpunit --coverage-html ./build/phpunit", | ||
"phpstan": "vendor/bin/phpstan analyse -l 9 src test", | ||
"psalm": "XDEBUG_MODE=off vendor/bin/psalm --no-diff" | ||
} | ||
} |
Oops, something went wrong.