├── .php-cs-fixer.dist.php ├── LICENSE ├── README.md ├── composer.json ├── docs ├── assets │ ├── request-handlers.dot │ └── request-handlers.png ├── files.md ├── framework │ ├── magento2.md │ └── symfony.md ├── sdk.md └── transports.md ├── examples └── sdk.php ├── grumphp.yml ├── psalm.xml ├── src ├── Client │ ├── Configurator │ │ └── PluginsConfigurator.php │ └── Factory │ │ ├── AutoDiscoveredClientFactory.php │ │ ├── FactoryInterface.php │ │ ├── GuzzleClientFactory.php │ │ ├── LazyClientLoader.php │ │ └── SymfonyClientFactory.php ├── Dependency │ ├── GuzzleDependency.php │ ├── MockClientDependency.php │ ├── SymfonyClientDependency.php │ ├── SymfonyMimeDependency.php │ └── VcrPluginDependency.php ├── Encoding │ ├── Binary │ │ ├── BinaryFile.php │ │ ├── BinaryFileDecoder.php │ │ └── Extractor │ │ │ ├── ExtensionExtractor.php │ │ │ ├── FilenameExtractor.php │ │ │ ├── HashExtractor.php │ │ │ ├── MimeTypeExtractor.php │ │ │ └── SizeExtractor.php │ ├── DecoderInterface.php │ ├── EncoderInterface.php │ ├── FormUrlencoded │ │ ├── FormUrlencodedDecoder.php │ │ └── FormUrlencodedEncoder.php │ ├── Json │ │ ├── JsonDecoder.php │ │ └── JsonEncoder.php │ ├── Mime │ │ └── MultiPartEncoder.php │ ├── Psr7 │ │ └── ResponseDecoder.php │ ├── Raw │ │ ├── EmptyBodyEncoder.php │ │ ├── RawDecoder.php │ │ └── RawEncoder.php │ └── Stream │ │ ├── StreamDecoder.php │ │ └── StreamEncoder.php ├── Exception │ └── RuntimeException.php ├── Formatter │ ├── Factory │ │ └── BasicFormatterFactory.php │ ├── RemoveSensitiveHeadersFormatter.php │ ├── RemoveSensitiveJsonKeysFormatter.php │ └── RemoveSensitiveQueryStringsFormatter.php ├── Plugin │ ├── AcceptLanguagePlugin.php │ └── CallbackPlugin.php ├── Request │ ├── Request.php │ └── RequestInterface.php ├── Sdk │ ├── HttpResource.php │ └── Rest │ │ ├── CreateTrait.php │ │ ├── DeleteTrait.php │ │ ├── FindTrait.php │ │ ├── GetTrait.php │ │ ├── PatchTrait.php │ │ └── UpdateTrait.php ├── Serializer │ ├── SerializerException.php │ ├── SerializerInterface.php │ └── SymfonySerializer.php ├── Test │ ├── UseHttpFactories.php │ ├── UseHttpToolsFactories.php │ ├── UseMockClient.php │ └── UseVcrClient.php ├── Transport │ ├── CallbackTransport.php │ ├── EncodedTransportFactory.php │ ├── IO │ │ └── Input │ │ │ ├── EncodingRequestConverter.php │ │ │ └── RequestConverterInterface.php │ ├── Presets │ │ ├── BinaryDownloadPreset.php │ │ ├── FormUrlencodedPreset.php │ │ ├── JsonPreset.php │ │ ├── PsrPreset.php │ │ └── RawPreset.php │ ├── Serializer │ │ └── SerializerTransport.php │ └── TransportInterface.php └── Uri │ ├── RawUriBuilder.php │ ├── TemplatedUriBuilder.php │ └── UriBuilderInterface.php └── static-analysis └── Transport └── Serializer └── serializer-transport.php /.php-cs-fixer.dist.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpro/http-tools/HEAD/.php-cs-fixer.dist.php -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpro/http-tools/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpro/http-tools/HEAD/README.md -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpro/http-tools/HEAD/composer.json -------------------------------------------------------------------------------- /docs/assets/request-handlers.dot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpro/http-tools/HEAD/docs/assets/request-handlers.dot -------------------------------------------------------------------------------- /docs/assets/request-handlers.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpro/http-tools/HEAD/docs/assets/request-handlers.png -------------------------------------------------------------------------------- /docs/files.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpro/http-tools/HEAD/docs/files.md -------------------------------------------------------------------------------- /docs/framework/magento2.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpro/http-tools/HEAD/docs/framework/magento2.md -------------------------------------------------------------------------------- /docs/framework/symfony.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpro/http-tools/HEAD/docs/framework/symfony.md -------------------------------------------------------------------------------- /docs/sdk.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpro/http-tools/HEAD/docs/sdk.md -------------------------------------------------------------------------------- /docs/transports.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpro/http-tools/HEAD/docs/transports.md -------------------------------------------------------------------------------- /examples/sdk.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpro/http-tools/HEAD/examples/sdk.php -------------------------------------------------------------------------------- /grumphp.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpro/http-tools/HEAD/grumphp.yml -------------------------------------------------------------------------------- /psalm.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpro/http-tools/HEAD/psalm.xml -------------------------------------------------------------------------------- /src/Client/Configurator/PluginsConfigurator.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpro/http-tools/HEAD/src/Client/Configurator/PluginsConfigurator.php -------------------------------------------------------------------------------- /src/Client/Factory/AutoDiscoveredClientFactory.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpro/http-tools/HEAD/src/Client/Factory/AutoDiscoveredClientFactory.php -------------------------------------------------------------------------------- /src/Client/Factory/FactoryInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpro/http-tools/HEAD/src/Client/Factory/FactoryInterface.php -------------------------------------------------------------------------------- /src/Client/Factory/GuzzleClientFactory.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpro/http-tools/HEAD/src/Client/Factory/GuzzleClientFactory.php -------------------------------------------------------------------------------- /src/Client/Factory/LazyClientLoader.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpro/http-tools/HEAD/src/Client/Factory/LazyClientLoader.php -------------------------------------------------------------------------------- /src/Client/Factory/SymfonyClientFactory.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpro/http-tools/HEAD/src/Client/Factory/SymfonyClientFactory.php -------------------------------------------------------------------------------- /src/Dependency/GuzzleDependency.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpro/http-tools/HEAD/src/Dependency/GuzzleDependency.php -------------------------------------------------------------------------------- /src/Dependency/MockClientDependency.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpro/http-tools/HEAD/src/Dependency/MockClientDependency.php -------------------------------------------------------------------------------- /src/Dependency/SymfonyClientDependency.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpro/http-tools/HEAD/src/Dependency/SymfonyClientDependency.php -------------------------------------------------------------------------------- /src/Dependency/SymfonyMimeDependency.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpro/http-tools/HEAD/src/Dependency/SymfonyMimeDependency.php -------------------------------------------------------------------------------- /src/Dependency/VcrPluginDependency.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpro/http-tools/HEAD/src/Dependency/VcrPluginDependency.php -------------------------------------------------------------------------------- /src/Encoding/Binary/BinaryFile.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpro/http-tools/HEAD/src/Encoding/Binary/BinaryFile.php -------------------------------------------------------------------------------- /src/Encoding/Binary/BinaryFileDecoder.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpro/http-tools/HEAD/src/Encoding/Binary/BinaryFileDecoder.php -------------------------------------------------------------------------------- /src/Encoding/Binary/Extractor/ExtensionExtractor.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpro/http-tools/HEAD/src/Encoding/Binary/Extractor/ExtensionExtractor.php -------------------------------------------------------------------------------- /src/Encoding/Binary/Extractor/FilenameExtractor.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpro/http-tools/HEAD/src/Encoding/Binary/Extractor/FilenameExtractor.php -------------------------------------------------------------------------------- /src/Encoding/Binary/Extractor/HashExtractor.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpro/http-tools/HEAD/src/Encoding/Binary/Extractor/HashExtractor.php -------------------------------------------------------------------------------- /src/Encoding/Binary/Extractor/MimeTypeExtractor.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpro/http-tools/HEAD/src/Encoding/Binary/Extractor/MimeTypeExtractor.php -------------------------------------------------------------------------------- /src/Encoding/Binary/Extractor/SizeExtractor.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpro/http-tools/HEAD/src/Encoding/Binary/Extractor/SizeExtractor.php -------------------------------------------------------------------------------- /src/Encoding/DecoderInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpro/http-tools/HEAD/src/Encoding/DecoderInterface.php -------------------------------------------------------------------------------- /src/Encoding/EncoderInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpro/http-tools/HEAD/src/Encoding/EncoderInterface.php -------------------------------------------------------------------------------- /src/Encoding/FormUrlencoded/FormUrlencodedDecoder.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpro/http-tools/HEAD/src/Encoding/FormUrlencoded/FormUrlencodedDecoder.php -------------------------------------------------------------------------------- /src/Encoding/FormUrlencoded/FormUrlencodedEncoder.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpro/http-tools/HEAD/src/Encoding/FormUrlencoded/FormUrlencodedEncoder.php -------------------------------------------------------------------------------- /src/Encoding/Json/JsonDecoder.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpro/http-tools/HEAD/src/Encoding/Json/JsonDecoder.php -------------------------------------------------------------------------------- /src/Encoding/Json/JsonEncoder.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpro/http-tools/HEAD/src/Encoding/Json/JsonEncoder.php -------------------------------------------------------------------------------- /src/Encoding/Mime/MultiPartEncoder.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpro/http-tools/HEAD/src/Encoding/Mime/MultiPartEncoder.php -------------------------------------------------------------------------------- /src/Encoding/Psr7/ResponseDecoder.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpro/http-tools/HEAD/src/Encoding/Psr7/ResponseDecoder.php -------------------------------------------------------------------------------- /src/Encoding/Raw/EmptyBodyEncoder.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpro/http-tools/HEAD/src/Encoding/Raw/EmptyBodyEncoder.php -------------------------------------------------------------------------------- /src/Encoding/Raw/RawDecoder.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpro/http-tools/HEAD/src/Encoding/Raw/RawDecoder.php -------------------------------------------------------------------------------- /src/Encoding/Raw/RawEncoder.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpro/http-tools/HEAD/src/Encoding/Raw/RawEncoder.php -------------------------------------------------------------------------------- /src/Encoding/Stream/StreamDecoder.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpro/http-tools/HEAD/src/Encoding/Stream/StreamDecoder.php -------------------------------------------------------------------------------- /src/Encoding/Stream/StreamEncoder.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpro/http-tools/HEAD/src/Encoding/Stream/StreamEncoder.php -------------------------------------------------------------------------------- /src/Exception/RuntimeException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpro/http-tools/HEAD/src/Exception/RuntimeException.php -------------------------------------------------------------------------------- /src/Formatter/Factory/BasicFormatterFactory.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpro/http-tools/HEAD/src/Formatter/Factory/BasicFormatterFactory.php -------------------------------------------------------------------------------- /src/Formatter/RemoveSensitiveHeadersFormatter.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpro/http-tools/HEAD/src/Formatter/RemoveSensitiveHeadersFormatter.php -------------------------------------------------------------------------------- /src/Formatter/RemoveSensitiveJsonKeysFormatter.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpro/http-tools/HEAD/src/Formatter/RemoveSensitiveJsonKeysFormatter.php -------------------------------------------------------------------------------- /src/Formatter/RemoveSensitiveQueryStringsFormatter.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpro/http-tools/HEAD/src/Formatter/RemoveSensitiveQueryStringsFormatter.php -------------------------------------------------------------------------------- /src/Plugin/AcceptLanguagePlugin.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpro/http-tools/HEAD/src/Plugin/AcceptLanguagePlugin.php -------------------------------------------------------------------------------- /src/Plugin/CallbackPlugin.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpro/http-tools/HEAD/src/Plugin/CallbackPlugin.php -------------------------------------------------------------------------------- /src/Request/Request.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpro/http-tools/HEAD/src/Request/Request.php -------------------------------------------------------------------------------- /src/Request/RequestInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpro/http-tools/HEAD/src/Request/RequestInterface.php -------------------------------------------------------------------------------- /src/Sdk/HttpResource.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpro/http-tools/HEAD/src/Sdk/HttpResource.php -------------------------------------------------------------------------------- /src/Sdk/Rest/CreateTrait.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpro/http-tools/HEAD/src/Sdk/Rest/CreateTrait.php -------------------------------------------------------------------------------- /src/Sdk/Rest/DeleteTrait.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpro/http-tools/HEAD/src/Sdk/Rest/DeleteTrait.php -------------------------------------------------------------------------------- /src/Sdk/Rest/FindTrait.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpro/http-tools/HEAD/src/Sdk/Rest/FindTrait.php -------------------------------------------------------------------------------- /src/Sdk/Rest/GetTrait.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpro/http-tools/HEAD/src/Sdk/Rest/GetTrait.php -------------------------------------------------------------------------------- /src/Sdk/Rest/PatchTrait.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpro/http-tools/HEAD/src/Sdk/Rest/PatchTrait.php -------------------------------------------------------------------------------- /src/Sdk/Rest/UpdateTrait.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpro/http-tools/HEAD/src/Sdk/Rest/UpdateTrait.php -------------------------------------------------------------------------------- /src/Serializer/SerializerException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpro/http-tools/HEAD/src/Serializer/SerializerException.php -------------------------------------------------------------------------------- /src/Serializer/SerializerInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpro/http-tools/HEAD/src/Serializer/SerializerInterface.php -------------------------------------------------------------------------------- /src/Serializer/SymfonySerializer.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpro/http-tools/HEAD/src/Serializer/SymfonySerializer.php -------------------------------------------------------------------------------- /src/Test/UseHttpFactories.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpro/http-tools/HEAD/src/Test/UseHttpFactories.php -------------------------------------------------------------------------------- /src/Test/UseHttpToolsFactories.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpro/http-tools/HEAD/src/Test/UseHttpToolsFactories.php -------------------------------------------------------------------------------- /src/Test/UseMockClient.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpro/http-tools/HEAD/src/Test/UseMockClient.php -------------------------------------------------------------------------------- /src/Test/UseVcrClient.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpro/http-tools/HEAD/src/Test/UseVcrClient.php -------------------------------------------------------------------------------- /src/Transport/CallbackTransport.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpro/http-tools/HEAD/src/Transport/CallbackTransport.php -------------------------------------------------------------------------------- /src/Transport/EncodedTransportFactory.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpro/http-tools/HEAD/src/Transport/EncodedTransportFactory.php -------------------------------------------------------------------------------- /src/Transport/IO/Input/EncodingRequestConverter.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpro/http-tools/HEAD/src/Transport/IO/Input/EncodingRequestConverter.php -------------------------------------------------------------------------------- /src/Transport/IO/Input/RequestConverterInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpro/http-tools/HEAD/src/Transport/IO/Input/RequestConverterInterface.php -------------------------------------------------------------------------------- /src/Transport/Presets/BinaryDownloadPreset.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpro/http-tools/HEAD/src/Transport/Presets/BinaryDownloadPreset.php -------------------------------------------------------------------------------- /src/Transport/Presets/FormUrlencodedPreset.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpro/http-tools/HEAD/src/Transport/Presets/FormUrlencodedPreset.php -------------------------------------------------------------------------------- /src/Transport/Presets/JsonPreset.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpro/http-tools/HEAD/src/Transport/Presets/JsonPreset.php -------------------------------------------------------------------------------- /src/Transport/Presets/PsrPreset.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpro/http-tools/HEAD/src/Transport/Presets/PsrPreset.php -------------------------------------------------------------------------------- /src/Transport/Presets/RawPreset.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpro/http-tools/HEAD/src/Transport/Presets/RawPreset.php -------------------------------------------------------------------------------- /src/Transport/Serializer/SerializerTransport.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpro/http-tools/HEAD/src/Transport/Serializer/SerializerTransport.php -------------------------------------------------------------------------------- /src/Transport/TransportInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpro/http-tools/HEAD/src/Transport/TransportInterface.php -------------------------------------------------------------------------------- /src/Uri/RawUriBuilder.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpro/http-tools/HEAD/src/Uri/RawUriBuilder.php -------------------------------------------------------------------------------- /src/Uri/TemplatedUriBuilder.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpro/http-tools/HEAD/src/Uri/TemplatedUriBuilder.php -------------------------------------------------------------------------------- /src/Uri/UriBuilderInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpro/http-tools/HEAD/src/Uri/UriBuilderInterface.php -------------------------------------------------------------------------------- /static-analysis/Transport/Serializer/serializer-transport.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpro/http-tools/HEAD/static-analysis/Transport/Serializer/serializer-transport.php --------------------------------------------------------------------------------