Files
openapi-generator/samples/server/petstore/php-slim/composer.json
Yuriy Belenko 58e0946b1e [Slim] Add Basic authentication middleware (#606)
* [Slim] Add Basic Authentication Middleware

User needs to add own implementation to verifyCredentials method in AuthBasic.php.

* [Slim] Update README template

I'm not sure about `middlewareSrcPath` variable. I'll fix it in following PRs
if path is broken.
Hope that notice in README catches attention and most of users will read it.

* Revert "[Slim] Update README template"

This reverts commit 204ee02fd853feb3cc19db5658348c7fee6ca3f5.

* Revert "[Slim] Add Basic Authentication Middleware"

This reverts commit 6a8e03079a70213797896e660b7e7fa1894da0a6.

* [Slim] Add "tuupola/slim-basic-auth" package

Package "tuupola/slim-basic-auth" 3.1.0 requires PHP 7, that's why I
set it's version to ^3.0.0 in Composer. Minimum version will be
3.0.0-rc.1 which supports PHP 5.5. I've tested build with PHP 7, it
would be nice to check build with PHP 5.5 someday.

* [Slim] Update README template

Not sure about forward slash in path to SlimRouter class. I will fix it
in upcoming PRs if necessary.

* [Slim] Refresh samples
2018-08-01 00:55:30 +08:00

25 lines
497 B
JSON

{
"minimum-stability": "RC",
"require": {
"php": ">=5.5",
"slim/slim": "3.*",
"tuupola/slim-basic-auth": "^3.0.0"
},
"require-dev": {
"phpunit/phpunit": "^4.8"
},
"autoload": {
"psr-4": { "OpenAPIServer\\": "lib/" }
},
"autoload-dev": {
"psr-4": { "OpenAPIServer\\": "test/" }
},
"scripts": {
"test": [
"@test-apis",
"@test-models"
],
"test-apis": "phpunit --testsuite Apis",
"test-models": "phpunit --testsuite Models"
}
}