diff --git a/bin/configs/other/openapi3/php-slim-deprecated-php-slim.yaml b/bin/configs/other/openapi3/php-slim-deprecated-php-slim.yaml
deleted file mode 100644
index 09147cbb6713..000000000000
--- a/bin/configs/other/openapi3/php-slim-deprecated-php-slim.yaml
+++ /dev/null
@@ -1,4 +0,0 @@
-generatorName: php-slim-deprecated
-outputDir: samples/server/petstore/php-slim
-inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml
-templateDir: modules/openapi-generator/src/main/resources/php-slim-server
diff --git a/bin/configs/php-slim-deprecated-php-slim.yaml b/bin/configs/php-slim-deprecated-php-slim.yaml
deleted file mode 100644
index 62342a190f88..000000000000
--- a/bin/configs/php-slim-deprecated-php-slim.yaml
+++ /dev/null
@@ -1,4 +0,0 @@
-generatorName: php-slim-deprecated
-outputDir: samples/server/petstore/php-slim
-inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml
-templateDir: modules/openapi-generator/src/main/resources/php-slim-server
diff --git a/pom.xml b/pom.xml
index 6f5ea7a6c520..471f9b74d005 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1181,7 +1181,6 @@
samples/server/petstore/python-aiohttp-srclayout
samples/server/petstore/python-flask
samples/server/petstore/python-flask-python2
- samples/server/petstore/php-slim
samples/server/petstore/php-slim4
samples/server/petstore/rust-server
diff --git a/samples/server/petstore/php-slim/.gitignore b/samples/server/petstore/php-slim/.gitignore
deleted file mode 100644
index db204792ea34..000000000000
--- a/samples/server/petstore/php-slim/.gitignore
+++ /dev/null
@@ -1,17 +0,0 @@
-# ref: https://github.com/github/gitignore/blob/master/Composer.gitignore
-
-composer.phar
-/vendor/
-
-# Commit your application's lock file https://getcomposer.org/doc/01-basic-usage.md#commit-your-composer-lock-file-to-version-control
-# You may choose to ignore a library lock file http://getcomposer.org/doc/02-libraries.md#lock-file
-# composer.lock
-
-# phplint tool creates cache file which is not necessary in a codebase
-/.phplint-cache
-
-# Do not commit local PHPUnit config
-/phpunit.xml
-
-# Do not commit local PHP_CodeSniffer config
-/phpcs.xml
\ No newline at end of file
diff --git a/samples/server/petstore/php-slim/.htaccess b/samples/server/petstore/php-slim/.htaccess
deleted file mode 100644
index f6a2ceb3952b..000000000000
--- a/samples/server/petstore/php-slim/.htaccess
+++ /dev/null
@@ -1,6 +0,0 @@
-
- RewriteEngine On
- RewriteCond %{REQUEST_FILENAME} !-f
- RewriteCond %{REQUEST_FILENAME} !-d
- RewriteRule ^ index.php [QSA,L]
-
\ No newline at end of file
diff --git a/samples/server/petstore/php-slim/.openapi-generator-ignore b/samples/server/petstore/php-slim/.openapi-generator-ignore
deleted file mode 100644
index 7484ee590a38..000000000000
--- a/samples/server/petstore/php-slim/.openapi-generator-ignore
+++ /dev/null
@@ -1,23 +0,0 @@
-# OpenAPI Generator Ignore
-# Generated by openapi-generator https://github.com/openapitools/openapi-generator
-
-# Use this file to prevent files from being overwritten by the generator.
-# The patterns follow closely to .gitignore or .dockerignore.
-
-# As an example, the C# client generator defines ApiClient.cs.
-# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
-#ApiClient.cs
-
-# You can match any string of characters against a directory, file or extension with a single asterisk (*):
-#foo/*/qux
-# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
-
-# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
-#foo/**/qux
-# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
-
-# You can also negate patterns with an exclamation (!).
-# For example, you can ignore all files in a docs folder with the file extension .md:
-#docs/*.md
-# Then explicitly reverse the ignore rule for a single file:
-#!docs/README.md
diff --git a/samples/server/petstore/php-slim/.openapi-generator/FILES b/samples/server/petstore/php-slim/.openapi-generator/FILES
deleted file mode 100644
index 12513343c075..000000000000
--- a/samples/server/petstore/php-slim/.openapi-generator/FILES
+++ /dev/null
@@ -1,75 +0,0 @@
-.gitignore
-.htaccess
-README.md
-composer.json
-index.php
-lib/Api/AbstractAnotherFakeApi.php
-lib/Api/AbstractFakeApi.php
-lib/Api/AbstractFakeClassnameTags123Api.php
-lib/Api/AbstractPetApi.php
-lib/Api/AbstractStoreApi.php
-lib/Api/AbstractUserApi.php
-lib/Auth/AbstractAuthenticator.php
-lib/Auth/AbstractAuthenticator.php
-lib/Auth/AbstractAuthenticator.php
-lib/Auth/AbstractAuthenticator.php
-lib/Auth/AbstractAuthenticator.php
-lib/Auth/AbstractAuthenticator.php
-lib/Auth/AbstractAuthenticator.php
-lib/Auth/AbstractAuthenticator.php
-lib/Auth/AbstractAuthenticator.php
-lib/Auth/AbstractAuthenticator.php
-lib/Auth/AbstractAuthenticator.php
-lib/Auth/AbstractAuthenticator.php
-lib/Auth/AbstractAuthenticator.php
-lib/Model/AdditionalPropertiesAnyType.php
-lib/Model/AdditionalPropertiesArray.php
-lib/Model/AdditionalPropertiesBoolean.php
-lib/Model/AdditionalPropertiesClass.php
-lib/Model/AdditionalPropertiesInteger.php
-lib/Model/AdditionalPropertiesNumber.php
-lib/Model/AdditionalPropertiesObject.php
-lib/Model/AdditionalPropertiesString.php
-lib/Model/Animal.php
-lib/Model/ApiResponse.php
-lib/Model/ArrayOfArrayOfNumberOnly.php
-lib/Model/ArrayOfNumberOnly.php
-lib/Model/ArrayTest.php
-lib/Model/BigCat.php
-lib/Model/BigCatAllOf.php
-lib/Model/Capitalization.php
-lib/Model/Cat.php
-lib/Model/CatAllOf.php
-lib/Model/Category.php
-lib/Model/ClassModel.php
-lib/Model/Client.php
-lib/Model/Dog.php
-lib/Model/DogAllOf.php
-lib/Model/EnumArrays.php
-lib/Model/EnumClass.php
-lib/Model/EnumTest.php
-lib/Model/File.php
-lib/Model/FileSchemaTestClass.php
-lib/Model/FormatTest.php
-lib/Model/HasOnlyReadOnly.php
-lib/Model/MapTest.php
-lib/Model/MixedPropertiesAndAdditionalPropertiesClass.php
-lib/Model/Model200Response.php
-lib/Model/ModelList.php
-lib/Model/ModelReturn.php
-lib/Model/Name.php
-lib/Model/NumberOnly.php
-lib/Model/Order.php
-lib/Model/OuterComposite.php
-lib/Model/OuterEnum.php
-lib/Model/Pet.php
-lib/Model/ReadOnlyFirst.php
-lib/Model/SpecialModelName.php
-lib/Model/Tag.php
-lib/Model/TypeHolderDefault.php
-lib/Model/TypeHolderExample.php
-lib/Model/User.php
-lib/Model/XmlItem.php
-lib/SlimRouter.php
-phpcs.xml.dist
-phpunit.xml.dist
diff --git a/samples/server/petstore/php-slim/.openapi-generator/VERSION b/samples/server/petstore/php-slim/.openapi-generator/VERSION
deleted file mode 100644
index d99e7162d01f..000000000000
--- a/samples/server/petstore/php-slim/.openapi-generator/VERSION
+++ /dev/null
@@ -1 +0,0 @@
-5.0.0-SNAPSHOT
\ No newline at end of file
diff --git a/samples/server/petstore/php-slim/README.md b/samples/server/petstore/php-slim/README.md
deleted file mode 100644
index 6b2f02d44e96..000000000000
--- a/samples/server/petstore/php-slim/README.md
+++ /dev/null
@@ -1,232 +0,0 @@
-# php-base - PHP Slim Server library for OpenAPI Petstore
-
-* [OpenAPI Generator](https://openapi-generator.tech)
-* [Slim Framework Documentation](https://www.slimframework.com/docs/)
-
-## Requirements
-
-* Web server with URL rewriting
-* PHP 7.0 or newer
-
-This package contains `.htaccess` for Apache configuration.
-If you use another server(Nginx, HHVM, IIS, lighttpd) check out [Web Servers](https://www.slimframework.com/docs/v3/start/web-servers.html) doc.
-
-## Installation via [Composer](https://getcomposer.org/)
-
-Navigate into your project's root directory and execute the bash command shown below.
-This command downloads the Slim Framework and its third-party dependencies into your project's `vendor/` directory.
-```bash
-$ composer install
-```
-
-## Start devserver
-
-Run the following command in terminal to start localhost web server, assuming `./php-slim-server/` is public-accessible directory with `index.php` file:
-```bash
-$ php -S localhost:8888 -t php-slim-server
-```
-> **Warning** This web server was designed to aid application development.
-> It may also be useful for testing purposes or for application demonstrations that are run in controlled environments.
-> It is not intended to be a full-featured web server. It should not be used on a public network.
-
-## Tests
-
-### PHPUnit
-
-This package uses PHPUnit 6 or 7(depends from your PHP version) for unit testing.
-[Test folder](test) contains templates which you can fill with real test assertions.
-How to write tests read at [PHPUnit Manual - Chapter 2. Writing Tests for PHPUnit](https://phpunit.de/manual/6.5/en/writing-tests-for-phpunit.html).
-
-#### Run
-
-Command | Target
----- | ----
-`$ composer test` | All tests
-`$ composer test-apis` | Apis tests
-`$ composer test-models` | Models tests
-
-#### Config
-
-Package contains fully functional config `./phpunit.xml.dist` file. Create `./phpunit.xml` in root folder to override it.
-
-Quote from [3. The Command-Line Test Runner — PHPUnit 7.4 Manual](https://phpunit.readthedocs.io/en/7.4/textui.html#command-line-options):
-
-> If phpunit.xml or phpunit.xml.dist (in that order) exist in the current working directory and --configuration is not used, the configuration will be automatically read from that file.
-
-### PHP CodeSniffer
-
-[PHP CodeSniffer Documentation](https://github.com/squizlabs/PHP_CodeSniffer/wiki). This tool helps to follow coding style and avoid common PHP coding mistakes.
-
-#### Run
-
-```bash
-$ composer phpcs
-```
-
-#### Config
-
-Package contains fully functional config `./phpcs.xml.dist` file. It checks source code against PSR-1 and PSR-2 coding standards.
-Create `./phpcs.xml` in root folder to override it. More info at [Using a Default Configuration File](https://github.com/squizlabs/PHP_CodeSniffer/wiki/Advanced-Usage#using-a-default-configuration-file)
-
-### PHPLint
-
-[PHPLint Documentation](https://github.com/overtrue/phplint). Checks PHP syntax only.
-
-#### Run
-
-```bash
-$ composer phplint
-```
-
-## Show errors
-
-Switch on option in `./index.php`:
-```diff
- /**
- * When true, additional information about exceptions are displayed by the default
- * error handler.
- * Default: false
- */
---- // 'displayErrorDetails' => false,
-+++ 'displayErrorDetails' => true,
-```
-
-## API Endpoints
-
-All URIs are relative to *http://petstore.swagger.io:80/v2*
-
-> Important! Do not modify abstract API controllers directly! Instead extend them by implementation classes like:
-
-```php
-// src/Api/PetApi.php
-
-namespace OpenAPIServer\Api;
-
-use OpenAPIServer\Api\AbstractPetApi;
-
-class PetApi extends AbstractPetApi
-{
-
- public function addPet($request, $response, $args)
- {
- // your implementation of addPet method here
- }
-}
-```
-
-Place all your implementation classes in `./src` folder accordingly.
-For instance, when abstract class located at `./lib/Api/AbstractPetApi.php` you need to create implementation class at `./src/Api/PetApi.php`.
-
-Class | Method | HTTP request | Description
------------- | ------------- | ------------- | -------------
-*AbstractAnotherFakeApi* | **call123TestSpecialTags** | **PATCH** /another-fake/dummy | To test special tags
-*AbstractFakeApi* | **createXmlItem** | **POST** /fake/create_xml_item | creates an XmlItem
-*AbstractFakeApi* | **fakeOuterBooleanSerialize** | **POST** /fake/outer/boolean |
-*AbstractFakeApi* | **fakeOuterCompositeSerialize** | **POST** /fake/outer/composite |
-*AbstractFakeApi* | **fakeOuterNumberSerialize** | **POST** /fake/outer/number |
-*AbstractFakeApi* | **fakeOuterStringSerialize** | **POST** /fake/outer/string |
-*AbstractFakeApi* | **testBodyWithFileSchema** | **PUT** /fake/body-with-file-schema |
-*AbstractFakeApi* | **testBodyWithQueryParams** | **PUT** /fake/body-with-query-params |
-*AbstractFakeApi* | **testClientModel** | **PATCH** /fake | To test \"client\" model
-*AbstractFakeApi* | **testEndpointParameters** | **POST** /fake | Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
-*AbstractFakeApi* | **testEnumParameters** | **GET** /fake | To test enum parameters
-*AbstractFakeApi* | **testGroupParameters** | **DELETE** /fake | Fake endpoint to test group parameters (optional)
-*AbstractFakeApi* | **testInlineAdditionalProperties** | **POST** /fake/inline-additionalProperties | test inline additionalProperties
-*AbstractFakeApi* | **testJsonFormData** | **GET** /fake/jsonFormData | test json serialization of form data
-*AbstractFakeApi* | **testQueryParameterCollectionFormat** | **PUT** /fake/test-query-paramters |
-*AbstractFakeClassnameTags123Api* | **testClassname** | **PATCH** /fake_classname_test | To test class name in snake case
-*AbstractPetApi* | **addPet** | **POST** /pet | Add a new pet to the store
-*AbstractPetApi* | **findPetsByStatus** | **GET** /pet/findByStatus | Finds Pets by status
-*AbstractPetApi* | **findPetsByTags** | **GET** /pet/findByTags | Finds Pets by tags
-*AbstractPetApi* | **updatePet** | **PUT** /pet | Update an existing pet
-*AbstractPetApi* | **deletePet** | **DELETE** /pet/{petId} | Deletes a pet
-*AbstractPetApi* | **getPetById** | **GET** /pet/{petId} | Find pet by ID
-*AbstractPetApi* | **updatePetWithForm** | **POST** /pet/{petId} | Updates a pet in the store with form data
-*AbstractPetApi* | **uploadFile** | **POST** /pet/{petId}/uploadImage | uploads an image
-*AbstractPetApi* | **uploadFileWithRequiredFile** | **POST** /fake/{petId}/uploadImageWithRequiredFile | uploads an image (required)
-*AbstractStoreApi* | **getInventory** | **GET** /store/inventory | Returns pet inventories by status
-*AbstractStoreApi* | **placeOrder** | **POST** /store/order | Place an order for a pet
-*AbstractStoreApi* | **deleteOrder** | **DELETE** /store/order/{order_id} | Delete purchase order by ID
-*AbstractStoreApi* | **getOrderById** | **GET** /store/order/{order_id} | Find purchase order by ID
-*AbstractUserApi* | **createUser** | **POST** /user | Create user
-*AbstractUserApi* | **createUsersWithArrayInput** | **POST** /user/createWithArray | Creates list of users with given input array
-*AbstractUserApi* | **createUsersWithListInput** | **POST** /user/createWithList | Creates list of users with given input array
-*AbstractUserApi* | **loginUser** | **GET** /user/login | Logs user into the system
-*AbstractUserApi* | **logoutUser** | **GET** /user/logout | Logs out current logged in user session
-*AbstractUserApi* | **deleteUser** | **DELETE** /user/{username} | Delete user
-*AbstractUserApi* | **getUserByName** | **GET** /user/{username} | Get user by user name
-*AbstractUserApi* | **updateUser** | **PUT** /user/{username} | Updated user
-
-
-## Models
-
-* OpenAPIServer\Model\AdditionalPropertiesAnyType
-* OpenAPIServer\Model\AdditionalPropertiesArray
-* OpenAPIServer\Model\AdditionalPropertiesBoolean
-* OpenAPIServer\Model\AdditionalPropertiesClass
-* OpenAPIServer\Model\AdditionalPropertiesInteger
-* OpenAPIServer\Model\AdditionalPropertiesNumber
-* OpenAPIServer\Model\AdditionalPropertiesObject
-* OpenAPIServer\Model\AdditionalPropertiesString
-* OpenAPIServer\Model\Animal
-* OpenAPIServer\Model\ApiResponse
-* OpenAPIServer\Model\ArrayOfArrayOfNumberOnly
-* OpenAPIServer\Model\ArrayOfNumberOnly
-* OpenAPIServer\Model\ArrayTest
-* OpenAPIServer\Model\BigCat
-* OpenAPIServer\Model\BigCatAllOf
-* OpenAPIServer\Model\Capitalization
-* OpenAPIServer\Model\Cat
-* OpenAPIServer\Model\CatAllOf
-* OpenAPIServer\Model\Category
-* OpenAPIServer\Model\ClassModel
-* OpenAPIServer\Model\Client
-* OpenAPIServer\Model\Dog
-* OpenAPIServer\Model\DogAllOf
-* OpenAPIServer\Model\EnumArrays
-* OpenAPIServer\Model\EnumClass
-* OpenAPIServer\Model\EnumTest
-* OpenAPIServer\Model\File
-* OpenAPIServer\Model\FileSchemaTestClass
-* OpenAPIServer\Model\FormatTest
-* OpenAPIServer\Model\HasOnlyReadOnly
-* OpenAPIServer\Model\MapTest
-* OpenAPIServer\Model\MixedPropertiesAndAdditionalPropertiesClass
-* OpenAPIServer\Model\Model200Response
-* OpenAPIServer\Model\ModelList
-* OpenAPIServer\Model\ModelReturn
-* OpenAPIServer\Model\Name
-* OpenAPIServer\Model\NumberOnly
-* OpenAPIServer\Model\Order
-* OpenAPIServer\Model\OuterComposite
-* OpenAPIServer\Model\OuterEnum
-* OpenAPIServer\Model\Pet
-* OpenAPIServer\Model\ReadOnlyFirst
-* OpenAPIServer\Model\SpecialModelName
-* OpenAPIServer\Model\Tag
-* OpenAPIServer\Model\TypeHolderDefault
-* OpenAPIServer\Model\TypeHolderExample
-* OpenAPIServer\Model\User
-* OpenAPIServer\Model\XmlItem
-
-
-## Authentication
-
-### Security schema `api_key`
-> Important! To make ApiKey authentication work you need to extend [\OpenAPIServer\Auth\AbstractAuthenticator](./lib/Auth/AbstractAuthenticator.php) class by [\OpenAPIServer\Auth\ApiKeyAuthenticator](./src/Auth/ApiKeyAuthenticator.php) class.
-
-### Security schema `api_key_query`
-> Important! To make ApiKey authentication work you need to extend [\OpenAPIServer\Auth\AbstractAuthenticator](./lib/Auth/AbstractAuthenticator.php) class by [\OpenAPIServer\Auth\ApiKeyAuthenticator](./src/Auth/ApiKeyAuthenticator.php) class.
-
-### Security schema `http_basic_test`
-> Important! To make Basic authentication work you need to extend [\OpenAPIServer\Auth\AbstractAuthenticator](./lib/Auth/AbstractAuthenticator.php) class by [\OpenAPIServer\Auth\BasicAuthenticator](./src/Auth/BasicAuthenticator.php) class.
-
-### Security schema `petstore_auth`
-> Important! To make OAuth authentication work you need to extend [\OpenAPIServer\Auth\AbstractAuthenticator](./lib/Auth/AbstractAuthenticator.php) class by [\OpenAPIServer\Auth\OAuthAuthenticator](./src/Auth/OAuthAuthenticator.php) class.
-
-Scope list:
-* `write:pets` - modify pets in your account
-* `read:pets` - read your pets
-
-### Advanced middleware configuration
-Ref to used Slim Token Middleware [dyorg/slim-token-authentication](https://github.com/dyorg/slim-token-authentication/tree/1.x#readme)
diff --git a/samples/server/petstore/php-slim/composer.json b/samples/server/petstore/php-slim/composer.json
deleted file mode 100644
index 91d25bb9cb3e..000000000000
--- a/samples/server/petstore/php-slim/composer.json
+++ /dev/null
@@ -1,38 +0,0 @@
-{
- "minimum-stability": "RC",
- "repositories": [
- {
- "type": "github",
- "url": "https://github.com/ybelenko/slim-token-authentication"
- }
- ],
- "require": {
- "php": "^7.0",
- "slim/slim": "3.*",
- "dyorg/slim-token-authentication": "dev-per_route_apply"
- },
- "require-dev": {
- "phpunit/phpunit": "^6.0 || ^7.0",
- "overtrue/phplint": "^1.0",
- "squizlabs/php_codesniffer": "^3.0"
- },
- "autoload": {
- "psr-4": { "OpenAPIServer\\": [
- "lib/",
- "src/"
- ]}
- },
- "autoload-dev": {
- "psr-4": { "OpenAPIServer\\": "test/" }
- },
- "scripts": {
- "test": [
- "@test-apis",
- "@test-models"
- ],
- "test-apis": "phpunit --testsuite Apis",
- "test-models": "phpunit --testsuite Models",
- "phpcs": "phpcs",
- "phplint": "phplint ./ --exclude=vendor"
- }
-}
diff --git a/samples/server/petstore/php-slim/composer.lock b/samples/server/petstore/php-slim/composer.lock
deleted file mode 100644
index d0509f8107f9..000000000000
--- a/samples/server/petstore/php-slim/composer.lock
+++ /dev/null
@@ -1,2494 +0,0 @@
-{
- "_readme": [
- "This file locks the dependencies of your project to a known state",
- "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
- "This file is @generated automatically"
- ],
- "content-hash": "c277335d4b16a38bf6e8c508449533e6",
- "packages": [
- {
- "name": "container-interop/container-interop",
- "version": "1.2.0",
- "source": {
- "type": "git",
- "url": "https://github.com/container-interop/container-interop.git",
- "reference": "79cbf1341c22ec75643d841642dd5d6acd83bdb8"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/container-interop/container-interop/zipball/79cbf1341c22ec75643d841642dd5d6acd83bdb8",
- "reference": "79cbf1341c22ec75643d841642dd5d6acd83bdb8",
- "shasum": ""
- },
- "require": {
- "psr/container": "^1.0"
- },
- "type": "library",
- "autoload": {
- "psr-4": {
- "Interop\\Container\\": "src/Interop/Container/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "description": "Promoting the interoperability of container objects (DIC, SL, etc.)",
- "homepage": "https://github.com/container-interop/container-interop",
- "time": "2017-02-14T19:40:03+00:00"
- },
- {
- "name": "nikic/fast-route",
- "version": "v1.3.0",
- "source": {
- "type": "git",
- "url": "https://github.com/nikic/FastRoute.git",
- "reference": "181d480e08d9476e61381e04a71b34dc0432e812"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/nikic/FastRoute/zipball/181d480e08d9476e61381e04a71b34dc0432e812",
- "reference": "181d480e08d9476e61381e04a71b34dc0432e812",
- "shasum": ""
- },
- "require": {
- "php": ">=5.4.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^4.8.35|~5.7"
- },
- "type": "library",
- "autoload": {
- "psr-4": {
- "FastRoute\\": "src/"
- },
- "files": [
- "src/functions.php"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Nikita Popov",
- "email": "nikic@php.net"
- }
- ],
- "description": "Fast request router for PHP",
- "keywords": [
- "router",
- "routing"
- ],
- "time": "2018-02-13T20:26:39+00:00"
- },
- {
- "name": "pimple/pimple",
- "version": "v3.2.3",
- "source": {
- "type": "git",
- "url": "https://github.com/silexphp/Pimple.git",
- "reference": "9e403941ef9d65d20cba7d54e29fe906db42cf32"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/silexphp/Pimple/zipball/9e403941ef9d65d20cba7d54e29fe906db42cf32",
- "reference": "9e403941ef9d65d20cba7d54e29fe906db42cf32",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.0",
- "psr/container": "^1.0"
- },
- "require-dev": {
- "symfony/phpunit-bridge": "^3.2"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.2.x-dev"
- }
- },
- "autoload": {
- "psr-0": {
- "Pimple": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- }
- ],
- "description": "Pimple, a simple Dependency Injection Container",
- "homepage": "http://pimple.sensiolabs.org",
- "keywords": [
- "container",
- "dependency injection"
- ],
- "time": "2018-01-21T07:42:36+00:00"
- },
- {
- "name": "psr/container",
- "version": "1.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/php-fig/container.git",
- "reference": "b7ce3b176482dbbc1245ebf52b181af44c2cf55f"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/php-fig/container/zipball/b7ce3b176482dbbc1245ebf52b181af44c2cf55f",
- "reference": "b7ce3b176482dbbc1245ebf52b181af44c2cf55f",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Psr\\Container\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "PHP-FIG",
- "homepage": "http://www.php-fig.org/"
- }
- ],
- "description": "Common Container Interface (PHP FIG PSR-11)",
- "homepage": "https://github.com/php-fig/container",
- "keywords": [
- "PSR-11",
- "container",
- "container-interface",
- "container-interop",
- "psr"
- ],
- "time": "2017-02-14T16:28:37+00:00"
- },
- {
- "name": "psr/http-factory",
- "version": "1.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/php-fig/http-factory.git",
- "reference": "378bfe27931ecc54ff824a20d6f6bfc303bbd04c"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/php-fig/http-factory/zipball/378bfe27931ecc54ff824a20d6f6bfc303bbd04c",
- "reference": "378bfe27931ecc54ff824a20d6f6bfc303bbd04c",
- "shasum": ""
- },
- "require": {
- "php": ">=7.0.0",
- "psr/http-message": "^1.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Psr\\Http\\Message\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "PHP-FIG",
- "homepage": "http://www.php-fig.org/"
- }
- ],
- "description": "Common interfaces for PSR-7 HTTP message factories",
- "keywords": [
- "factory",
- "http",
- "message",
- "psr",
- "psr-17",
- "psr-7",
- "request",
- "response"
- ],
- "time": "2018-07-30T21:54:04+00:00"
- },
- {
- "name": "psr/http-message",
- "version": "1.0.1",
- "source": {
- "type": "git",
- "url": "https://github.com/php-fig/http-message.git",
- "reference": "f6561bf28d520154e4b0ec72be95418abe6d9363"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/php-fig/http-message/zipball/f6561bf28d520154e4b0ec72be95418abe6d9363",
- "reference": "f6561bf28d520154e4b0ec72be95418abe6d9363",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Psr\\Http\\Message\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "PHP-FIG",
- "homepage": "http://www.php-fig.org/"
- }
- ],
- "description": "Common interface for HTTP messages",
- "homepage": "https://github.com/php-fig/http-message",
- "keywords": [
- "http",
- "http-message",
- "psr",
- "psr-7",
- "request",
- "response"
- ],
- "time": "2016-08-06T14:39:51+00:00"
- },
- {
- "name": "psr/http-server-handler",
- "version": "1.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/php-fig/http-server-handler.git",
- "reference": "439d92054dc06097f2406ec074a2627839955a02"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/php-fig/http-server-handler/zipball/439d92054dc06097f2406ec074a2627839955a02",
- "reference": "439d92054dc06097f2406ec074a2627839955a02",
- "shasum": ""
- },
- "require": {
- "php": ">=7.0",
- "psr/http-message": "^1.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Psr\\Http\\Server\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "PHP-FIG",
- "homepage": "http://www.php-fig.org/"
- }
- ],
- "description": "Common interface for HTTP server-side request handler",
- "keywords": [
- "handler",
- "http",
- "http-interop",
- "psr",
- "psr-15",
- "psr-7",
- "request",
- "response",
- "server"
- ],
- "time": "2018-01-22T17:04:15+00:00"
- },
- {
- "name": "psr/http-server-middleware",
- "version": "1.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/php-fig/http-server-middleware.git",
- "reference": "ea17eb1fb2c8df6db919cc578451a8013c6a0ae5"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/php-fig/http-server-middleware/zipball/ea17eb1fb2c8df6db919cc578451a8013c6a0ae5",
- "reference": "ea17eb1fb2c8df6db919cc578451a8013c6a0ae5",
- "shasum": ""
- },
- "require": {
- "php": ">=7.0",
- "psr/http-message": "^1.0",
- "psr/http-server-handler": "^1.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Psr\\Http\\Server\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "PHP-FIG",
- "homepage": "http://www.php-fig.org/"
- }
- ],
- "description": "Common interface for HTTP server-side middleware",
- "keywords": [
- "http",
- "http-interop",
- "middleware",
- "psr",
- "psr-15",
- "psr-7",
- "request",
- "response"
- ],
- "time": "2018-01-22T17:08:31+00:00"
- },
- {
- "name": "slim/slim",
- "version": "3.11.0",
- "source": {
- "type": "git",
- "url": "https://github.com/slimphp/Slim.git",
- "reference": "d378e70431e78ee92ee32ddde61ecc72edf5dc0a"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/slimphp/Slim/zipball/d378e70431e78ee92ee32ddde61ecc72edf5dc0a",
- "reference": "d378e70431e78ee92ee32ddde61ecc72edf5dc0a",
- "shasum": ""
- },
- "require": {
- "container-interop/container-interop": "^1.2",
- "nikic/fast-route": "^1.0",
- "php": ">=5.5.0",
- "pimple/pimple": "^3.0",
- "psr/container": "^1.0",
- "psr/http-message": "^1.0"
- },
- "provide": {
- "psr/http-message-implementation": "1.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^4.0",
- "squizlabs/php_codesniffer": "^2.5"
- },
- "type": "library",
- "autoload": {
- "psr-4": {
- "Slim\\": "Slim"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Rob Allen",
- "email": "rob@akrabat.com",
- "homepage": "http://akrabat.com"
- },
- {
- "name": "Josh Lockhart",
- "email": "hello@joshlockhart.com",
- "homepage": "https://joshlockhart.com"
- },
- {
- "name": "Gabriel Manricks",
- "email": "gmanricks@me.com",
- "homepage": "http://gabrielmanricks.com"
- },
- {
- "name": "Andrew Smith",
- "email": "a.smith@silentworks.co.uk",
- "homepage": "http://silentworks.co.uk"
- }
- ],
- "description": "Slim is a PHP micro framework that helps you quickly write simple yet powerful web applications and APIs",
- "homepage": "https://slimframework.com",
- "keywords": [
- "api",
- "framework",
- "micro",
- "router"
- ],
- "time": "2018-09-16T10:54:21+00:00"
- },
- {
- "name": "tuupola/callable-handler",
- "version": "1.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/tuupola/callable-handler.git",
- "reference": "8b9d87f88056d4234af317d65612d7b6307a747a"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/tuupola/callable-handler/zipball/8b9d87f88056d4234af317d65612d7b6307a747a",
- "reference": "8b9d87f88056d4234af317d65612d7b6307a747a",
- "shasum": ""
- },
- "require": {
- "php": "^7.1",
- "psr/http-server-middleware": "^1.0"
- },
- "require-dev": {
- "codedungeon/phpunit-result-printer": "^0.4.4",
- "overtrue/phplint": "^1.0",
- "phpunit/phpunit": "^6.5",
- "squizlabs/php_codesniffer": "^3.2",
- "tuupola/http-factory": "^0.4.0|^1.0",
- "zendframework/zend-diactoros": "^1.6.0|^2.0"
- },
- "type": "library",
- "autoload": {
- "psr-4": {
- "Tuupola\\Middleware\\": "src"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Mika Tuupola",
- "email": "tuupola@appelsiini.net",
- "homepage": "https://appelsiini.net/",
- "role": "Developer"
- }
- ],
- "description": "Compatibility layer for PSR-7 double pass and PSR-15 middlewares.",
- "homepage": "https://github.com/tuupola/callable-handler",
- "keywords": [
- "middleware",
- "psr-15",
- "psr-7"
- ],
- "time": "2018-10-12T09:59:35+00:00"
- },
- {
- "name": "tuupola/http-factory",
- "version": "1.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/tuupola/http-factory.git",
- "reference": "dd38c41facebdec20b5b4a120cd6380e30720ce8"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/tuupola/http-factory/zipball/dd38c41facebdec20b5b4a120cd6380e30720ce8",
- "reference": "dd38c41facebdec20b5b4a120cd6380e30720ce8",
- "shasum": ""
- },
- "require": {
- "php": "^7.1",
- "psr/http-factory": "^1.0"
- },
- "conflict": {
- "nyholm/psr7": "<1.0"
- },
- "require-dev": {
- "http-interop/http-factory-tests": "^0.5.0",
- "overtrue/phplint": "^1.0",
- "phpunit/phpunit": "^6.5",
- "squizlabs/php_codesniffer": "^3.0"
- },
- "type": "library",
- "autoload": {
- "psr-4": {
- "Tuupola\\Http\\Factory\\": "src"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Mika Tuupola",
- "email": "tuupola@appelsiini.net",
- "homepage": "https://appelsiini.net/",
- "role": "Developer"
- }
- ],
- "description": "Lightweight autodiscovering PSR-17 HTTP factories",
- "homepage": "https://github.com/tuupola/http-factory",
- "keywords": [
- "http",
- "psr-17",
- "psr-7"
- ],
- "time": "2018-10-12T09:32:20+00:00"
- },
- {
- "name": "tuupola/slim-basic-auth",
- "version": "3.2.1",
- "source": {
- "type": "git",
- "url": "https://github.com/tuupola/slim-basic-auth.git",
- "reference": "40f5efe991ac4e2441ee05b830375c02432ff3f8"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/tuupola/slim-basic-auth/zipball/40f5efe991ac4e2441ee05b830375c02432ff3f8",
- "reference": "40f5efe991ac4e2441ee05b830375c02432ff3f8",
- "shasum": ""
- },
- "require": {
- "php": "^7.1",
- "psr/http-message": "^1.0.1",
- "psr/http-server-middleware": "^1.0",
- "tuupola/callable-handler": "^0.3.0|^0.4.0|^1.0",
- "tuupola/http-factory": "^0.4.0|^1.0"
- },
- "require-dev": {
- "codedungeon/phpunit-result-printer": "^0.19.14",
- "equip/dispatch": "^2.0",
- "overtrue/phplint": "^1.1",
- "phpstan/phpstan": "^0.9.2",
- "phpunit/phpunit": "^7.0",
- "squizlabs/php_codesniffer": "^3.2",
- "zendframework/zend-diactoros": "^1.3|^2.0"
- },
- "type": "library",
- "autoload": {
- "psr-4": {
- "Tuupola\\Middleware\\": "src"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Mika Tuupola",
- "email": "tuupola@appelsiini.net",
- "homepage": "https://appelsiini.net/"
- }
- ],
- "description": "PSR-7 and PSR-15 HTTP Basic Authentication Middleware",
- "homepage": "https://appelsiini.net/projects/slim-basic-auth",
- "keywords": [
- "auth",
- "middleware",
- "psr-15",
- "psr-7"
- ],
- "time": "2018-10-15T12:48:00+00:00"
- }
- ],
- "packages-dev": [
- {
- "name": "doctrine/instantiator",
- "version": "1.1.0",
- "source": {
- "type": "git",
- "url": "https://github.com/doctrine/instantiator.git",
- "reference": "185b8868aa9bf7159f5f953ed5afb2d7fcdc3bda"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/doctrine/instantiator/zipball/185b8868aa9bf7159f5f953ed5afb2d7fcdc3bda",
- "reference": "185b8868aa9bf7159f5f953ed5afb2d7fcdc3bda",
- "shasum": ""
- },
- "require": {
- "php": "^7.1"
- },
- "require-dev": {
- "athletic/athletic": "~0.1.8",
- "ext-pdo": "*",
- "ext-phar": "*",
- "phpunit/phpunit": "^6.2.3",
- "squizlabs/php_codesniffer": "^3.0.2"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.2.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Doctrine\\Instantiator\\": "src/Doctrine/Instantiator/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Marco Pivetta",
- "email": "ocramius@gmail.com",
- "homepage": "http://ocramius.github.com/"
- }
- ],
- "description": "A small, lightweight utility to instantiate objects in PHP without invoking their constructors",
- "homepage": "https://github.com/doctrine/instantiator",
- "keywords": [
- "constructor",
- "instantiate"
- ],
- "time": "2017-07-22T11:58:36+00:00"
- },
- {
- "name": "myclabs/deep-copy",
- "version": "1.8.1",
- "source": {
- "type": "git",
- "url": "https://github.com/myclabs/DeepCopy.git",
- "reference": "3e01bdad3e18354c3dce54466b7fbe33a9f9f7f8"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/3e01bdad3e18354c3dce54466b7fbe33a9f9f7f8",
- "reference": "3e01bdad3e18354c3dce54466b7fbe33a9f9f7f8",
- "shasum": ""
- },
- "require": {
- "php": "^7.1"
- },
- "replace": {
- "myclabs/deep-copy": "self.version"
- },
- "require-dev": {
- "doctrine/collections": "^1.0",
- "doctrine/common": "^2.6",
- "phpunit/phpunit": "^7.1"
- },
- "type": "library",
- "autoload": {
- "psr-4": {
- "DeepCopy\\": "src/DeepCopy/"
- },
- "files": [
- "src/DeepCopy/deep_copy.php"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "description": "Create deep copies (clones) of your objects",
- "keywords": [
- "clone",
- "copy",
- "duplicate",
- "object",
- "object graph"
- ],
- "time": "2018-06-11T23:09:50+00:00"
- },
- {
- "name": "overtrue/phplint",
- "version": "1.1.3",
- "source": {
- "type": "git",
- "url": "https://github.com/overtrue/phplint.git",
- "reference": "b8822e30b5bd1412471520901ba148c5417656c8"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/overtrue/phplint/zipball/b8822e30b5bd1412471520901ba148c5417656c8",
- "reference": "b8822e30b5bd1412471520901ba148c5417656c8",
- "shasum": ""
- },
- "require": {
- "ext-json": "*",
- "php": ">=5.5.9",
- "symfony/console": "^3.2|^4.0",
- "symfony/finder": "^3.0|^4.0",
- "symfony/process": "^3.0|^4.0",
- "symfony/yaml": "^3.0|^4.0"
- },
- "require-dev": {
- "jakub-onderka/php-console-highlighter": "^0.3.2"
- },
- "bin": [
- "bin/phplint"
- ],
- "type": "library",
- "autoload": {
- "psr-4": {
- "Overtrue\\PHPLint\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "overtrue",
- "email": "anzhengchao@gmail.com"
- }
- ],
- "description": "a php syntax check tool.",
- "keywords": [
- "check",
- "lint",
- "phplint",
- "syntax"
- ],
- "time": "2018-06-19T06:30:45+00:00"
- },
- {
- "name": "phar-io/manifest",
- "version": "1.0.3",
- "source": {
- "type": "git",
- "url": "https://github.com/phar-io/manifest.git",
- "reference": "7761fcacf03b4d4f16e7ccb606d4879ca431fcf4"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/phar-io/manifest/zipball/7761fcacf03b4d4f16e7ccb606d4879ca431fcf4",
- "reference": "7761fcacf03b4d4f16e7ccb606d4879ca431fcf4",
- "shasum": ""
- },
- "require": {
- "ext-dom": "*",
- "ext-phar": "*",
- "phar-io/version": "^2.0",
- "php": "^5.6 || ^7.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Arne Blankerts",
- "email": "arne@blankerts.de",
- "role": "Developer"
- },
- {
- "name": "Sebastian Heuer",
- "email": "sebastian@phpeople.de",
- "role": "Developer"
- },
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de",
- "role": "Developer"
- }
- ],
- "description": "Component for reading phar.io manifest information from a PHP Archive (PHAR)",
- "time": "2018-07-08T19:23:20+00:00"
- },
- {
- "name": "phar-io/version",
- "version": "2.0.1",
- "source": {
- "type": "git",
- "url": "https://github.com/phar-io/version.git",
- "reference": "45a2ec53a73c70ce41d55cedef9063630abaf1b6"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/phar-io/version/zipball/45a2ec53a73c70ce41d55cedef9063630abaf1b6",
- "reference": "45a2ec53a73c70ce41d55cedef9063630abaf1b6",
- "shasum": ""
- },
- "require": {
- "php": "^5.6 || ^7.0"
- },
- "type": "library",
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Arne Blankerts",
- "email": "arne@blankerts.de",
- "role": "Developer"
- },
- {
- "name": "Sebastian Heuer",
- "email": "sebastian@phpeople.de",
- "role": "Developer"
- },
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de",
- "role": "Developer"
- }
- ],
- "description": "Library for handling version information and constraints",
- "time": "2018-07-08T19:19:57+00:00"
- },
- {
- "name": "phpdocumentor/reflection-common",
- "version": "1.0.1",
- "source": {
- "type": "git",
- "url": "https://github.com/phpDocumentor/ReflectionCommon.git",
- "reference": "21bdeb5f65d7ebf9f43b1b25d404f87deab5bfb6"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/phpDocumentor/ReflectionCommon/zipball/21bdeb5f65d7ebf9f43b1b25d404f87deab5bfb6",
- "reference": "21bdeb5f65d7ebf9f43b1b25d404f87deab5bfb6",
- "shasum": ""
- },
- "require": {
- "php": ">=5.5"
- },
- "require-dev": {
- "phpunit/phpunit": "^4.6"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "phpDocumentor\\Reflection\\": [
- "src"
- ]
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Jaap van Otterdijk",
- "email": "opensource@ijaap.nl"
- }
- ],
- "description": "Common reflection classes used by phpdocumentor to reflect the code structure",
- "homepage": "http://www.phpdoc.org",
- "keywords": [
- "FQSEN",
- "phpDocumentor",
- "phpdoc",
- "reflection",
- "static analysis"
- ],
- "time": "2017-09-11T18:02:19+00:00"
- },
- {
- "name": "phpdocumentor/reflection-docblock",
- "version": "4.3.0",
- "source": {
- "type": "git",
- "url": "https://github.com/phpDocumentor/ReflectionDocBlock.git",
- "reference": "94fd0001232e47129dd3504189fa1c7225010d08"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/94fd0001232e47129dd3504189fa1c7225010d08",
- "reference": "94fd0001232e47129dd3504189fa1c7225010d08",
- "shasum": ""
- },
- "require": {
- "php": "^7.0",
- "phpdocumentor/reflection-common": "^1.0.0",
- "phpdocumentor/type-resolver": "^0.4.0",
- "webmozart/assert": "^1.0"
- },
- "require-dev": {
- "doctrine/instantiator": "~1.0.5",
- "mockery/mockery": "^1.0",
- "phpunit/phpunit": "^6.4"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "4.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "phpDocumentor\\Reflection\\": [
- "src/"
- ]
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Mike van Riel",
- "email": "me@mikevanriel.com"
- }
- ],
- "description": "With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a DocBlock.",
- "time": "2017-11-30T07:14:17+00:00"
- },
- {
- "name": "phpdocumentor/type-resolver",
- "version": "0.4.0",
- "source": {
- "type": "git",
- "url": "https://github.com/phpDocumentor/TypeResolver.git",
- "reference": "9c977708995954784726e25d0cd1dddf4e65b0f7"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/9c977708995954784726e25d0cd1dddf4e65b0f7",
- "reference": "9c977708995954784726e25d0cd1dddf4e65b0f7",
- "shasum": ""
- },
- "require": {
- "php": "^5.5 || ^7.0",
- "phpdocumentor/reflection-common": "^1.0"
- },
- "require-dev": {
- "mockery/mockery": "^0.9.4",
- "phpunit/phpunit": "^5.2||^4.8.24"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "phpDocumentor\\Reflection\\": [
- "src/"
- ]
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Mike van Riel",
- "email": "me@mikevanriel.com"
- }
- ],
- "time": "2017-07-14T14:27:02+00:00"
- },
- {
- "name": "phpspec/prophecy",
- "version": "1.8.0",
- "source": {
- "type": "git",
- "url": "https://github.com/phpspec/prophecy.git",
- "reference": "4ba436b55987b4bf311cb7c6ba82aa528aac0a06"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/phpspec/prophecy/zipball/4ba436b55987b4bf311cb7c6ba82aa528aac0a06",
- "reference": "4ba436b55987b4bf311cb7c6ba82aa528aac0a06",
- "shasum": ""
- },
- "require": {
- "doctrine/instantiator": "^1.0.2",
- "php": "^5.3|^7.0",
- "phpdocumentor/reflection-docblock": "^2.0|^3.0.2|^4.0",
- "sebastian/comparator": "^1.1|^2.0|^3.0",
- "sebastian/recursion-context": "^1.0|^2.0|^3.0"
- },
- "require-dev": {
- "phpspec/phpspec": "^2.5|^3.2",
- "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.5 || ^7.1"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.8.x-dev"
- }
- },
- "autoload": {
- "psr-0": {
- "Prophecy\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Konstantin Kudryashov",
- "email": "ever.zet@gmail.com",
- "homepage": "http://everzet.com"
- },
- {
- "name": "Marcello Duarte",
- "email": "marcello.duarte@gmail.com"
- }
- ],
- "description": "Highly opinionated mocking framework for PHP 5.3+",
- "homepage": "https://github.com/phpspec/prophecy",
- "keywords": [
- "Double",
- "Dummy",
- "fake",
- "mock",
- "spy",
- "stub"
- ],
- "time": "2018-08-05T17:53:17+00:00"
- },
- {
- "name": "phpunit/php-code-coverage",
- "version": "6.1.0",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/php-code-coverage.git",
- "reference": "0685fb6a43aed1b2e09804d1aaf17144c82861f8"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/0685fb6a43aed1b2e09804d1aaf17144c82861f8",
- "reference": "0685fb6a43aed1b2e09804d1aaf17144c82861f8",
- "shasum": ""
- },
- "require": {
- "ext-dom": "*",
- "ext-xmlwriter": "*",
- "php": "^7.1",
- "phpunit/php-file-iterator": "^2.0",
- "phpunit/php-text-template": "^1.2.1",
- "phpunit/php-token-stream": "^3.0",
- "sebastian/code-unit-reverse-lookup": "^1.0.1",
- "sebastian/environment": "^3.1",
- "sebastian/version": "^2.0.1",
- "theseer/tokenizer": "^1.1"
- },
- "require-dev": {
- "phpunit/phpunit": "^7.0"
- },
- "suggest": {
- "ext-xdebug": "^2.6.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "6.1-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de",
- "role": "lead"
- }
- ],
- "description": "Library that provides collection, processing, and rendering functionality for PHP code coverage information.",
- "homepage": "https://github.com/sebastianbergmann/php-code-coverage",
- "keywords": [
- "coverage",
- "testing",
- "xunit"
- ],
- "time": "2018-10-16T05:37:37+00:00"
- },
- {
- "name": "phpunit/php-file-iterator",
- "version": "2.0.2",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/php-file-iterator.git",
- "reference": "050bedf145a257b1ff02746c31894800e5122946"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/050bedf145a257b1ff02746c31894800e5122946",
- "reference": "050bedf145a257b1ff02746c31894800e5122946",
- "shasum": ""
- },
- "require": {
- "php": "^7.1"
- },
- "require-dev": {
- "phpunit/phpunit": "^7.1"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.0.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de",
- "role": "lead"
- }
- ],
- "description": "FilterIterator implementation that filters files based on a list of suffixes.",
- "homepage": "https://github.com/sebastianbergmann/php-file-iterator/",
- "keywords": [
- "filesystem",
- "iterator"
- ],
- "time": "2018-09-13T20:33:42+00:00"
- },
- {
- "name": "phpunit/php-text-template",
- "version": "1.2.1",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/php-text-template.git",
- "reference": "31f8b717e51d9a2afca6c9f046f5d69fc27c8686"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/31f8b717e51d9a2afca6c9f046f5d69fc27c8686",
- "reference": "31f8b717e51d9a2afca6c9f046f5d69fc27c8686",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "type": "library",
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de",
- "role": "lead"
- }
- ],
- "description": "Simple template engine.",
- "homepage": "https://github.com/sebastianbergmann/php-text-template/",
- "keywords": [
- "template"
- ],
- "time": "2015-06-21T13:50:34+00:00"
- },
- {
- "name": "phpunit/php-timer",
- "version": "2.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/php-timer.git",
- "reference": "8b8454ea6958c3dee38453d3bd571e023108c91f"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/8b8454ea6958c3dee38453d3bd571e023108c91f",
- "reference": "8b8454ea6958c3dee38453d3bd571e023108c91f",
- "shasum": ""
- },
- "require": {
- "php": "^7.1"
- },
- "require-dev": {
- "phpunit/phpunit": "^7.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.0-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de",
- "role": "lead"
- }
- ],
- "description": "Utility class for timing",
- "homepage": "https://github.com/sebastianbergmann/php-timer/",
- "keywords": [
- "timer"
- ],
- "time": "2018-02-01T13:07:23+00:00"
- },
- {
- "name": "phpunit/php-token-stream",
- "version": "3.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/php-token-stream.git",
- "reference": "21ad88bbba7c3d93530d93994e0a33cd45f02ace"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-token-stream/zipball/21ad88bbba7c3d93530d93994e0a33cd45f02ace",
- "reference": "21ad88bbba7c3d93530d93994e0a33cd45f02ace",
- "shasum": ""
- },
- "require": {
- "ext-tokenizer": "*",
- "php": "^7.1"
- },
- "require-dev": {
- "phpunit/phpunit": "^7.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.0-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Wrapper around PHP's tokenizer extension.",
- "homepage": "https://github.com/sebastianbergmann/php-token-stream/",
- "keywords": [
- "tokenizer"
- ],
- "time": "2018-02-01T13:16:43+00:00"
- },
- {
- "name": "phpunit/phpunit",
- "version": "7.4.0",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/phpunit.git",
- "reference": "f3837fa1e07758057ae06e8ddec6d06ba183f126"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/f3837fa1e07758057ae06e8ddec6d06ba183f126",
- "reference": "f3837fa1e07758057ae06e8ddec6d06ba183f126",
- "shasum": ""
- },
- "require": {
- "doctrine/instantiator": "^1.1",
- "ext-dom": "*",
- "ext-json": "*",
- "ext-libxml": "*",
- "ext-mbstring": "*",
- "ext-xml": "*",
- "myclabs/deep-copy": "^1.7",
- "phar-io/manifest": "^1.0.2",
- "phar-io/version": "^2.0",
- "php": "^7.1",
- "phpspec/prophecy": "^1.7",
- "phpunit/php-code-coverage": "^6.0.7",
- "phpunit/php-file-iterator": "^2.0.1",
- "phpunit/php-text-template": "^1.2.1",
- "phpunit/php-timer": "^2.0",
- "sebastian/comparator": "^3.0",
- "sebastian/diff": "^3.0",
- "sebastian/environment": "^3.1",
- "sebastian/exporter": "^3.1",
- "sebastian/global-state": "^2.0",
- "sebastian/object-enumerator": "^3.0.3",
- "sebastian/resource-operations": "^2.0",
- "sebastian/version": "^2.0.1"
- },
- "conflict": {
- "phpunit/phpunit-mock-objects": "*"
- },
- "require-dev": {
- "ext-pdo": "*"
- },
- "suggest": {
- "ext-soap": "*",
- "ext-xdebug": "*",
- "phpunit/php-invoker": "^2.0"
- },
- "bin": [
- "phpunit"
- ],
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "7.4-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de",
- "role": "lead"
- }
- ],
- "description": "The PHP Unit Testing framework.",
- "homepage": "https://phpunit.de/",
- "keywords": [
- "phpunit",
- "testing",
- "xunit"
- ],
- "time": "2018-10-05T04:05:24+00:00"
- },
- {
- "name": "sebastian/code-unit-reverse-lookup",
- "version": "1.0.1",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/code-unit-reverse-lookup.git",
- "reference": "4419fcdb5eabb9caa61a27c7a1db532a6b55dd18"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/code-unit-reverse-lookup/zipball/4419fcdb5eabb9caa61a27c7a1db532a6b55dd18",
- "reference": "4419fcdb5eabb9caa61a27c7a1db532a6b55dd18",
- "shasum": ""
- },
- "require": {
- "php": "^5.6 || ^7.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^5.7 || ^6.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Looks up which function or method a line of code belongs to",
- "homepage": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/",
- "time": "2017-03-04T06:30:41+00:00"
- },
- {
- "name": "sebastian/comparator",
- "version": "3.0.2",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/comparator.git",
- "reference": "5de4fc177adf9bce8df98d8d141a7559d7ccf6da"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/5de4fc177adf9bce8df98d8d141a7559d7ccf6da",
- "reference": "5de4fc177adf9bce8df98d8d141a7559d7ccf6da",
- "shasum": ""
- },
- "require": {
- "php": "^7.1",
- "sebastian/diff": "^3.0",
- "sebastian/exporter": "^3.1"
- },
- "require-dev": {
- "phpunit/phpunit": "^7.1"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.0-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Jeff Welch",
- "email": "whatthejeff@gmail.com"
- },
- {
- "name": "Volker Dusch",
- "email": "github@wallbash.com"
- },
- {
- "name": "Bernhard Schussek",
- "email": "bschussek@2bepublished.at"
- },
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Provides the functionality to compare PHP values for equality",
- "homepage": "https://github.com/sebastianbergmann/comparator",
- "keywords": [
- "comparator",
- "compare",
- "equality"
- ],
- "time": "2018-07-12T15:12:46+00:00"
- },
- {
- "name": "sebastian/diff",
- "version": "3.0.1",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/diff.git",
- "reference": "366541b989927187c4ca70490a35615d3fef2dce"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/366541b989927187c4ca70490a35615d3fef2dce",
- "reference": "366541b989927187c4ca70490a35615d3fef2dce",
- "shasum": ""
- },
- "require": {
- "php": "^7.1"
- },
- "require-dev": {
- "phpunit/phpunit": "^7.0",
- "symfony/process": "^2 || ^3.3 || ^4"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.0-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Kore Nordmann",
- "email": "mail@kore-nordmann.de"
- },
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Diff implementation",
- "homepage": "https://github.com/sebastianbergmann/diff",
- "keywords": [
- "diff",
- "udiff",
- "unidiff",
- "unified diff"
- ],
- "time": "2018-06-10T07:54:39+00:00"
- },
- {
- "name": "sebastian/environment",
- "version": "3.1.0",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/environment.git",
- "reference": "cd0871b3975fb7fc44d11314fd1ee20925fce4f5"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/cd0871b3975fb7fc44d11314fd1ee20925fce4f5",
- "reference": "cd0871b3975fb7fc44d11314fd1ee20925fce4f5",
- "shasum": ""
- },
- "require": {
- "php": "^7.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^6.1"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.1.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Provides functionality to handle HHVM/PHP environments",
- "homepage": "http://www.github.com/sebastianbergmann/environment",
- "keywords": [
- "Xdebug",
- "environment",
- "hhvm"
- ],
- "time": "2017-07-01T08:51:00+00:00"
- },
- {
- "name": "sebastian/exporter",
- "version": "3.1.0",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/exporter.git",
- "reference": "234199f4528de6d12aaa58b612e98f7d36adb937"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/234199f4528de6d12aaa58b612e98f7d36adb937",
- "reference": "234199f4528de6d12aaa58b612e98f7d36adb937",
- "shasum": ""
- },
- "require": {
- "php": "^7.0",
- "sebastian/recursion-context": "^3.0"
- },
- "require-dev": {
- "ext-mbstring": "*",
- "phpunit/phpunit": "^6.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.1.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Jeff Welch",
- "email": "whatthejeff@gmail.com"
- },
- {
- "name": "Volker Dusch",
- "email": "github@wallbash.com"
- },
- {
- "name": "Bernhard Schussek",
- "email": "bschussek@2bepublished.at"
- },
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- },
- {
- "name": "Adam Harvey",
- "email": "aharvey@php.net"
- }
- ],
- "description": "Provides the functionality to export PHP variables for visualization",
- "homepage": "http://www.github.com/sebastianbergmann/exporter",
- "keywords": [
- "export",
- "exporter"
- ],
- "time": "2017-04-03T13:19:02+00:00"
- },
- {
- "name": "sebastian/global-state",
- "version": "2.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/global-state.git",
- "reference": "e8ba02eed7bbbb9e59e43dedd3dddeff4a56b0c4"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/e8ba02eed7bbbb9e59e43dedd3dddeff4a56b0c4",
- "reference": "e8ba02eed7bbbb9e59e43dedd3dddeff4a56b0c4",
- "shasum": ""
- },
- "require": {
- "php": "^7.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^6.0"
- },
- "suggest": {
- "ext-uopz": "*"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.0-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Snapshotting of global state",
- "homepage": "http://www.github.com/sebastianbergmann/global-state",
- "keywords": [
- "global state"
- ],
- "time": "2017-04-27T15:39:26+00:00"
- },
- {
- "name": "sebastian/object-enumerator",
- "version": "3.0.3",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/object-enumerator.git",
- "reference": "7cfd9e65d11ffb5af41198476395774d4c8a84c5"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/object-enumerator/zipball/7cfd9e65d11ffb5af41198476395774d4c8a84c5",
- "reference": "7cfd9e65d11ffb5af41198476395774d4c8a84c5",
- "shasum": ""
- },
- "require": {
- "php": "^7.0",
- "sebastian/object-reflector": "^1.1.1",
- "sebastian/recursion-context": "^3.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^6.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.0.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Traverses array structures and object graphs to enumerate all referenced objects",
- "homepage": "https://github.com/sebastianbergmann/object-enumerator/",
- "time": "2017-08-03T12:35:26+00:00"
- },
- {
- "name": "sebastian/object-reflector",
- "version": "1.1.1",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/object-reflector.git",
- "reference": "773f97c67f28de00d397be301821b06708fca0be"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/object-reflector/zipball/773f97c67f28de00d397be301821b06708fca0be",
- "reference": "773f97c67f28de00d397be301821b06708fca0be",
- "shasum": ""
- },
- "require": {
- "php": "^7.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^6.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.1-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Allows reflection of object attributes, including inherited and non-public ones",
- "homepage": "https://github.com/sebastianbergmann/object-reflector/",
- "time": "2017-03-29T09:07:27+00:00"
- },
- {
- "name": "sebastian/recursion-context",
- "version": "3.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/recursion-context.git",
- "reference": "5b0cd723502bac3b006cbf3dbf7a1e3fcefe4fa8"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/5b0cd723502bac3b006cbf3dbf7a1e3fcefe4fa8",
- "reference": "5b0cd723502bac3b006cbf3dbf7a1e3fcefe4fa8",
- "shasum": ""
- },
- "require": {
- "php": "^7.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^6.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.0.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Jeff Welch",
- "email": "whatthejeff@gmail.com"
- },
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- },
- {
- "name": "Adam Harvey",
- "email": "aharvey@php.net"
- }
- ],
- "description": "Provides functionality to recursively process PHP variables",
- "homepage": "http://www.github.com/sebastianbergmann/recursion-context",
- "time": "2017-03-03T06:23:57+00:00"
- },
- {
- "name": "sebastian/resource-operations",
- "version": "2.0.1",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/resource-operations.git",
- "reference": "4d7a795d35b889bf80a0cc04e08d77cedfa917a9"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/resource-operations/zipball/4d7a795d35b889bf80a0cc04e08d77cedfa917a9",
- "reference": "4d7a795d35b889bf80a0cc04e08d77cedfa917a9",
- "shasum": ""
- },
- "require": {
- "php": "^7.1"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.0-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Provides a list of PHP built-in functions that operate on resources",
- "homepage": "https://www.github.com/sebastianbergmann/resource-operations",
- "time": "2018-10-04T04:07:39+00:00"
- },
- {
- "name": "sebastian/version",
- "version": "2.0.1",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/version.git",
- "reference": "99732be0ddb3361e16ad77b68ba41efc8e979019"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/99732be0ddb3361e16ad77b68ba41efc8e979019",
- "reference": "99732be0ddb3361e16ad77b68ba41efc8e979019",
- "shasum": ""
- },
- "require": {
- "php": ">=5.6"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.0.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de",
- "role": "lead"
- }
- ],
- "description": "Library that helps with managing the version number of Git-hosted PHP projects",
- "homepage": "https://github.com/sebastianbergmann/version",
- "time": "2016-10-03T07:35:21+00:00"
- },
- {
- "name": "squizlabs/php_codesniffer",
- "version": "3.3.2",
- "source": {
- "type": "git",
- "url": "https://github.com/squizlabs/PHP_CodeSniffer.git",
- "reference": "6ad28354c04b364c3c71a34e4a18b629cc3b231e"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/6ad28354c04b364c3c71a34e4a18b629cc3b231e",
- "reference": "6ad28354c04b364c3c71a34e4a18b629cc3b231e",
- "shasum": ""
- },
- "require": {
- "ext-simplexml": "*",
- "ext-tokenizer": "*",
- "ext-xmlwriter": "*",
- "php": ">=5.4.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^4.0 || ^5.0 || ^6.0 || ^7.0"
- },
- "bin": [
- "bin/phpcs",
- "bin/phpcbf"
- ],
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.x-dev"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Greg Sherwood",
- "role": "lead"
- }
- ],
- "description": "PHP_CodeSniffer tokenizes PHP, JavaScript and CSS files and detects violations of a defined set of coding standards.",
- "homepage": "http://www.squizlabs.com/php-codesniffer",
- "keywords": [
- "phpcs",
- "standards"
- ],
- "time": "2018-09-23T23:08:17+00:00"
- },
- {
- "name": "symfony/console",
- "version": "v4.1.6",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/console.git",
- "reference": "dc7122fe5f6113cfaba3b3de575d31112c9aa60b"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/console/zipball/dc7122fe5f6113cfaba3b3de575d31112c9aa60b",
- "reference": "dc7122fe5f6113cfaba3b3de575d31112c9aa60b",
- "shasum": ""
- },
- "require": {
- "php": "^7.1.3",
- "symfony/polyfill-mbstring": "~1.0"
- },
- "conflict": {
- "symfony/dependency-injection": "<3.4",
- "symfony/process": "<3.3"
- },
- "require-dev": {
- "psr/log": "~1.0",
- "symfony/config": "~3.4|~4.0",
- "symfony/dependency-injection": "~3.4|~4.0",
- "symfony/event-dispatcher": "~3.4|~4.0",
- "symfony/lock": "~3.4|~4.0",
- "symfony/process": "~3.4|~4.0"
- },
- "suggest": {
- "psr/log-implementation": "For using the console logger",
- "symfony/event-dispatcher": "",
- "symfony/lock": "",
- "symfony/process": ""
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "4.1-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\Console\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony Console Component",
- "homepage": "https://symfony.com",
- "time": "2018-10-03T08:15:46+00:00"
- },
- {
- "name": "symfony/finder",
- "version": "v4.1.6",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/finder.git",
- "reference": "1f17195b44543017a9c9b2d437c670627e96ad06"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/finder/zipball/1f17195b44543017a9c9b2d437c670627e96ad06",
- "reference": "1f17195b44543017a9c9b2d437c670627e96ad06",
- "shasum": ""
- },
- "require": {
- "php": "^7.1.3"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "4.1-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\Finder\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony Finder Component",
- "homepage": "https://symfony.com",
- "time": "2018-10-03T08:47:56+00:00"
- },
- {
- "name": "symfony/polyfill-ctype",
- "version": "v1.9.0",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/polyfill-ctype.git",
- "reference": "e3d826245268269cd66f8326bd8bc066687b4a19"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/e3d826245268269cd66f8326bd8bc066687b4a19",
- "reference": "e3d826245268269cd66f8326bd8bc066687b4a19",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "suggest": {
- "ext-ctype": "For best performance"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.9-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Polyfill\\Ctype\\": ""
- },
- "files": [
- "bootstrap.php"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- },
- {
- "name": "Gert de Pagter",
- "email": "BackEndTea@gmail.com"
- }
- ],
- "description": "Symfony polyfill for ctype functions",
- "homepage": "https://symfony.com",
- "keywords": [
- "compatibility",
- "ctype",
- "polyfill",
- "portable"
- ],
- "time": "2018-08-06T14:22:27+00:00"
- },
- {
- "name": "symfony/polyfill-mbstring",
- "version": "v1.9.0",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/polyfill-mbstring.git",
- "reference": "d0cd638f4634c16d8df4508e847f14e9e43168b8"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/d0cd638f4634c16d8df4508e847f14e9e43168b8",
- "reference": "d0cd638f4634c16d8df4508e847f14e9e43168b8",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "suggest": {
- "ext-mbstring": "For best performance"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.9-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Polyfill\\Mbstring\\": ""
- },
- "files": [
- "bootstrap.php"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Nicolas Grekas",
- "email": "p@tchwork.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony polyfill for the Mbstring extension",
- "homepage": "https://symfony.com",
- "keywords": [
- "compatibility",
- "mbstring",
- "polyfill",
- "portable",
- "shim"
- ],
- "time": "2018-08-06T14:22:27+00:00"
- },
- {
- "name": "symfony/process",
- "version": "v4.1.6",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/process.git",
- "reference": "ee33c0322a8fee0855afcc11fff81e6b1011b529"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/process/zipball/ee33c0322a8fee0855afcc11fff81e6b1011b529",
- "reference": "ee33c0322a8fee0855afcc11fff81e6b1011b529",
- "shasum": ""
- },
- "require": {
- "php": "^7.1.3"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "4.1-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\Process\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony Process Component",
- "homepage": "https://symfony.com",
- "time": "2018-10-02T12:40:59+00:00"
- },
- {
- "name": "symfony/yaml",
- "version": "v4.1.6",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/yaml.git",
- "reference": "367e689b2fdc19965be435337b50bc8adf2746c9"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/yaml/zipball/367e689b2fdc19965be435337b50bc8adf2746c9",
- "reference": "367e689b2fdc19965be435337b50bc8adf2746c9",
- "shasum": ""
- },
- "require": {
- "php": "^7.1.3",
- "symfony/polyfill-ctype": "~1.8"
- },
- "conflict": {
- "symfony/console": "<3.4"
- },
- "require-dev": {
- "symfony/console": "~3.4|~4.0"
- },
- "suggest": {
- "symfony/console": "For validating YAML files using the lint command"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "4.1-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\Yaml\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony Yaml Component",
- "homepage": "https://symfony.com",
- "time": "2018-10-02T16:36:10+00:00"
- },
- {
- "name": "theseer/tokenizer",
- "version": "1.1.0",
- "source": {
- "type": "git",
- "url": "https://github.com/theseer/tokenizer.git",
- "reference": "cb2f008f3f05af2893a87208fe6a6c4985483f8b"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/theseer/tokenizer/zipball/cb2f008f3f05af2893a87208fe6a6c4985483f8b",
- "reference": "cb2f008f3f05af2893a87208fe6a6c4985483f8b",
- "shasum": ""
- },
- "require": {
- "ext-dom": "*",
- "ext-tokenizer": "*",
- "ext-xmlwriter": "*",
- "php": "^7.0"
- },
- "type": "library",
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Arne Blankerts",
- "email": "arne@blankerts.de",
- "role": "Developer"
- }
- ],
- "description": "A small library for converting tokenized PHP source code into XML and potentially other formats",
- "time": "2017-04-07T12:08:54+00:00"
- },
- {
- "name": "webmozart/assert",
- "version": "1.3.0",
- "source": {
- "type": "git",
- "url": "https://github.com/webmozart/assert.git",
- "reference": "0df1908962e7a3071564e857d86874dad1ef204a"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/webmozart/assert/zipball/0df1908962e7a3071564e857d86874dad1ef204a",
- "reference": "0df1908962e7a3071564e857d86874dad1ef204a",
- "shasum": ""
- },
- "require": {
- "php": "^5.3.3 || ^7.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^4.6",
- "sebastian/version": "^1.0.1"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.3-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Webmozart\\Assert\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Bernhard Schussek",
- "email": "bschussek@gmail.com"
- }
- ],
- "description": "Assertions to validate method input/output with nice error messages.",
- "keywords": [
- "assert",
- "check",
- "validate"
- ],
- "time": "2018-01-29T19:49:41+00:00"
- }
- ],
- "aliases": [],
- "minimum-stability": "RC",
- "stability-flags": [],
- "prefer-stable": false,
- "prefer-lowest": false,
- "platform": {
- "php": "^7.0"
- },
- "platform-dev": []
-}
diff --git a/samples/server/petstore/php-slim/index.php b/samples/server/petstore/php-slim/index.php
deleted file mode 100644
index 35e9a27a6131..000000000000
--- a/samples/server/petstore/php-slim/index.php
+++ /dev/null
@@ -1,110 +0,0 @@
- '1.1',
-
- /**
- * Size of each chunk read from the Response body when sending to the browser.
- * Default: 4096
- */
- // 'responseChunkSize' => 4096,
-
- /**
- * If false, then no output buffering is enabled. If 'append' or 'prepend', then
- * any echo or print statements are captured and are either appended or prepended
- * to the Response returned from the route callable.
- * Default: 'append'
- */
- // 'outputBuffering' => 'append',
-
- /**
- * When true, the route is calculated before any middleware is executed. This
- * means that you can inspect route parameters in middleware if you need to.
- * Default: false
- */
- // 'determineRouteBeforeAppMiddleware' => false,
-
- /**
- * When true, additional information about exceptions are displayed by the default
- * error handler.
- * Default: false
- */
- // 'displayErrorDetails' => false,
-
- /**
- * When true, Slim will add a Content-Length header to the response. If you are using
- * a runtime analytics tool, such as New Relic, then this should be disabled.
- * Default: true
- */
- // 'addContentLengthHeader' => true,
-
- /**
- * Filename for caching the FastRoute routes. Must be set to to a valid filename within
- * a writeable directory. If the file does not exist, then it is created with the correct
- * cache information on first run.
- * Set to false to disable the FastRoute cache system.
- * Default: false
- */
- // 'routerCacheFile' => false,
-];
-
-/**
- * Token Middleware 1.x Options
- * Options `header`, `regex`, `parameter`, `cookie`, `attribute`, `path`, `except`, `authenticator`
- * are handled by SlimRouter class. These options are ignored by app and they omitted from current
- * example.
- * Ref: https://github.com/dyorg/slim-token-authentication/tree/1.x
- */
-$config['tokenAuthenticationOptions'] = [
- /**
- * Tokens are essentially passwords. You should treat them as such and you should always
- * use HTTPS. If the middleware detects insecure usage over HTTP it will return unathorized
- * with a message Required HTTPS for token authentication. This rule is relaxed for requests
- * on localhost. To allow insecure usage you must enable it manually by setting secure to
- * false.
- * Default: true
- */
- // 'secure' => true,
-
- /**
- * Alternatively you can list your development host to have relaxed security.
- * Default: ['localhost', '127.0.0.1']
- */
- // 'relaxed' => ['localhost', '127.0.0.1'],
-
- /**
- * By default on ocurred a fail on authentication, is sent a response on json format with a
- * message (`Invalid Token` or `Not found Token`) and with the token (if found), with status
- * `401 Unauthorized`. You can customize it by setting a callable function on error option.
- * Default: null
- */
- // 'error' => null,
-];
-
-$router = new SlimRouter($config);
-$app = $router->getSlimApp();
-$app->run();
diff --git a/samples/server/petstore/php-slim/lib/Api/AbstractAnotherFakeApi.php b/samples/server/petstore/php-slim/lib/Api/AbstractAnotherFakeApi.php
deleted file mode 100644
index 4768f219eba4..000000000000
--- a/samples/server/petstore/php-slim/lib/Api/AbstractAnotherFakeApi.php
+++ /dev/null
@@ -1,79 +0,0 @@
-container = $container;
- }
-
-
- /**
- * PATCH call123TestSpecialTags
- * Summary: To test special tags
- * Notes: To test special tags and operation ID starting with number
- * Output-Formats: [application/json]
- *
- * @param ServerRequestInterface $request Request
- * @param ResponseInterface $response Response
- * @param array|null $args Path arguments
- *
- * @return ResponseInterface
- * @throws Exception to force implementation class to override this method
- */
- public function call123TestSpecialTags(ServerRequestInterface $request, ResponseInterface $response, array $args)
- {
- $body = $request->getParsedBody();
- $message = "How about implementing call123TestSpecialTags as a PATCH method in OpenAPIServer\Api\AnotherFakeApi class?";
- throw new Exception($message);
-
- return $response->write($message)->withStatus(501);
- }
-}
diff --git a/samples/server/petstore/php-slim/lib/Api/AbstractFakeApi.php b/samples/server/petstore/php-slim/lib/Api/AbstractFakeApi.php
deleted file mode 100644
index f6d0e91ec32d..000000000000
--- a/samples/server/petstore/php-slim/lib/Api/AbstractFakeApi.php
+++ /dev/null
@@ -1,383 +0,0 @@
-container = $container;
- }
-
-
- /**
- * POST createXmlItem
- * Summary: creates an XmlItem
- * Notes: this route creates an XmlItem
- *
- * @param ServerRequestInterface $request Request
- * @param ResponseInterface $response Response
- * @param array|null $args Path arguments
- *
- * @return ResponseInterface
- * @throws Exception to force implementation class to override this method
- */
- public function createXmlItem(ServerRequestInterface $request, ResponseInterface $response, array $args)
- {
- $body = $request->getParsedBody();
- $message = "How about implementing createXmlItem as a POST method in OpenAPIServer\Api\FakeApi class?";
- throw new Exception($message);
-
- return $response->write($message)->withStatus(501);
- }
-
- /**
- * POST fakeOuterBooleanSerialize
- * Notes: Test serialization of outer boolean types
- * Output-Formats: [*_/_*]
- *
- * @param ServerRequestInterface $request Request
- * @param ResponseInterface $response Response
- * @param array|null $args Path arguments
- *
- * @return ResponseInterface
- * @throws Exception to force implementation class to override this method
- */
- public function fakeOuterBooleanSerialize(ServerRequestInterface $request, ResponseInterface $response, array $args)
- {
- $body = $request->getParsedBody();
- $message = "How about implementing fakeOuterBooleanSerialize as a POST method in OpenAPIServer\Api\FakeApi class?";
- throw new Exception($message);
-
- return $response->write($message)->withStatus(501);
- }
-
- /**
- * POST fakeOuterCompositeSerialize
- * Notes: Test serialization of object with outer number type
- * Output-Formats: [*_/_*]
- *
- * @param ServerRequestInterface $request Request
- * @param ResponseInterface $response Response
- * @param array|null $args Path arguments
- *
- * @return ResponseInterface
- * @throws Exception to force implementation class to override this method
- */
- public function fakeOuterCompositeSerialize(ServerRequestInterface $request, ResponseInterface $response, array $args)
- {
- $body = $request->getParsedBody();
- $message = "How about implementing fakeOuterCompositeSerialize as a POST method in OpenAPIServer\Api\FakeApi class?";
- throw new Exception($message);
-
- return $response->write($message)->withStatus(501);
- }
-
- /**
- * POST fakeOuterNumberSerialize
- * Notes: Test serialization of outer number types
- * Output-Formats: [*_/_*]
- *
- * @param ServerRequestInterface $request Request
- * @param ResponseInterface $response Response
- * @param array|null $args Path arguments
- *
- * @return ResponseInterface
- * @throws Exception to force implementation class to override this method
- */
- public function fakeOuterNumberSerialize(ServerRequestInterface $request, ResponseInterface $response, array $args)
- {
- $body = $request->getParsedBody();
- $message = "How about implementing fakeOuterNumberSerialize as a POST method in OpenAPIServer\Api\FakeApi class?";
- throw new Exception($message);
-
- return $response->write($message)->withStatus(501);
- }
-
- /**
- * POST fakeOuterStringSerialize
- * Notes: Test serialization of outer string types
- * Output-Formats: [*_/_*]
- *
- * @param ServerRequestInterface $request Request
- * @param ResponseInterface $response Response
- * @param array|null $args Path arguments
- *
- * @return ResponseInterface
- * @throws Exception to force implementation class to override this method
- */
- public function fakeOuterStringSerialize(ServerRequestInterface $request, ResponseInterface $response, array $args)
- {
- $body = $request->getParsedBody();
- $message = "How about implementing fakeOuterStringSerialize as a POST method in OpenAPIServer\Api\FakeApi class?";
- throw new Exception($message);
-
- return $response->write($message)->withStatus(501);
- }
-
- /**
- * PUT testBodyWithFileSchema
- * Notes: For this test, the body for this request much reference a schema named `File`.
- *
- * @param ServerRequestInterface $request Request
- * @param ResponseInterface $response Response
- * @param array|null $args Path arguments
- *
- * @return ResponseInterface
- * @throws Exception to force implementation class to override this method
- */
- public function testBodyWithFileSchema(ServerRequestInterface $request, ResponseInterface $response, array $args)
- {
- $body = $request->getParsedBody();
- $message = "How about implementing testBodyWithFileSchema as a PUT method in OpenAPIServer\Api\FakeApi class?";
- throw new Exception($message);
-
- return $response->write($message)->withStatus(501);
- }
-
- /**
- * PUT testBodyWithQueryParams
- *
- * @param ServerRequestInterface $request Request
- * @param ResponseInterface $response Response
- * @param array|null $args Path arguments
- *
- * @return ResponseInterface
- * @throws Exception to force implementation class to override this method
- */
- public function testBodyWithQueryParams(ServerRequestInterface $request, ResponseInterface $response, array $args)
- {
- $queryParams = $request->getQueryParams();
- $query = $request->getQueryParam('query');
- $body = $request->getParsedBody();
- $message = "How about implementing testBodyWithQueryParams as a PUT method in OpenAPIServer\Api\FakeApi class?";
- throw new Exception($message);
-
- return $response->write($message)->withStatus(501);
- }
-
- /**
- * PATCH testClientModel
- * Summary: To test \"client\" model
- * Notes: To test \"client\" model
- * Output-Formats: [application/json]
- *
- * @param ServerRequestInterface $request Request
- * @param ResponseInterface $response Response
- * @param array|null $args Path arguments
- *
- * @return ResponseInterface
- * @throws Exception to force implementation class to override this method
- */
- public function testClientModel(ServerRequestInterface $request, ResponseInterface $response, array $args)
- {
- $body = $request->getParsedBody();
- $message = "How about implementing testClientModel as a PATCH method in OpenAPIServer\Api\FakeApi class?";
- throw new Exception($message);
-
- return $response->write($message)->withStatus(501);
- }
-
- /**
- * POST testEndpointParameters
- * Summary: Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
- * Notes: Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
- *
- * @param ServerRequestInterface $request Request
- * @param ResponseInterface $response Response
- * @param array|null $args Path arguments
- *
- * @return ResponseInterface
- * @throws Exception to force implementation class to override this method
- */
- public function testEndpointParameters(ServerRequestInterface $request, ResponseInterface $response, array $args)
- {
- $integer = $request->getParsedBodyParam('integer');
- $int32 = $request->getParsedBodyParam('int32');
- $int64 = $request->getParsedBodyParam('int64');
- $number = $request->getParsedBodyParam('number');
- $float = $request->getParsedBodyParam('float');
- $double = $request->getParsedBodyParam('double');
- $string = $request->getParsedBodyParam('string');
- $patternWithoutDelimiter = $request->getParsedBodyParam('pattern_without_delimiter');
- $byte = $request->getParsedBodyParam('byte');
- $binary = (key_exists('binary', $request->getUploadedFiles())) ? $request->getUploadedFiles()['binary'] : null;
- $date = $request->getParsedBodyParam('date');
- $dateTime = $request->getParsedBodyParam('dateTime');
- $password = $request->getParsedBodyParam('password');
- $callback = $request->getParsedBodyParam('callback');
- $message = "How about implementing testEndpointParameters as a POST method in OpenAPIServer\Api\FakeApi class?";
- throw new Exception($message);
-
- return $response->write($message)->withStatus(501);
- }
-
- /**
- * GET testEnumParameters
- * Summary: To test enum parameters
- * Notes: To test enum parameters
- *
- * @param ServerRequestInterface $request Request
- * @param ResponseInterface $response Response
- * @param array|null $args Path arguments
- *
- * @return ResponseInterface
- * @throws Exception to force implementation class to override this method
- */
- public function testEnumParameters(ServerRequestInterface $request, ResponseInterface $response, array $args)
- {
- $headers = $request->getHeaders();
- $enumHeaderStringArray = $request->hasHeader('enum_header_string_array') ? $headers['enum_header_string_array'] : null;
- $enumHeaderString = $request->hasHeader('enum_header_string') ? $headers['enum_header_string'] : null;
- $queryParams = $request->getQueryParams();
- $enumQueryStringArray = $request->getQueryParam('enum_query_string_array');
- $enumQueryString = $request->getQueryParam('enum_query_string');
- $enumQueryInteger = $request->getQueryParam('enum_query_integer');
- $enumQueryDouble = $request->getQueryParam('enum_query_double');
- $enumFormStringArray = $request->getParsedBodyParam('enum_form_string_array');
- $enumFormString = $request->getParsedBodyParam('enum_form_string');
- $message = "How about implementing testEnumParameters as a GET method in OpenAPIServer\Api\FakeApi class?";
- throw new Exception($message);
-
- return $response->write($message)->withStatus(501);
- }
-
- /**
- * DELETE testGroupParameters
- * Summary: Fake endpoint to test group parameters (optional)
- * Notes: Fake endpoint to test group parameters (optional)
- *
- * @param ServerRequestInterface $request Request
- * @param ResponseInterface $response Response
- * @param array|null $args Path arguments
- *
- * @return ResponseInterface
- * @throws Exception to force implementation class to override this method
- */
- public function testGroupParameters(ServerRequestInterface $request, ResponseInterface $response, array $args)
- {
- $headers = $request->getHeaders();
- $requiredBooleanGroup = $request->hasHeader('required_boolean_group') ? $headers['required_boolean_group'] : null;
- $booleanGroup = $request->hasHeader('boolean_group') ? $headers['boolean_group'] : null;
- $queryParams = $request->getQueryParams();
- $requiredStringGroup = $request->getQueryParam('required_string_group');
- $requiredInt64Group = $request->getQueryParam('required_int64_group');
- $stringGroup = $request->getQueryParam('string_group');
- $int64Group = $request->getQueryParam('int64_group');
- $message = "How about implementing testGroupParameters as a DELETE method in OpenAPIServer\Api\FakeApi class?";
- throw new Exception($message);
-
- return $response->write($message)->withStatus(501);
- }
-
- /**
- * POST testInlineAdditionalProperties
- * Summary: test inline additionalProperties
- *
- * @param ServerRequestInterface $request Request
- * @param ResponseInterface $response Response
- * @param array|null $args Path arguments
- *
- * @return ResponseInterface
- * @throws Exception to force implementation class to override this method
- */
- public function testInlineAdditionalProperties(ServerRequestInterface $request, ResponseInterface $response, array $args)
- {
- $body = $request->getParsedBody();
- $message = "How about implementing testInlineAdditionalProperties as a POST method in OpenAPIServer\Api\FakeApi class?";
- throw new Exception($message);
-
- return $response->write($message)->withStatus(501);
- }
-
- /**
- * GET testJsonFormData
- * Summary: test json serialization of form data
- *
- * @param ServerRequestInterface $request Request
- * @param ResponseInterface $response Response
- * @param array|null $args Path arguments
- *
- * @return ResponseInterface
- * @throws Exception to force implementation class to override this method
- */
- public function testJsonFormData(ServerRequestInterface $request, ResponseInterface $response, array $args)
- {
- $param = $request->getParsedBodyParam('param');
- $param2 = $request->getParsedBodyParam('param2');
- $message = "How about implementing testJsonFormData as a GET method in OpenAPIServer\Api\FakeApi class?";
- throw new Exception($message);
-
- return $response->write($message)->withStatus(501);
- }
-
- /**
- * PUT testQueryParameterCollectionFormat
- * Notes: To test the collection format in query parameters
- *
- * @param ServerRequestInterface $request Request
- * @param ResponseInterface $response Response
- * @param array|null $args Path arguments
- *
- * @return ResponseInterface
- * @throws Exception to force implementation class to override this method
- */
- public function testQueryParameterCollectionFormat(ServerRequestInterface $request, ResponseInterface $response, array $args)
- {
- $queryParams = $request->getQueryParams();
- $pipe = $request->getQueryParam('pipe');
- $ioutil = $request->getQueryParam('ioutil');
- $http = $request->getQueryParam('http');
- $url = $request->getQueryParam('url');
- $context = $request->getQueryParam('context');
- $message = "How about implementing testQueryParameterCollectionFormat as a PUT method in OpenAPIServer\Api\FakeApi class?";
- throw new Exception($message);
-
- return $response->write($message)->withStatus(501);
- }
-}
diff --git a/samples/server/petstore/php-slim/lib/Api/AbstractFakeClassnameTags123Api.php b/samples/server/petstore/php-slim/lib/Api/AbstractFakeClassnameTags123Api.php
deleted file mode 100644
index cbe943ed38c3..000000000000
--- a/samples/server/petstore/php-slim/lib/Api/AbstractFakeClassnameTags123Api.php
+++ /dev/null
@@ -1,79 +0,0 @@
-container = $container;
- }
-
-
- /**
- * PATCH testClassname
- * Summary: To test class name in snake case
- * Notes: To test class name in snake case
- * Output-Formats: [application/json]
- *
- * @param ServerRequestInterface $request Request
- * @param ResponseInterface $response Response
- * @param array|null $args Path arguments
- *
- * @return ResponseInterface
- * @throws Exception to force implementation class to override this method
- */
- public function testClassname(ServerRequestInterface $request, ResponseInterface $response, array $args)
- {
- $body = $request->getParsedBody();
- $message = "How about implementing testClassname as a PATCH method in OpenAPIServer\Api\FakeClassnameTags123Api class?";
- throw new Exception($message);
-
- return $response->write($message)->withStatus(501);
- }
-}
diff --git a/samples/server/petstore/php-slim/lib/Api/AbstractPetApi.php b/samples/server/petstore/php-slim/lib/Api/AbstractPetApi.php
deleted file mode 100644
index 9ff00017cb5e..000000000000
--- a/samples/server/petstore/php-slim/lib/Api/AbstractPetApi.php
+++ /dev/null
@@ -1,255 +0,0 @@
-container = $container;
- }
-
-
- /**
- * POST addPet
- * Summary: Add a new pet to the store
- *
- * @param ServerRequestInterface $request Request
- * @param ResponseInterface $response Response
- * @param array|null $args Path arguments
- *
- * @return ResponseInterface
- * @throws Exception to force implementation class to override this method
- */
- public function addPet(ServerRequestInterface $request, ResponseInterface $response, array $args)
- {
- $body = $request->getParsedBody();
- $message = "How about implementing addPet as a POST method in OpenAPIServer\Api\PetApi class?";
- throw new Exception($message);
-
- return $response->write($message)->withStatus(501);
- }
-
- /**
- * DELETE deletePet
- * Summary: Deletes a pet
- *
- * @param ServerRequestInterface $request Request
- * @param ResponseInterface $response Response
- * @param array|null $args Path arguments
- *
- * @return ResponseInterface
- * @throws Exception to force implementation class to override this method
- */
- public function deletePet(ServerRequestInterface $request, ResponseInterface $response, array $args)
- {
- $headers = $request->getHeaders();
- $apiKey = $request->hasHeader('api_key') ? $headers['api_key'] : null;
- $petId = $args['petId'];
- $message = "How about implementing deletePet as a DELETE method in OpenAPIServer\Api\PetApi class?";
- throw new Exception($message);
-
- return $response->write($message)->withStatus(501);
- }
-
- /**
- * GET findPetsByStatus
- * Summary: Finds Pets by status
- * Notes: Multiple status values can be provided with comma separated strings
- * Output-Formats: [application/xml, application/json]
- *
- * @param ServerRequestInterface $request Request
- * @param ResponseInterface $response Response
- * @param array|null $args Path arguments
- *
- * @return ResponseInterface
- * @throws Exception to force implementation class to override this method
- */
- public function findPetsByStatus(ServerRequestInterface $request, ResponseInterface $response, array $args)
- {
- $queryParams = $request->getQueryParams();
- $status = $request->getQueryParam('status');
- $message = "How about implementing findPetsByStatus as a GET method in OpenAPIServer\Api\PetApi class?";
- throw new Exception($message);
-
- return $response->write($message)->withStatus(501);
- }
-
- /**
- * GET findPetsByTags
- * Summary: Finds Pets by tags
- * Notes: Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
- * Output-Formats: [application/xml, application/json]
- *
- * @param ServerRequestInterface $request Request
- * @param ResponseInterface $response Response
- * @param array|null $args Path arguments
- *
- * @return ResponseInterface
- * @throws Exception to force implementation class to override this method
- */
- public function findPetsByTags(ServerRequestInterface $request, ResponseInterface $response, array $args)
- {
- $queryParams = $request->getQueryParams();
- $tags = $request->getQueryParam('tags');
- $message = "How about implementing findPetsByTags as a GET method in OpenAPIServer\Api\PetApi class?";
- throw new Exception($message);
-
- return $response->write($message)->withStatus(501);
- }
-
- /**
- * GET getPetById
- * Summary: Find pet by ID
- * Notes: Returns a single pet
- * Output-Formats: [application/xml, application/json]
- *
- * @param ServerRequestInterface $request Request
- * @param ResponseInterface $response Response
- * @param array|null $args Path arguments
- *
- * @return ResponseInterface
- * @throws Exception to force implementation class to override this method
- */
- public function getPetById(ServerRequestInterface $request, ResponseInterface $response, array $args)
- {
- $petId = $args['petId'];
- $message = "How about implementing getPetById as a GET method in OpenAPIServer\Api\PetApi class?";
- throw new Exception($message);
-
- return $response->write($message)->withStatus(501);
- }
-
- /**
- * PUT updatePet
- * Summary: Update an existing pet
- *
- * @param ServerRequestInterface $request Request
- * @param ResponseInterface $response Response
- * @param array|null $args Path arguments
- *
- * @return ResponseInterface
- * @throws Exception to force implementation class to override this method
- */
- public function updatePet(ServerRequestInterface $request, ResponseInterface $response, array $args)
- {
- $body = $request->getParsedBody();
- $message = "How about implementing updatePet as a PUT method in OpenAPIServer\Api\PetApi class?";
- throw new Exception($message);
-
- return $response->write($message)->withStatus(501);
- }
-
- /**
- * POST updatePetWithForm
- * Summary: Updates a pet in the store with form data
- *
- * @param ServerRequestInterface $request Request
- * @param ResponseInterface $response Response
- * @param array|null $args Path arguments
- *
- * @return ResponseInterface
- * @throws Exception to force implementation class to override this method
- */
- public function updatePetWithForm(ServerRequestInterface $request, ResponseInterface $response, array $args)
- {
- $petId = $args['petId'];
- $name = $request->getParsedBodyParam('name');
- $status = $request->getParsedBodyParam('status');
- $message = "How about implementing updatePetWithForm as a POST method in OpenAPIServer\Api\PetApi class?";
- throw new Exception($message);
-
- return $response->write($message)->withStatus(501);
- }
-
- /**
- * POST uploadFile
- * Summary: uploads an image
- * Output-Formats: [application/json]
- *
- * @param ServerRequestInterface $request Request
- * @param ResponseInterface $response Response
- * @param array|null $args Path arguments
- *
- * @return ResponseInterface
- * @throws Exception to force implementation class to override this method
- */
- public function uploadFile(ServerRequestInterface $request, ResponseInterface $response, array $args)
- {
- $petId = $args['petId'];
- $additionalMetadata = $request->getParsedBodyParam('additionalMetadata');
- $file = (key_exists('file', $request->getUploadedFiles())) ? $request->getUploadedFiles()['file'] : null;
- $message = "How about implementing uploadFile as a POST method in OpenAPIServer\Api\PetApi class?";
- throw new Exception($message);
-
- return $response->write($message)->withStatus(501);
- }
-
- /**
- * POST uploadFileWithRequiredFile
- * Summary: uploads an image (required)
- * Output-Formats: [application/json]
- *
- * @param ServerRequestInterface $request Request
- * @param ResponseInterface $response Response
- * @param array|null $args Path arguments
- *
- * @return ResponseInterface
- * @throws Exception to force implementation class to override this method
- */
- public function uploadFileWithRequiredFile(ServerRequestInterface $request, ResponseInterface $response, array $args)
- {
- $petId = $args['petId'];
- $additionalMetadata = $request->getParsedBodyParam('additionalMetadata');
- $requiredFile = (key_exists('requiredFile', $request->getUploadedFiles())) ? $request->getUploadedFiles()['requiredFile'] : null;
- $message = "How about implementing uploadFileWithRequiredFile as a POST method in OpenAPIServer\Api\PetApi class?";
- throw new Exception($message);
-
- return $response->write($message)->withStatus(501);
- }
-}
diff --git a/samples/server/petstore/php-slim/lib/Api/AbstractStoreApi.php b/samples/server/petstore/php-slim/lib/Api/AbstractStoreApi.php
deleted file mode 100644
index b23947798074..000000000000
--- a/samples/server/petstore/php-slim/lib/Api/AbstractStoreApi.php
+++ /dev/null
@@ -1,142 +0,0 @@
-container = $container;
- }
-
-
- /**
- * DELETE deleteOrder
- * Summary: Delete purchase order by ID
- * Notes: For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors
- *
- * @param ServerRequestInterface $request Request
- * @param ResponseInterface $response Response
- * @param array|null $args Path arguments
- *
- * @return ResponseInterface
- * @throws Exception to force implementation class to override this method
- */
- public function deleteOrder(ServerRequestInterface $request, ResponseInterface $response, array $args)
- {
- $orderId = $args['order_id'];
- $message = "How about implementing deleteOrder as a DELETE method in OpenAPIServer\Api\StoreApi class?";
- throw new Exception($message);
-
- return $response->write($message)->withStatus(501);
- }
-
- /**
- * GET getInventory
- * Summary: Returns pet inventories by status
- * Notes: Returns a map of status codes to quantities
- * Output-Formats: [application/json]
- *
- * @param ServerRequestInterface $request Request
- * @param ResponseInterface $response Response
- * @param array|null $args Path arguments
- *
- * @return ResponseInterface
- * @throws Exception to force implementation class to override this method
- */
- public function getInventory(ServerRequestInterface $request, ResponseInterface $response, array $args)
- {
- $message = "How about implementing getInventory as a GET method in OpenAPIServer\Api\StoreApi class?";
- throw new Exception($message);
-
- return $response->write($message)->withStatus(501);
- }
-
- /**
- * GET getOrderById
- * Summary: Find purchase order by ID
- * Notes: For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions
- * Output-Formats: [application/xml, application/json]
- *
- * @param ServerRequestInterface $request Request
- * @param ResponseInterface $response Response
- * @param array|null $args Path arguments
- *
- * @return ResponseInterface
- * @throws Exception to force implementation class to override this method
- */
- public function getOrderById(ServerRequestInterface $request, ResponseInterface $response, array $args)
- {
- $orderId = $args['order_id'];
- $message = "How about implementing getOrderById as a GET method in OpenAPIServer\Api\StoreApi class?";
- throw new Exception($message);
-
- return $response->write($message)->withStatus(501);
- }
-
- /**
- * POST placeOrder
- * Summary: Place an order for a pet
- * Output-Formats: [application/xml, application/json]
- *
- * @param ServerRequestInterface $request Request
- * @param ResponseInterface $response Response
- * @param array|null $args Path arguments
- *
- * @return ResponseInterface
- * @throws Exception to force implementation class to override this method
- */
- public function placeOrder(ServerRequestInterface $request, ResponseInterface $response, array $args)
- {
- $body = $request->getParsedBody();
- $message = "How about implementing placeOrder as a POST method in OpenAPIServer\Api\StoreApi class?";
- throw new Exception($message);
-
- return $response->write($message)->withStatus(501);
- }
-}
diff --git a/samples/server/petstore/php-slim/lib/Api/AbstractUserApi.php b/samples/server/petstore/php-slim/lib/Api/AbstractUserApi.php
deleted file mode 100644
index 0f6e36f54d5e..000000000000
--- a/samples/server/petstore/php-slim/lib/Api/AbstractUserApi.php
+++ /dev/null
@@ -1,224 +0,0 @@
-container = $container;
- }
-
-
- /**
- * POST createUser
- * Summary: Create user
- * Notes: This can only be done by the logged in user.
- *
- * @param ServerRequestInterface $request Request
- * @param ResponseInterface $response Response
- * @param array|null $args Path arguments
- *
- * @return ResponseInterface
- * @throws Exception to force implementation class to override this method
- */
- public function createUser(ServerRequestInterface $request, ResponseInterface $response, array $args)
- {
- $body = $request->getParsedBody();
- $message = "How about implementing createUser as a POST method in OpenAPIServer\Api\UserApi class?";
- throw new Exception($message);
-
- return $response->write($message)->withStatus(501);
- }
-
- /**
- * POST createUsersWithArrayInput
- * Summary: Creates list of users with given input array
- *
- * @param ServerRequestInterface $request Request
- * @param ResponseInterface $response Response
- * @param array|null $args Path arguments
- *
- * @return ResponseInterface
- * @throws Exception to force implementation class to override this method
- */
- public function createUsersWithArrayInput(ServerRequestInterface $request, ResponseInterface $response, array $args)
- {
- $body = $request->getParsedBody();
- $message = "How about implementing createUsersWithArrayInput as a POST method in OpenAPIServer\Api\UserApi class?";
- throw new Exception($message);
-
- return $response->write($message)->withStatus(501);
- }
-
- /**
- * POST createUsersWithListInput
- * Summary: Creates list of users with given input array
- *
- * @param ServerRequestInterface $request Request
- * @param ResponseInterface $response Response
- * @param array|null $args Path arguments
- *
- * @return ResponseInterface
- * @throws Exception to force implementation class to override this method
- */
- public function createUsersWithListInput(ServerRequestInterface $request, ResponseInterface $response, array $args)
- {
- $body = $request->getParsedBody();
- $message = "How about implementing createUsersWithListInput as a POST method in OpenAPIServer\Api\UserApi class?";
- throw new Exception($message);
-
- return $response->write($message)->withStatus(501);
- }
-
- /**
- * DELETE deleteUser
- * Summary: Delete user
- * Notes: This can only be done by the logged in user.
- *
- * @param ServerRequestInterface $request Request
- * @param ResponseInterface $response Response
- * @param array|null $args Path arguments
- *
- * @return ResponseInterface
- * @throws Exception to force implementation class to override this method
- */
- public function deleteUser(ServerRequestInterface $request, ResponseInterface $response, array $args)
- {
- $username = $args['username'];
- $message = "How about implementing deleteUser as a DELETE method in OpenAPIServer\Api\UserApi class?";
- throw new Exception($message);
-
- return $response->write($message)->withStatus(501);
- }
-
- /**
- * GET getUserByName
- * Summary: Get user by user name
- * Output-Formats: [application/xml, application/json]
- *
- * @param ServerRequestInterface $request Request
- * @param ResponseInterface $response Response
- * @param array|null $args Path arguments
- *
- * @return ResponseInterface
- * @throws Exception to force implementation class to override this method
- */
- public function getUserByName(ServerRequestInterface $request, ResponseInterface $response, array $args)
- {
- $username = $args['username'];
- $message = "How about implementing getUserByName as a GET method in OpenAPIServer\Api\UserApi class?";
- throw new Exception($message);
-
- return $response->write($message)->withStatus(501);
- }
-
- /**
- * GET loginUser
- * Summary: Logs user into the system
- * Output-Formats: [application/xml, application/json]
- *
- * @param ServerRequestInterface $request Request
- * @param ResponseInterface $response Response
- * @param array|null $args Path arguments
- *
- * @return ResponseInterface
- * @throws Exception to force implementation class to override this method
- */
- public function loginUser(ServerRequestInterface $request, ResponseInterface $response, array $args)
- {
- $queryParams = $request->getQueryParams();
- $username = $request->getQueryParam('username');
- $password = $request->getQueryParam('password');
- $message = "How about implementing loginUser as a GET method in OpenAPIServer\Api\UserApi class?";
- throw new Exception($message);
-
- return $response->write($message)->withStatus(501);
- }
-
- /**
- * GET logoutUser
- * Summary: Logs out current logged in user session
- *
- * @param ServerRequestInterface $request Request
- * @param ResponseInterface $response Response
- * @param array|null $args Path arguments
- *
- * @return ResponseInterface
- * @throws Exception to force implementation class to override this method
- */
- public function logoutUser(ServerRequestInterface $request, ResponseInterface $response, array $args)
- {
- $message = "How about implementing logoutUser as a GET method in OpenAPIServer\Api\UserApi class?";
- throw new Exception($message);
-
- return $response->write($message)->withStatus(501);
- }
-
- /**
- * PUT updateUser
- * Summary: Updated user
- * Notes: This can only be done by the logged in user.
- *
- * @param ServerRequestInterface $request Request
- * @param ResponseInterface $response Response
- * @param array|null $args Path arguments
- *
- * @return ResponseInterface
- * @throws Exception to force implementation class to override this method
- */
- public function updateUser(ServerRequestInterface $request, ResponseInterface $response, array $args)
- {
- $username = $args['username'];
- $body = $request->getParsedBody();
- $message = "How about implementing updateUser as a PUT method in OpenAPIServer\Api\UserApi class?";
- throw new Exception($message);
-
- return $response->write($message)->withStatus(501);
- }
-}
diff --git a/samples/server/petstore/php-slim/lib/Auth/AbstractAuthenticator.php b/samples/server/petstore/php-slim/lib/Auth/AbstractAuthenticator.php
deleted file mode 100644
index 52f6f7008563..000000000000
--- a/samples/server/petstore/php-slim/lib/Auth/AbstractAuthenticator.php
+++ /dev/null
@@ -1,108 +0,0 @@
-container = $container;
- $this->requiredScope = $requiredScope;
- }
-
- /**
- * Makes the api key validation of your application
- *
- * Just an example of implementation. Override this method to fit your needs
- *
- * @param ServerRequestInterface $request HTTP request
- * @param TokenSearch $tokenSearch Middleware instance which contains api key in token
- *
- * @return bool Must return either true or false
- * @throws UnauthorizedExceptionInterface when cannot parse token
- */
- public function __invoke(ServerRequestInterface &$request, TokenSearch $tokenSearch)
- {
- /**
- * Try find authorization token via header, parameters, cookie or attribute
- * If token not found, return response with status 401 (unauthorized)
- */
- $token = $tokenSearch->getToken($request);
-
- /**
- * Verify if token is valid on database
- * If token isn't valid, expired or has insufficient scope must throw an UnauthorizedExceptionInterface
- */
- $user = $this->getUserByToken($token);
-
- /**
- * Set authenticated user at attributes
- */
- $request = $request->withAttribute('authenticated_user', $user);
-
- return true;
- }
-}
diff --git a/samples/server/petstore/php-slim/lib/Model/AdditionalPropertiesAnyType.php b/samples/server/petstore/php-slim/lib/Model/AdditionalPropertiesAnyType.php
deleted file mode 100644
index 75656ee435eb..000000000000
--- a/samples/server/petstore/php-slim/lib/Model/AdditionalPropertiesAnyType.php
+++ /dev/null
@@ -1,30 +0,0 @@
- 'PATCH',
- 'basePathWithoutHost' => '/v2',
- 'path' => '/another-fake/dummy',
- 'apiPackage' => 'OpenAPIServer\Api',
- 'classname' => 'AbstractAnotherFakeApi',
- 'userClassname' => 'AnotherFakeApi',
- 'operationId' => 'call123TestSpecialTags',
- 'authMethods' => [
- ],
- ],
- [
- 'httpMethod' => 'POST',
- 'basePathWithoutHost' => '/v2',
- 'path' => '/fake/create_xml_item',
- 'apiPackage' => 'OpenAPIServer\Api',
- 'classname' => 'AbstractFakeApi',
- 'userClassname' => 'FakeApi',
- 'operationId' => 'createXmlItem',
- 'authMethods' => [
- ],
- ],
- [
- 'httpMethod' => 'POST',
- 'basePathWithoutHost' => '/v2',
- 'path' => '/fake/outer/boolean',
- 'apiPackage' => 'OpenAPIServer\Api',
- 'classname' => 'AbstractFakeApi',
- 'userClassname' => 'FakeApi',
- 'operationId' => 'fakeOuterBooleanSerialize',
- 'authMethods' => [
- ],
- ],
- [
- 'httpMethod' => 'POST',
- 'basePathWithoutHost' => '/v2',
- 'path' => '/fake/outer/composite',
- 'apiPackage' => 'OpenAPIServer\Api',
- 'classname' => 'AbstractFakeApi',
- 'userClassname' => 'FakeApi',
- 'operationId' => 'fakeOuterCompositeSerialize',
- 'authMethods' => [
- ],
- ],
- [
- 'httpMethod' => 'POST',
- 'basePathWithoutHost' => '/v2',
- 'path' => '/fake/outer/number',
- 'apiPackage' => 'OpenAPIServer\Api',
- 'classname' => 'AbstractFakeApi',
- 'userClassname' => 'FakeApi',
- 'operationId' => 'fakeOuterNumberSerialize',
- 'authMethods' => [
- ],
- ],
- [
- 'httpMethod' => 'POST',
- 'basePathWithoutHost' => '/v2',
- 'path' => '/fake/outer/string',
- 'apiPackage' => 'OpenAPIServer\Api',
- 'classname' => 'AbstractFakeApi',
- 'userClassname' => 'FakeApi',
- 'operationId' => 'fakeOuterStringSerialize',
- 'authMethods' => [
- ],
- ],
- [
- 'httpMethod' => 'PUT',
- 'basePathWithoutHost' => '/v2',
- 'path' => '/fake/body-with-file-schema',
- 'apiPackage' => 'OpenAPIServer\Api',
- 'classname' => 'AbstractFakeApi',
- 'userClassname' => 'FakeApi',
- 'operationId' => 'testBodyWithFileSchema',
- 'authMethods' => [
- ],
- ],
- [
- 'httpMethod' => 'PUT',
- 'basePathWithoutHost' => '/v2',
- 'path' => '/fake/body-with-query-params',
- 'apiPackage' => 'OpenAPIServer\Api',
- 'classname' => 'AbstractFakeApi',
- 'userClassname' => 'FakeApi',
- 'operationId' => 'testBodyWithQueryParams',
- 'authMethods' => [
- ],
- ],
- [
- 'httpMethod' => 'PATCH',
- 'basePathWithoutHost' => '/v2',
- 'path' => '/fake',
- 'apiPackage' => 'OpenAPIServer\Api',
- 'classname' => 'AbstractFakeApi',
- 'userClassname' => 'FakeApi',
- 'operationId' => 'testClientModel',
- 'authMethods' => [
- ],
- ],
- [
- 'httpMethod' => 'POST',
- 'basePathWithoutHost' => '/v2',
- 'path' => '/fake',
- 'apiPackage' => 'OpenAPIServer\Api',
- 'classname' => 'AbstractFakeApi',
- 'userClassname' => 'FakeApi',
- 'operationId' => 'testEndpointParameters',
- 'authMethods' => [
- // http security schema named 'http_basic_test'
- [
- 'type' => 'http',
- 'isBasic' => true,
- 'isBearer' => false,
- 'isApiKey' => false,
- 'isOAuth' => false,
- ],
- ],
- ],
- [
- 'httpMethod' => 'GET',
- 'basePathWithoutHost' => '/v2',
- 'path' => '/fake',
- 'apiPackage' => 'OpenAPIServer\Api',
- 'classname' => 'AbstractFakeApi',
- 'userClassname' => 'FakeApi',
- 'operationId' => 'testEnumParameters',
- 'authMethods' => [
- ],
- ],
- [
- 'httpMethod' => 'DELETE',
- 'basePathWithoutHost' => '/v2',
- 'path' => '/fake',
- 'apiPackage' => 'OpenAPIServer\Api',
- 'classname' => 'AbstractFakeApi',
- 'userClassname' => 'FakeApi',
- 'operationId' => 'testGroupParameters',
- 'authMethods' => [
- ],
- ],
- [
- 'httpMethod' => 'POST',
- 'basePathWithoutHost' => '/v2',
- 'path' => '/fake/inline-additionalProperties',
- 'apiPackage' => 'OpenAPIServer\Api',
- 'classname' => 'AbstractFakeApi',
- 'userClassname' => 'FakeApi',
- 'operationId' => 'testInlineAdditionalProperties',
- 'authMethods' => [
- ],
- ],
- [
- 'httpMethod' => 'GET',
- 'basePathWithoutHost' => '/v2',
- 'path' => '/fake/jsonFormData',
- 'apiPackage' => 'OpenAPIServer\Api',
- 'classname' => 'AbstractFakeApi',
- 'userClassname' => 'FakeApi',
- 'operationId' => 'testJsonFormData',
- 'authMethods' => [
- ],
- ],
- [
- 'httpMethod' => 'PUT',
- 'basePathWithoutHost' => '/v2',
- 'path' => '/fake/test-query-paramters',
- 'apiPackage' => 'OpenAPIServer\Api',
- 'classname' => 'AbstractFakeApi',
- 'userClassname' => 'FakeApi',
- 'operationId' => 'testQueryParameterCollectionFormat',
- 'authMethods' => [
- ],
- ],
- [
- 'httpMethod' => 'PATCH',
- 'basePathWithoutHost' => '/v2',
- 'path' => '/fake_classname_test',
- 'apiPackage' => 'OpenAPIServer\Api',
- 'classname' => 'AbstractFakeClassnameTags123Api',
- 'userClassname' => 'FakeClassnameTags123Api',
- 'operationId' => 'testClassname',
- 'authMethods' => [
- // apiKey security schema named 'api_key_query'
- [
- 'type' => 'apiKey',
- 'isBasic' => false,
- 'isBearer' => false,
- 'isApiKey' => true,
- 'isOAuth' => false,
- 'keyParamName' => 'api_key_query',
- 'isKeyInHeader' => false,
- 'isKeyInQuery' => true,
- 'isKeyInCookie' => false,
- ],
- ],
- ],
- [
- 'httpMethod' => 'POST',
- 'basePathWithoutHost' => '/v2',
- 'path' => '/pet',
- 'apiPackage' => 'OpenAPIServer\Api',
- 'classname' => 'AbstractPetApi',
- 'userClassname' => 'PetApi',
- 'operationId' => 'addPet',
- 'authMethods' => [
- // oauth2 security schema named 'petstore_auth'
- [
- 'type' => 'oauth2',
- 'isBasic' => false,
- 'isBearer' => false,
- 'isApiKey' => false,
- 'isOAuth' => true,
- 'scopes' => [
- 'write:pets', // modify pets in your account
- 'read:pets', // read your pets
- ],
- ],
- ],
- ],
- [
- 'httpMethod' => 'GET',
- 'basePathWithoutHost' => '/v2',
- 'path' => '/pet/findByStatus',
- 'apiPackage' => 'OpenAPIServer\Api',
- 'classname' => 'AbstractPetApi',
- 'userClassname' => 'PetApi',
- 'operationId' => 'findPetsByStatus',
- 'authMethods' => [
- // oauth2 security schema named 'petstore_auth'
- [
- 'type' => 'oauth2',
- 'isBasic' => false,
- 'isBearer' => false,
- 'isApiKey' => false,
- 'isOAuth' => true,
- 'scopes' => [
- 'write:pets', // modify pets in your account
- 'read:pets', // read your pets
- ],
- ],
- ],
- ],
- [
- 'httpMethod' => 'GET',
- 'basePathWithoutHost' => '/v2',
- 'path' => '/pet/findByTags',
- 'apiPackage' => 'OpenAPIServer\Api',
- 'classname' => 'AbstractPetApi',
- 'userClassname' => 'PetApi',
- 'operationId' => 'findPetsByTags',
- 'authMethods' => [
- // oauth2 security schema named 'petstore_auth'
- [
- 'type' => 'oauth2',
- 'isBasic' => false,
- 'isBearer' => false,
- 'isApiKey' => false,
- 'isOAuth' => true,
- 'scopes' => [
- 'write:pets', // modify pets in your account
- 'read:pets', // read your pets
- ],
- ],
- ],
- ],
- [
- 'httpMethod' => 'PUT',
- 'basePathWithoutHost' => '/v2',
- 'path' => '/pet',
- 'apiPackage' => 'OpenAPIServer\Api',
- 'classname' => 'AbstractPetApi',
- 'userClassname' => 'PetApi',
- 'operationId' => 'updatePet',
- 'authMethods' => [
- // oauth2 security schema named 'petstore_auth'
- [
- 'type' => 'oauth2',
- 'isBasic' => false,
- 'isBearer' => false,
- 'isApiKey' => false,
- 'isOAuth' => true,
- 'scopes' => [
- 'write:pets', // modify pets in your account
- 'read:pets', // read your pets
- ],
- ],
- ],
- ],
- [
- 'httpMethod' => 'DELETE',
- 'basePathWithoutHost' => '/v2',
- 'path' => '/pet/{petId}',
- 'apiPackage' => 'OpenAPIServer\Api',
- 'classname' => 'AbstractPetApi',
- 'userClassname' => 'PetApi',
- 'operationId' => 'deletePet',
- 'authMethods' => [
- // oauth2 security schema named 'petstore_auth'
- [
- 'type' => 'oauth2',
- 'isBasic' => false,
- 'isBearer' => false,
- 'isApiKey' => false,
- 'isOAuth' => true,
- 'scopes' => [
- 'write:pets', // modify pets in your account
- 'read:pets', // read your pets
- ],
- ],
- ],
- ],
- [
- 'httpMethod' => 'GET',
- 'basePathWithoutHost' => '/v2',
- 'path' => '/pet/{petId}',
- 'apiPackage' => 'OpenAPIServer\Api',
- 'classname' => 'AbstractPetApi',
- 'userClassname' => 'PetApi',
- 'operationId' => 'getPetById',
- 'authMethods' => [
- // apiKey security schema named 'api_key'
- [
- 'type' => 'apiKey',
- 'isBasic' => false,
- 'isBearer' => false,
- 'isApiKey' => true,
- 'isOAuth' => false,
- 'keyParamName' => 'api_key',
- 'isKeyInHeader' => true,
- 'isKeyInQuery' => false,
- 'isKeyInCookie' => false,
- ],
- ],
- ],
- [
- 'httpMethod' => 'POST',
- 'basePathWithoutHost' => '/v2',
- 'path' => '/pet/{petId}',
- 'apiPackage' => 'OpenAPIServer\Api',
- 'classname' => 'AbstractPetApi',
- 'userClassname' => 'PetApi',
- 'operationId' => 'updatePetWithForm',
- 'authMethods' => [
- // oauth2 security schema named 'petstore_auth'
- [
- 'type' => 'oauth2',
- 'isBasic' => false,
- 'isBearer' => false,
- 'isApiKey' => false,
- 'isOAuth' => true,
- 'scopes' => [
- 'write:pets', // modify pets in your account
- 'read:pets', // read your pets
- ],
- ],
- ],
- ],
- [
- 'httpMethod' => 'POST',
- 'basePathWithoutHost' => '/v2',
- 'path' => '/pet/{petId}/uploadImage',
- 'apiPackage' => 'OpenAPIServer\Api',
- 'classname' => 'AbstractPetApi',
- 'userClassname' => 'PetApi',
- 'operationId' => 'uploadFile',
- 'authMethods' => [
- // oauth2 security schema named 'petstore_auth'
- [
- 'type' => 'oauth2',
- 'isBasic' => false,
- 'isBearer' => false,
- 'isApiKey' => false,
- 'isOAuth' => true,
- 'scopes' => [
- 'write:pets', // modify pets in your account
- 'read:pets', // read your pets
- ],
- ],
- ],
- ],
- [
- 'httpMethod' => 'POST',
- 'basePathWithoutHost' => '/v2',
- 'path' => '/fake/{petId}/uploadImageWithRequiredFile',
- 'apiPackage' => 'OpenAPIServer\Api',
- 'classname' => 'AbstractPetApi',
- 'userClassname' => 'PetApi',
- 'operationId' => 'uploadFileWithRequiredFile',
- 'authMethods' => [
- // oauth2 security schema named 'petstore_auth'
- [
- 'type' => 'oauth2',
- 'isBasic' => false,
- 'isBearer' => false,
- 'isApiKey' => false,
- 'isOAuth' => true,
- 'scopes' => [
- 'write:pets', // modify pets in your account
- 'read:pets', // read your pets
- ],
- ],
- ],
- ],
- [
- 'httpMethod' => 'GET',
- 'basePathWithoutHost' => '/v2',
- 'path' => '/store/inventory',
- 'apiPackage' => 'OpenAPIServer\Api',
- 'classname' => 'AbstractStoreApi',
- 'userClassname' => 'StoreApi',
- 'operationId' => 'getInventory',
- 'authMethods' => [
- // apiKey security schema named 'api_key'
- [
- 'type' => 'apiKey',
- 'isBasic' => false,
- 'isBearer' => false,
- 'isApiKey' => true,
- 'isOAuth' => false,
- 'keyParamName' => 'api_key',
- 'isKeyInHeader' => true,
- 'isKeyInQuery' => false,
- 'isKeyInCookie' => false,
- ],
- ],
- ],
- [
- 'httpMethod' => 'POST',
- 'basePathWithoutHost' => '/v2',
- 'path' => '/store/order',
- 'apiPackage' => 'OpenAPIServer\Api',
- 'classname' => 'AbstractStoreApi',
- 'userClassname' => 'StoreApi',
- 'operationId' => 'placeOrder',
- 'authMethods' => [
- ],
- ],
- [
- 'httpMethod' => 'DELETE',
- 'basePathWithoutHost' => '/v2',
- 'path' => '/store/order/{order_id}',
- 'apiPackage' => 'OpenAPIServer\Api',
- 'classname' => 'AbstractStoreApi',
- 'userClassname' => 'StoreApi',
- 'operationId' => 'deleteOrder',
- 'authMethods' => [
- ],
- ],
- [
- 'httpMethod' => 'GET',
- 'basePathWithoutHost' => '/v2',
- 'path' => '/store/order/{order_id}',
- 'apiPackage' => 'OpenAPIServer\Api',
- 'classname' => 'AbstractStoreApi',
- 'userClassname' => 'StoreApi',
- 'operationId' => 'getOrderById',
- 'authMethods' => [
- ],
- ],
- [
- 'httpMethod' => 'POST',
- 'basePathWithoutHost' => '/v2',
- 'path' => '/user',
- 'apiPackage' => 'OpenAPIServer\Api',
- 'classname' => 'AbstractUserApi',
- 'userClassname' => 'UserApi',
- 'operationId' => 'createUser',
- 'authMethods' => [
- ],
- ],
- [
- 'httpMethod' => 'POST',
- 'basePathWithoutHost' => '/v2',
- 'path' => '/user/createWithArray',
- 'apiPackage' => 'OpenAPIServer\Api',
- 'classname' => 'AbstractUserApi',
- 'userClassname' => 'UserApi',
- 'operationId' => 'createUsersWithArrayInput',
- 'authMethods' => [
- ],
- ],
- [
- 'httpMethod' => 'POST',
- 'basePathWithoutHost' => '/v2',
- 'path' => '/user/createWithList',
- 'apiPackage' => 'OpenAPIServer\Api',
- 'classname' => 'AbstractUserApi',
- 'userClassname' => 'UserApi',
- 'operationId' => 'createUsersWithListInput',
- 'authMethods' => [
- ],
- ],
- [
- 'httpMethod' => 'GET',
- 'basePathWithoutHost' => '/v2',
- 'path' => '/user/login',
- 'apiPackage' => 'OpenAPIServer\Api',
- 'classname' => 'AbstractUserApi',
- 'userClassname' => 'UserApi',
- 'operationId' => 'loginUser',
- 'authMethods' => [
- ],
- ],
- [
- 'httpMethod' => 'GET',
- 'basePathWithoutHost' => '/v2',
- 'path' => '/user/logout',
- 'apiPackage' => 'OpenAPIServer\Api',
- 'classname' => 'AbstractUserApi',
- 'userClassname' => 'UserApi',
- 'operationId' => 'logoutUser',
- 'authMethods' => [
- ],
- ],
- [
- 'httpMethod' => 'DELETE',
- 'basePathWithoutHost' => '/v2',
- 'path' => '/user/{username}',
- 'apiPackage' => 'OpenAPIServer\Api',
- 'classname' => 'AbstractUserApi',
- 'userClassname' => 'UserApi',
- 'operationId' => 'deleteUser',
- 'authMethods' => [
- ],
- ],
- [
- 'httpMethod' => 'GET',
- 'basePathWithoutHost' => '/v2',
- 'path' => '/user/{username}',
- 'apiPackage' => 'OpenAPIServer\Api',
- 'classname' => 'AbstractUserApi',
- 'userClassname' => 'UserApi',
- 'operationId' => 'getUserByName',
- 'authMethods' => [
- ],
- ],
- [
- 'httpMethod' => 'PUT',
- 'basePathWithoutHost' => '/v2',
- 'path' => '/user/{username}',
- 'apiPackage' => 'OpenAPIServer\Api',
- 'classname' => 'AbstractUserApi',
- 'userClassname' => 'UserApi',
- 'operationId' => 'updateUser',
- 'authMethods' => [
- ],
- ],
- ];
-
- /**
- * Class constructor
- *
- * @param ContainerInterface|array $settings Either a ContainerInterface or an associative array of app settings
- *
- * @throws InvalidArgumentException When no container is provided that implements ContainerInterface
- * @throws Exception When implementation class doesn't exists
- */
- public function __construct($settings = [])
- {
- $this->slimApp = new App($settings);
-
- // middlewares requires Psr\Container\ContainerInterface
- $container = $this->slimApp->getContainer();
-
- $authPackage = 'OpenAPIServer\Auth';
- $basicAuthenticator = function (ServerRequestInterface &$request, TokenSearch $tokenSearch) use ($authPackage) {
- $message = "How about extending AbstractAuthenticator class by {$authPackage}\BasicAuthenticator?";
- throw new Exception($message);
- };
- $apiKeyAuthenticator = function (ServerRequestInterface &$request, TokenSearch $tokenSearch) use ($authPackage) {
- $message = "How about extending AbstractAuthenticator class by {$authPackage}\ApiKeyAuthenticator?";
- throw new Exception($message);
- };
- $oAuthAuthenticator = function (ServerRequestInterface &$request, TokenSearch $tokenSearch) use ($authPackage) {
- $message = "How about extending AbstractAuthenticator class by {$authPackage}\OAuthAuthenticator?";
- throw new Exception($message);
- };
-
- foreach ($this->operations as $operation) {
- $callback = function ($request, $response, $arguments) use ($operation) {
- $message = "How about extending {$operation['classname']} by {$operation['apiPackage']}\\{$operation['userClassname']} class implementing {$operation['operationId']} as a {$operation['httpMethod']} method?";
- throw new Exception($message);
- return $response->withStatus(501)->write($message);
- };
- $middlewares = [];
-
- if (class_exists("\\{$operation['apiPackage']}\\{$operation['userClassname']}")) {
- $callback = "\\{$operation['apiPackage']}\\{$operation['userClassname']}:{$operation['operationId']}";
- }
-
- foreach ($operation['authMethods'] as $authMethod) {
- switch ($authMethod['type']) {
- case 'http':
- $authenticatorClassname = "\\{$authPackage}\\BasicAuthenticator";
- if (class_exists($authenticatorClassname)) {
- $basicAuthenticator = new $authenticatorClassname($container);
- }
-
- $middlewares[] = new TokenAuthentication($this->getTokenAuthenticationOptions([
- 'authenticator' => $basicAuthenticator,
- 'regex' => $authMethod['isBearer'] ? '/Bearer\s+(.*)$/i' : '/Basic\s+(.*)$/i',
- 'header' => 'Authorization',
- 'parameter' => null,
- 'cookie' => null,
- 'argument' => null,
- ]));
- break;
- case 'apiKey':
- $authenticatorClassname = "\\{$authPackage}\\ApiKeyAuthenticator";
- if (class_exists($authenticatorClassname)) {
- $apiKeyAuthenticator = new $authenticatorClassname($container);
- }
-
- $middlewares[] = new TokenAuthentication($this->getTokenAuthenticationOptions([
- 'authenticator' => $apiKeyAuthenticator,
- 'regex' => '/^(.*)$/i',
- 'header' => $authMethod['isKeyInHeader'] ? $authMethod['keyParamName'] : null,
- 'parameter' => $authMethod['isKeyInQuery'] ? $authMethod['keyParamName'] : null,
- 'cookie' => $authMethod['isKeyInCookie'] ? $authMethod['keyParamName'] : null,
- 'argument' => null,
- ]));
- break;
- case 'oauth2':
- $authenticatorClassname = "\\{$authPackage}\\OAuthAuthenticator";
- if (class_exists($authenticatorClassname)) {
- $oAuthAuthenticator = new $authenticatorClassname($container, $authMethod['scopes']);
- }
-
- $middlewares[] = new TokenAuthentication($this->getTokenAuthenticationOptions([
- 'authenticator' => $oAuthAuthenticator,
- 'regex' => '/Bearer\s+(.*)$/i',
- 'header' => 'Authorization',
- 'parameter' => null,
- 'cookie' => null,
- 'argument' => null,
- ]));
- break;
- default:
- throw new Exception('Unknown authorization schema type');
- }
- }
-
- $this->addRoute(
- [$operation['httpMethod']],
- "{$operation['basePathWithoutHost']}{$operation['path']}",
- $callback,
- $middlewares
- )->setName($operation['operationId']);
- }
- }
-
- /**
- * Merges user defined options with dynamic params
- *
- * @param array $options Params which need to merge into user options
- *
- * @return array Merged array
- */
- private function getTokenAuthenticationOptions(array $options)
- {
- if (is_array($this->slimApp->getContainer()['tokenAuthenticationOptions']) === false) {
- return $options;
- }
-
- return array_merge($this->slimApp->getContainer()['tokenAuthenticationOptions'], $options);
- }
-
- /**
- * Add route with multiple methods
- *
- * @param string[] $methods Numeric array of HTTP method names
- * @param string $pattern The route URI pattern
- * @param callable|string $callable The route callback routine
- * @param array|null $middlewares List of middlewares
- *
- * @return RouteInterface
- *
- * @throws InvalidArgumentException If the route pattern isn't a string
- */
- public function addRoute(array $methods, string $pattern, $callable, $middlewares = [])
- {
- $route = $this->slimApp->map($methods, $pattern, $callable);
- foreach ($middlewares as $middleware) {
- $route->add($middleware);
- }
- return $route;
- }
-
- /**
- * Returns Slim Framework instance
- *
- * @return App
- */
- public function getSlimApp()
- {
- return $this->slimApp;
- }
-}
diff --git a/samples/server/petstore/php-slim/php_syntax_checker.bash b/samples/server/petstore/php-slim/php_syntax_checker.bash
deleted file mode 100755
index 09c32c89511a..000000000000
--- a/samples/server/petstore/php-slim/php_syntax_checker.bash
+++ /dev/null
@@ -1,11 +0,0 @@
-#!/bin/bash
-# a simple script to perform a syntax check on php files using "php -l"
-
-for i in $( find . -name "*.php" ); do
- result=`php -l $i | grep "No syntax errors detected"`
- exit_status=$?
- if [ $exit_status -eq 1 ]; then
- echo "Syntax errors with $i"
- exit 1;
- fi
-done
diff --git a/samples/server/petstore/php-slim/phpcs.xml.dist b/samples/server/petstore/php-slim/phpcs.xml.dist
deleted file mode 100644
index 69f4ddac71c3..000000000000
--- a/samples/server/petstore/php-slim/phpcs.xml.dist
+++ /dev/null
@@ -1,31 +0,0 @@
-
-
- PHP_CodeSniffer config for OpenAPI Petstore
-
-
- ./
-
-
- ./vendor
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/samples/server/petstore/php-slim/phpunit.xml.dist b/samples/server/petstore/php-slim/phpunit.xml.dist
deleted file mode 100644
index 6af1442ee653..000000000000
--- a/samples/server/petstore/php-slim/phpunit.xml.dist
+++ /dev/null
@@ -1,30 +0,0 @@
-
-
-
-
- ./test/Api
-
-
- ./test/Model
-
-
-
-
- ./lib/Api
- ./lib/Model
-
-
-
-
-
-
diff --git a/samples/server/petstore/php-slim/pom.xml b/samples/server/petstore/php-slim/pom.xml
deleted file mode 100644
index f9493778f784..000000000000
--- a/samples/server/petstore/php-slim/pom.xml
+++ /dev/null
@@ -1,43 +0,0 @@
-
- 4.0.0
- org.opoenapitools
- SlimPetstoreServerTests
- pom
- 1.0-SNAPSHOT
- Slim Petstore Server
-
-
-
- maven-dependency-plugin
-
-
- package
-
- copy-dependencies
-
-
- ${project.build.directory}
-
-
-
-
-
- org.codehaus.mojo
- exec-maven-plugin
- 1.2.1
-
-
- syntax-check
- integration-test
-
- exec
-
-
- ./php_syntax_checker.bash
-
-
-
-
-
-
-
diff --git a/samples/server/petstore/php-slim/test/Api/AnotherFakeApiTest.php b/samples/server/petstore/php-slim/test/Api/AnotherFakeApiTest.php
deleted file mode 100644
index 768b017a8670..000000000000
--- a/samples/server/petstore/php-slim/test/Api/AnotherFakeApiTest.php
+++ /dev/null
@@ -1,80 +0,0 @@
-