-
- Downloads
Initial commit
Showing
- .gitignore 4 additions, 0 deletions.gitignore
- .gitlab-ci.yml 44 additions, 0 deletions.gitlab-ci.yml
- README.md 62 additions, 1 deletionREADME.md
- composer.json 56 additions, 0 deletionscomposer.json
- phpunit.xml 19 additions, 0 deletionsphpunit.xml
- psalm.xml 20 additions, 0 deletionspsalm.xml
- src/CorsMiddleware.php 146 additions, 0 deletionssrc/CorsMiddleware.php
- tests/Unit/CorsMiddlewareTest.php 123 additions, 0 deletionstests/Unit/CorsMiddlewareTest.php
.gitignore
0 → 100644
.gitlab-ci.yml
0 → 100644
composer.json
0 → 100644
{ | ||
"name": "glance-project/cors-middleware", | ||
"description": "A simple PSR middleware to handle CORS", | ||
"type": "library", | ||
"license": "proprietary", | ||
"config": { | ||
"platform-check": false, | ||
"sort-packages": true | ||
}, | ||
"authors": [ | ||
{ | ||
"name": "Mario Gunter Simao", | ||
"email": "mario.simao@cern.ch" | ||
} | ||
], | ||
"scripts": { | ||
"test": [ | ||
"@test:standard", | ||
"@test:types", | ||
"@test:unit" | ||
], | ||
"test:ci": [ | ||
"@test:ci:unit", | ||
"@test:ci:standard", | ||
"@test:types" | ||
], | ||
"test:types": "psalm --show-info=true --no-diff", | ||
"test:standard": "phpcs src/ tests/ --standard=psr12", | ||
"test:unit": "phpunit tests --configuration phpunit.xml", | ||
"test:ci:standard": "phpcs src/ tests/ --standard=psr12 --report=junit > reports/phpcs.xml", | ||
"test:ci:unit": "phpunit tests --configuration phpunit.xml --coverage-text --colors=never --log-junit reports/phpunit.xml" | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"GlanceProject\\CorsMiddleware\\": "src/" | ||
} | ||
}, | ||
"autoload-dev": { | ||
"psr-4": { | ||
"GlanceProject\\CorsMiddleware\\Tests\\": "tests/" | ||
} | ||
}, | ||
"require": { | ||
"php": "^7.2", | ||
"psr/http-server-middleware": "^1.0", | ||
"psr/http-factory": "^1.0", | ||
"php-http/discovery": "^1.14" | ||
}, | ||
"require-dev": { | ||
"dq5studios/psalm-junit": "^2.0", | ||
"nyholm/psr7": "^1.5", | ||
"phpunit/phpunit": "^8.5", | ||
"squizlabs/php_codesniffer": "^3.5", | ||
"vimeo/psalm": "^4.1" | ||
} | ||
} |
phpunit.xml
0 → 100644
psalm.xml
0 → 100644
src/CorsMiddleware.php
0 → 100644
tests/Unit/CorsMiddlewareTest.php
0 → 100644
Please register or sign in to comment