Skip to content

Commit

Permalink
Merge pull request #5 from RunOpenCode/feature/library-update
Browse files Browse the repository at this point in the history
Updated library and added callback handlers
  • Loading branch information
TheCelavi authored Mar 28, 2024
2 parents 346bdfa + 1ef34e4 commit 636aa58
Show file tree
Hide file tree
Showing 34 changed files with 5,713 additions and 1,798 deletions.
37 changes: 37 additions & 0 deletions Dockerfile
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
3 changes: 3 additions & 0 deletions bin/attach.sh
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"
1 change: 1 addition & 0 deletions bin/run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
docker-compose up -d --build > /dev/null
1 change: 1 addition & 0 deletions bin/shutdown.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
docker-compose down
100 changes: 55 additions & 45 deletions composer.json
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"
}
}
Loading

0 comments on commit 636aa58

Please sign in to comment.