├── .gitignore ├── composer.json ├── composer.lock ├── github-api.php ├── readme.txt └── vendor ├── autoload.php ├── composer ├── ClassLoader.php ├── LICENSE ├── autoload_classmap.php ├── autoload_files.php ├── autoload_namespaces.php ├── autoload_psr4.php ├── autoload_real.php └── installed.json ├── guzzle └── guzzle │ ├── .gitignore │ ├── .travis.yml │ ├── CHANGELOG.md │ ├── LICENSE │ ├── README.md │ ├── UPGRADING.md │ ├── build.xml │ ├── composer.json │ ├── docs │ ├── Makefile │ ├── _downloads │ │ └── guzzle-schema-1.0.json │ ├── _static │ │ ├── guzzle-icon.png │ │ ├── homepage.css │ │ ├── logo.png │ │ ├── prettify.css │ │ └── prettify.js │ ├── _templates │ │ ├── index.html │ │ ├── leftbar.html │ │ └── nav_links.html │ ├── batching │ │ └── batching.rst │ ├── conf.py │ ├── docs.rst │ ├── getting-started │ │ ├── faq.rst │ │ ├── installation.rst │ │ └── overview.rst │ ├── http-client │ │ ├── client.rst │ │ ├── entity-bodies.rst │ │ ├── http-redirects.rst │ │ ├── request.rst │ │ ├── response.rst │ │ └── uri-templates.rst │ ├── index.rst │ ├── iterators │ │ ├── guzzle-iterators.rst │ │ └── resource-iterators.rst │ ├── plugins │ │ ├── async-plugin.rst │ │ ├── backoff-plugin.rst │ │ ├── cache-plugin.rst │ │ ├── cookie-plugin.rst │ │ ├── creating-plugins.rst │ │ ├── curl-auth-plugin.rst │ │ ├── history-plugin.rst │ │ ├── log-plugin.rst │ │ ├── md5-validator-plugin.rst │ │ ├── mock-plugin.rst │ │ ├── oauth-plugin.rst │ │ ├── plugins-list.rst.inc │ │ └── plugins-overview.rst │ ├── requirements.txt │ ├── testing │ │ └── unit-testing.rst │ └── webservice-client │ │ ├── guzzle-service-descriptions.rst │ │ ├── using-the-service-builder.rst │ │ └── webservice-client.rst │ ├── phar-stub.php │ ├── phing │ ├── build.properties.dist │ ├── imports │ │ ├── dependencies.xml │ │ └── deploy.xml │ └── tasks │ │ ├── ComposerLintTask.php │ │ ├── GuzzlePearPharPackageTask.php │ │ └── GuzzleSubSplitTask.php │ ├── phpunit.xml.dist │ ├── src │ └── Guzzle │ │ ├── Batch │ │ ├── AbstractBatchDecorator.php │ │ ├── Batch.php │ │ ├── BatchBuilder.php │ │ ├── BatchClosureDivisor.php │ │ ├── BatchClosureTransfer.php │ │ ├── BatchCommandTransfer.php │ │ ├── BatchDivisorInterface.php │ │ ├── BatchInterface.php │ │ ├── BatchRequestTransfer.php │ │ ├── BatchSizeDivisor.php │ │ ├── BatchTransferInterface.php │ │ ├── Exception │ │ │ └── BatchTransferException.php │ │ ├── ExceptionBufferingBatch.php │ │ ├── FlushingBatch.php │ │ ├── HistoryBatch.php │ │ ├── NotifyingBatch.php │ │ └── composer.json │ │ ├── Cache │ │ ├── AbstractCacheAdapter.php │ │ ├── CacheAdapterFactory.php │ │ ├── CacheAdapterInterface.php │ │ ├── ClosureCacheAdapter.php │ │ ├── DoctrineCacheAdapter.php │ │ ├── NullCacheAdapter.php │ │ ├── Zf1CacheAdapter.php │ │ ├── Zf2CacheAdapter.php │ │ └── composer.json │ │ ├── Common │ │ ├── AbstractHasDispatcher.php │ │ ├── Collection.php │ │ ├── Event.php │ │ ├── Exception │ │ │ ├── BadMethodCallException.php │ │ │ ├── ExceptionCollection.php │ │ │ ├── GuzzleException.php │ │ │ ├── InvalidArgumentException.php │ │ │ ├── RuntimeException.php │ │ │ └── UnexpectedValueException.php │ │ ├── FromConfigInterface.php │ │ ├── HasDispatcherInterface.php │ │ ├── ToArrayInterface.php │ │ ├── Version.php │ │ └── composer.json │ │ ├── Http │ │ ├── AbstractEntityBodyDecorator.php │ │ ├── CachingEntityBody.php │ │ ├── Client.php │ │ ├── ClientInterface.php │ │ ├── Curl │ │ │ ├── CurlHandle.php │ │ │ ├── CurlMulti.php │ │ │ ├── CurlMultiInterface.php │ │ │ ├── CurlMultiProxy.php │ │ │ ├── CurlVersion.php │ │ │ └── RequestMediator.php │ │ ├── EntityBody.php │ │ ├── EntityBodyInterface.php │ │ ├── Exception │ │ │ ├── BadResponseException.php │ │ │ ├── ClientErrorResponseException.php │ │ │ ├── CouldNotRewindStreamException.php │ │ │ ├── CurlException.php │ │ │ ├── HttpException.php │ │ │ ├── MultiTransferException.php │ │ │ ├── RequestException.php │ │ │ ├── ServerErrorResponseException.php │ │ │ └── TooManyRedirectsException.php │ │ ├── IoEmittingEntityBody.php │ │ ├── Message │ │ │ ├── AbstractMessage.php │ │ │ ├── EntityEnclosingRequest.php │ │ │ ├── EntityEnclosingRequestInterface.php │ │ │ ├── Header.php │ │ │ ├── Header │ │ │ │ ├── CacheControl.php │ │ │ │ ├── HeaderCollection.php │ │ │ │ ├── HeaderFactory.php │ │ │ │ ├── HeaderFactoryInterface.php │ │ │ │ ├── HeaderInterface.php │ │ │ │ └── Link.php │ │ │ ├── MessageInterface.php │ │ │ ├── PostFile.php │ │ │ ├── PostFileInterface.php │ │ │ ├── Request.php │ │ │ ├── RequestFactory.php │ │ │ ├── RequestFactoryInterface.php │ │ │ ├── RequestInterface.php │ │ │ └── Response.php │ │ ├── Mimetypes.php │ │ ├── QueryAggregator │ │ │ ├── CommaAggregator.php │ │ │ ├── DuplicateAggregator.php │ │ │ ├── PhpAggregator.php │ │ │ └── QueryAggregatorInterface.php │ │ ├── QueryString.php │ │ ├── ReadLimitEntityBody.php │ │ ├── RedirectPlugin.php │ │ ├── Resources │ │ │ └── cacert.pem │ │ ├── StaticClient.php │ │ ├── Url.php │ │ └── composer.json │ │ ├── Inflection │ │ ├── Inflector.php │ │ ├── InflectorInterface.php │ │ ├── MemoizingInflector.php │ │ ├── PreComputedInflector.php │ │ └── composer.json │ │ ├── Iterator │ │ ├── AppendIterator.php │ │ ├── ChunkedIterator.php │ │ ├── FilterIterator.php │ │ ├── MapIterator.php │ │ ├── MethodProxyIterator.php │ │ ├── README.md │ │ └── composer.json │ │ ├── Parser │ │ ├── Cookie │ │ │ ├── CookieParser.php │ │ │ └── CookieParserInterface.php │ │ ├── Message │ │ │ ├── AbstractMessageParser.php │ │ │ ├── MessageParser.php │ │ │ ├── MessageParserInterface.php │ │ │ └── PeclHttpMessageParser.php │ │ ├── ParserRegistry.php │ │ ├── UriTemplate │ │ │ ├── PeclUriTemplate.php │ │ │ ├── UriTemplate.php │ │ │ └── UriTemplateInterface.php │ │ ├── Url │ │ │ ├── UrlParser.php │ │ │ └── UrlParserInterface.php │ │ └── composer.json │ │ ├── Plugin │ │ ├── Async │ │ │ ├── AsyncPlugin.php │ │ │ └── composer.json │ │ ├── Backoff │ │ │ ├── AbstractBackoffStrategy.php │ │ │ ├── AbstractErrorCodeBackoffStrategy.php │ │ │ ├── BackoffLogger.php │ │ │ ├── BackoffPlugin.php │ │ │ ├── BackoffStrategyInterface.php │ │ │ ├── CallbackBackoffStrategy.php │ │ │ ├── ConstantBackoffStrategy.php │ │ │ ├── CurlBackoffStrategy.php │ │ │ ├── ExponentialBackoffStrategy.php │ │ │ ├── HttpBackoffStrategy.php │ │ │ ├── LinearBackoffStrategy.php │ │ │ ├── ReasonPhraseBackoffStrategy.php │ │ │ ├── TruncatedBackoffStrategy.php │ │ │ └── composer.json │ │ ├── Cache │ │ │ ├── CacheKeyProviderInterface.php │ │ │ ├── CachePlugin.php │ │ │ ├── CacheStorageInterface.php │ │ │ ├── CallbackCanCacheStrategy.php │ │ │ ├── CanCacheStrategyInterface.php │ │ │ ├── DefaultCacheKeyProvider.php │ │ │ ├── DefaultCacheStorage.php │ │ │ ├── DefaultCanCacheStrategy.php │ │ │ ├── DefaultRevalidation.php │ │ │ ├── DenyRevalidation.php │ │ │ ├── RevalidationInterface.php │ │ │ ├── SkipRevalidation.php │ │ │ └── composer.json │ │ ├── Cookie │ │ │ ├── Cookie.php │ │ │ ├── CookieJar │ │ │ │ ├── ArrayCookieJar.php │ │ │ │ ├── CookieJarInterface.php │ │ │ │ └── FileCookieJar.php │ │ │ ├── CookiePlugin.php │ │ │ ├── Exception │ │ │ │ └── InvalidCookieException.php │ │ │ └── composer.json │ │ ├── CurlAuth │ │ │ ├── CurlAuthPlugin.php │ │ │ └── composer.json │ │ ├── ErrorResponse │ │ │ ├── ErrorResponseExceptionInterface.php │ │ │ ├── ErrorResponsePlugin.php │ │ │ ├── Exception │ │ │ │ └── ErrorResponseException.php │ │ │ └── composer.json │ │ ├── History │ │ │ ├── HistoryPlugin.php │ │ │ └── composer.json │ │ ├── Md5 │ │ │ ├── CommandContentMd5Plugin.php │ │ │ ├── Md5ValidatorPlugin.php │ │ │ └── composer.json │ │ ├── Mock │ │ │ ├── MockPlugin.php │ │ │ └── composer.json │ │ ├── Oauth │ │ │ ├── OauthPlugin.php │ │ │ └── composer.json │ │ └── composer.json │ │ ├── Service │ │ ├── AbstractConfigLoader.php │ │ ├── Builder │ │ │ ├── ServiceBuilder.php │ │ │ ├── ServiceBuilderInterface.php │ │ │ └── ServiceBuilderLoader.php │ │ ├── CachingConfigLoader.php │ │ ├── Client.php │ │ ├── ClientInterface.php │ │ ├── Command │ │ │ ├── AbstractCommand.php │ │ │ ├── ClosureCommand.php │ │ │ ├── CommandInterface.php │ │ │ ├── CreateResponseClassEvent.php │ │ │ ├── DefaultRequestSerializer.php │ │ │ ├── DefaultResponseParser.php │ │ │ ├── Factory │ │ │ │ ├── AliasFactory.php │ │ │ │ ├── CompositeFactory.php │ │ │ │ ├── ConcreteClassFactory.php │ │ │ │ ├── FactoryInterface.php │ │ │ │ ├── MapFactory.php │ │ │ │ └── ServiceDescriptionFactory.php │ │ │ ├── LocationVisitor │ │ │ │ ├── Request │ │ │ │ │ ├── AbstractRequestVisitor.php │ │ │ │ │ ├── BodyVisitor.php │ │ │ │ │ ├── HeaderVisitor.php │ │ │ │ │ ├── JsonVisitor.php │ │ │ │ │ ├── PostFieldVisitor.php │ │ │ │ │ ├── PostFileVisitor.php │ │ │ │ │ ├── QueryVisitor.php │ │ │ │ │ ├── RequestVisitorInterface.php │ │ │ │ │ ├── ResponseBodyVisitor.php │ │ │ │ │ └── XmlVisitor.php │ │ │ │ ├── Response │ │ │ │ │ ├── AbstractResponseVisitor.php │ │ │ │ │ ├── BodyVisitor.php │ │ │ │ │ ├── HeaderVisitor.php │ │ │ │ │ ├── JsonVisitor.php │ │ │ │ │ ├── ReasonPhraseVisitor.php │ │ │ │ │ ├── ResponseVisitorInterface.php │ │ │ │ │ ├── StatusCodeVisitor.php │ │ │ │ │ └── XmlVisitor.php │ │ │ │ └── VisitorFlyweight.php │ │ │ ├── OperationCommand.php │ │ │ ├── OperationResponseParser.php │ │ │ ├── RequestSerializerInterface.php │ │ │ ├── ResponseClassInterface.php │ │ │ └── ResponseParserInterface.php │ │ ├── ConfigLoaderInterface.php │ │ ├── Description │ │ │ ├── Operation.php │ │ │ ├── OperationInterface.php │ │ │ ├── Parameter.php │ │ │ ├── SchemaFormatter.php │ │ │ ├── SchemaValidator.php │ │ │ ├── ServiceDescription.php │ │ │ ├── ServiceDescriptionInterface.php │ │ │ ├── ServiceDescriptionLoader.php │ │ │ └── ValidatorInterface.php │ │ ├── Exception │ │ │ ├── CommandException.php │ │ │ ├── CommandTransferException.php │ │ │ ├── DescriptionBuilderException.php │ │ │ ├── InconsistentClientTransferException.php │ │ │ ├── ResponseClassException.php │ │ │ ├── ServiceBuilderException.php │ │ │ ├── ServiceNotFoundException.php │ │ │ └── ValidationException.php │ │ ├── Resource │ │ │ ├── AbstractResourceIteratorFactory.php │ │ │ ├── CompositeResourceIteratorFactory.php │ │ │ ├── MapResourceIteratorFactory.php │ │ │ ├── Model.php │ │ │ ├── ResourceIterator.php │ │ │ ├── ResourceIteratorApplyBatched.php │ │ │ ├── ResourceIteratorClassFactory.php │ │ │ ├── ResourceIteratorFactoryInterface.php │ │ │ └── ResourceIteratorInterface.php │ │ └── composer.json │ │ └── Stream │ │ ├── PhpStreamRequestFactory.php │ │ ├── Stream.php │ │ ├── StreamInterface.php │ │ ├── StreamRequestFactoryInterface.php │ │ └── composer.json │ └── tests │ ├── Guzzle │ └── Tests │ │ ├── Batch │ │ ├── AbstractBatchDecoratorTest.php │ │ ├── BatchBuilderTest.php │ │ ├── BatchClosureDivisorTest.php │ │ ├── BatchClosureTransferTest.php │ │ ├── BatchCommandTransferTest.php │ │ ├── BatchRequestTransferTest.php │ │ ├── BatchSizeDivisorTest.php │ │ ├── BatchTest.php │ │ ├── ExceptionBufferingBatchTest.php │ │ ├── FlushingBatchTest.php │ │ ├── HistoryBatchTest.php │ │ └── NotifyingBatchTest.php │ │ ├── Cache │ │ ├── CacheAdapterFactoryTest.php │ │ ├── CacheAdapterTest.php │ │ ├── ClosureCacheAdapterTest.php │ │ ├── NullCacheAdapterTest.php │ │ └── Zf2CacheAdapterTest.php │ │ ├── Common │ │ ├── AbstractHasDispatcherTest.php │ │ ├── CollectionTest.php │ │ ├── EventTest.php │ │ ├── Exception │ │ │ ├── BatchTransferExceptionTest.php │ │ │ └── ExceptionCollectionTest.php │ │ └── VersionTest.php │ │ ├── GuzzleTestCase.php │ │ ├── Http │ │ ├── AbstractEntityBodyDecoratorTest.php │ │ ├── CachingEntityBodyTest.php │ │ ├── ClientTest.php │ │ ├── Curl │ │ │ ├── CurlHandleTest.php │ │ │ ├── CurlMultiProxyTest.php │ │ │ ├── CurlMultiTest.php │ │ │ ├── CurlVersionTest.php │ │ │ └── RequestMediatorTest.php │ │ ├── EntityBodyTest.php │ │ ├── Exception │ │ │ ├── CurlExceptionTest.php │ │ │ ├── ExceptionTest.php │ │ │ └── MultiTransferExceptionTest.php │ │ ├── IoEmittingEntityBodyTest.php │ │ ├── Message │ │ │ ├── AbstractMessageTest.php │ │ │ ├── EntityEnclosingRequestTest.php │ │ │ ├── Header │ │ │ │ ├── HeaderFactoryTest.php │ │ │ │ └── LinkTest.php │ │ │ ├── HeaderComparison.php │ │ │ ├── HeaderComparisonTest.php │ │ │ ├── HeaderTest.php │ │ │ ├── PostFileTest.php │ │ │ ├── RequestFactoryTest.php │ │ │ ├── RequestTest.php │ │ │ └── ResponseTest.php │ │ ├── MimetypesTest.php │ │ ├── QueryAggregator │ │ │ ├── CommaAggregatorTest.php │ │ │ ├── DuplicateAggregatorTest.php │ │ │ └── PhpAggregatorTest.php │ │ ├── QueryStringTest.php │ │ ├── ReadLimitEntityBodyTest.php │ │ ├── RedirectPluginTest.php │ │ ├── Server.php │ │ ├── StaticClientTest.php │ │ ├── UrlTest.php │ │ └── server.js │ │ ├── Inflection │ │ ├── InflectorTest.php │ │ ├── MemoizingInflectorTest.php │ │ └── PreComputedInflectorTest.php │ │ ├── Iterator │ │ ├── AppendIteratorTest.php │ │ ├── ChunkedIteratorTest.php │ │ ├── FilterIteratorTest.php │ │ ├── MapIteratorTest.php │ │ └── MethodProxyIteratorTest.php │ │ ├── Mock │ │ ├── CustomResponseModel.php │ │ ├── ErrorResponseMock.php │ │ ├── ExceptionMock.php │ │ ├── MockMulti.php │ │ ├── MockObserver.php │ │ └── MockSubject.php │ │ ├── Parser │ │ ├── Cookie │ │ │ ├── CookieParserProvider.php │ │ │ └── CookieParserTest.php │ │ ├── Message │ │ │ ├── MessageParserProvider.php │ │ │ ├── MessageParserTest.php │ │ │ └── PeclHttpMessageParserTest.php │ │ ├── ParserRegistryTest.php │ │ └── UriTemplate │ │ │ ├── AbstractUriTemplateTest.php │ │ │ ├── PeclUriTemplateTest.php │ │ │ └── UriTemplateTest.php │ │ ├── Plugin │ │ ├── Async │ │ │ └── AsyncPluginTest.php │ │ ├── Backoff │ │ │ ├── AbstractBackoffStrategyTest.php │ │ │ ├── BackoffLoggerTest.php │ │ │ ├── BackoffPluginTest.php │ │ │ ├── CallbackBackoffStrategyTest.php │ │ │ ├── ConstantBackoffStrategyTest.php │ │ │ ├── CurlBackoffStrategyTest.php │ │ │ ├── ExponentialBackoffStrategyTest.php │ │ │ ├── HttpBackoffStrategyTest.php │ │ │ ├── LinearBackoffStrategyTest.php │ │ │ ├── ReasonPhraseBackoffStrategyTest.php │ │ │ └── TruncatedBackoffStrategyTest.php │ │ ├── Cache │ │ │ ├── CachePluginTest.php │ │ │ ├── CallbackCanCacheStrategyTest.php │ │ │ ├── DefaultCacheStorageTest.php │ │ │ ├── DefaultCanCacheStrategyTest.php │ │ │ ├── DefaultRevalidationTest.php │ │ │ ├── DenyRevalidationTest.php │ │ │ └── SkipRevalidationTest.php │ │ ├── Cookie │ │ │ ├── CookieJar │ │ │ │ ├── ArrayCookieJarTest.php │ │ │ │ └── FileCookieJarTest.php │ │ │ ├── CookiePluginTest.php │ │ │ └── CookieTest.php │ │ ├── CurlAuth │ │ │ └── CurlAuthPluginTest.php │ │ ├── ErrorResponse │ │ │ └── ErrorResponsePluginTest.php │ │ ├── History │ │ │ └── HistoryPluginTest.php │ │ ├── Md5 │ │ │ ├── CommandContentMd5PluginTest.php │ │ │ └── Md5ValidatorPluginTest.php │ │ ├── Mock │ │ │ └── MockPluginTest.php │ │ └── Oauth │ │ │ └── OauthPluginTest.php │ │ ├── Service │ │ ├── AbstractConfigLoaderTest.php │ │ ├── Builder │ │ │ ├── ServiceBuilderLoaderTest.php │ │ │ └── ServiceBuilderTest.php │ │ ├── CachingConfigLoaderTest.php │ │ ├── ClientTest.php │ │ ├── Command │ │ │ ├── AbstractCommandTest.php │ │ │ ├── ClosureCommandTest.php │ │ │ ├── CommandTest.php │ │ │ ├── DefaultRequestSerializerTest.php │ │ │ ├── DefaultResponseParserTest.php │ │ │ ├── Factory │ │ │ │ ├── AliasFactoryTest.php │ │ │ │ ├── CompositeFactoryTest.php │ │ │ │ ├── ConcreteClassFactoryTest.php │ │ │ │ ├── MapFactoryTest.php │ │ │ │ └── ServiceDescriptionFactoryTest.php │ │ │ ├── LocationVisitor │ │ │ │ ├── Request │ │ │ │ │ ├── AbstractVisitorTestCase.php │ │ │ │ │ ├── BodyVisitorTest.php │ │ │ │ │ ├── HeaderVisitorTest.php │ │ │ │ │ ├── JsonVisitorTest.php │ │ │ │ │ ├── PostFieldVisitorTest.php │ │ │ │ │ ├── PostFileVisitorTest.php │ │ │ │ │ ├── QueryVisitorTest.php │ │ │ │ │ ├── ResponseBodyVisitorTest.php │ │ │ │ │ └── XmlVisitorTest.php │ │ │ │ ├── Response │ │ │ │ │ ├── AbstractResponseVisitorTest.php │ │ │ │ │ ├── BodyVisitorTest.php │ │ │ │ │ ├── HeaderVisitorTest.php │ │ │ │ │ ├── JsonVisitorTest.php │ │ │ │ │ ├── ReasonPhraseVisitorTest.php │ │ │ │ │ ├── StatusCodeVisitorTest.php │ │ │ │ │ └── XmlVisitorTest.php │ │ │ │ └── VisitorFlyweightTest.php │ │ │ ├── OperationCommandTest.php │ │ │ └── OperationResponseParserTest.php │ │ ├── Description │ │ │ ├── OperationTest.php │ │ │ ├── ParameterTest.php │ │ │ ├── SchemaFormatterTest.php │ │ │ ├── SchemaValidatorTest.php │ │ │ ├── ServiceDescriptionLoaderTest.php │ │ │ └── ServiceDescriptionTest.php │ │ ├── Exception │ │ │ ├── CommandTransferExceptionTest.php │ │ │ ├── InconsistentClientTransferExceptionTest.php │ │ │ └── ValidationExceptionTest.php │ │ ├── Mock │ │ │ ├── Command │ │ │ │ ├── IterableCommand.php │ │ │ │ ├── MockCommand.php │ │ │ │ ├── OtherCommand.php │ │ │ │ └── Sub │ │ │ │ │ └── Sub.php │ │ │ ├── MockClient.php │ │ │ └── Model │ │ │ │ └── MockCommandIterator.php │ │ └── Resource │ │ │ ├── CompositeResourceIteratorFactoryTest.php │ │ │ ├── MapResourceIteratorFactoryTest.php │ │ │ ├── ModelTest.php │ │ │ ├── ResourceIteratorClassFactoryTest.php │ │ │ └── ResourceIteratorTest.php │ │ ├── Stream │ │ ├── PhpStreamRequestFactoryTest.php │ │ └── StreamTest.php │ │ └── TestData │ │ ├── FileBody.txt │ │ ├── description │ │ ├── bar.json │ │ ├── baz.json │ │ ├── foo.json │ │ └── recursive.json │ │ ├── mock_response │ │ ├── services │ │ ├── json1.json │ │ ├── json2.json │ │ └── services.json │ │ ├── test_service.json │ │ ├── test_service2.json │ │ └── test_service_3.json │ └── bootstrap.php ├── guzzlehttp ├── guzzle │ ├── .travis.yml │ ├── CHANGELOG.md │ ├── LICENSE │ ├── README.md │ ├── UPGRADING.md │ ├── composer.json │ └── src │ │ ├── Client.php │ │ ├── ClientInterface.php │ │ ├── Cookie │ │ ├── CookieJar.php │ │ ├── CookieJarInterface.php │ │ ├── FileCookieJar.php │ │ ├── SessionCookieJar.php │ │ └── SetCookie.php │ │ ├── Exception │ │ ├── BadResponseException.php │ │ ├── ClientException.php │ │ ├── ConnectException.php │ │ ├── GuzzleException.php │ │ ├── RequestException.php │ │ ├── SeekException.php │ │ ├── ServerException.php │ │ ├── TooManyRedirectsException.php │ │ └── TransferException.php │ │ ├── Handler │ │ ├── CurlFactory.php │ │ ├── CurlFactoryInterface.php │ │ ├── CurlHandler.php │ │ ├── CurlMultiHandler.php │ │ ├── EasyHandle.php │ │ ├── MockHandler.php │ │ ├── Proxy.php │ │ └── StreamHandler.php │ │ ├── HandlerStack.php │ │ ├── MessageFormatter.php │ │ ├── Middleware.php │ │ ├── Pool.php │ │ ├── PrepareBodyMiddleware.php │ │ ├── RedirectMiddleware.php │ │ ├── RequestOptions.php │ │ ├── RetryMiddleware.php │ │ ├── TransferStats.php │ │ ├── UriTemplate.php │ │ ├── functions.php │ │ └── functions_include.php ├── promises │ ├── .gitignore │ ├── .travis.yml │ ├── CHANGELOG.md │ ├── LICENSE │ ├── Makefile │ ├── README.md │ ├── composer.json │ ├── phpunit.xml.dist │ ├── src │ │ ├── AggregateException.php │ │ ├── CancellationException.php │ │ ├── EachPromise.php │ │ ├── FulfilledPromise.php │ │ ├── Promise.php │ │ ├── PromiseInterface.php │ │ ├── PromisorInterface.php │ │ ├── RejectedPromise.php │ │ ├── RejectionException.php │ │ ├── TaskQueue.php │ │ ├── functions.php │ │ └── functions_include.php │ └── tests │ │ ├── AggregateExceptionTest.php │ │ ├── EachPromiseTest.php │ │ ├── FulfilledPromiseTest.php │ │ ├── NotPromiseInstance.php │ │ ├── PromiseTest.php │ │ ├── RejectedPromiseTest.php │ │ ├── RejectionExceptionTest.php │ │ ├── TaskQueueTest.php │ │ ├── Thennable.php │ │ ├── bootstrap.php │ │ └── functionsTest.php └── psr7 │ ├── .gitignore │ ├── .travis.yml │ ├── CHANGELOG.md │ ├── LICENSE │ ├── Makefile │ ├── README.md │ ├── composer.json │ ├── phpunit.xml.dist │ ├── src │ ├── AppendStream.php │ ├── BufferStream.php │ ├── CachingStream.php │ ├── DroppingStream.php │ ├── FnStream.php │ ├── InflateStream.php │ ├── LazyOpenStream.php │ ├── LimitStream.php │ ├── MessageTrait.php │ ├── MultipartStream.php │ ├── NoSeekStream.php │ ├── PumpStream.php │ ├── Request.php │ ├── Response.php │ ├── Stream.php │ ├── StreamDecoratorTrait.php │ ├── StreamWrapper.php │ ├── Uri.php │ ├── functions.php │ └── functions_include.php │ └── tests │ ├── AppendStreamTest.php │ ├── BufferStreamTest.php │ ├── CachingStreamTest.php │ ├── DroppingStreamTest.php │ ├── FnStreamTest.php │ ├── FunctionsTest.php │ ├── InflateStreamTest.php │ ├── LazyOpenStreamTest.php │ ├── LimitStreamTest.php │ ├── MultipartStreamTest.php │ ├── NoSeekStreamTest.php │ ├── PumpStreamTest.php │ ├── RequestTest.php │ ├── ResponseTest.php │ ├── StreamDecoratorTraitTest.php │ ├── StreamTest.php │ ├── StreamWrapperTest.php │ ├── UriTest.php │ └── bootstrap.php ├── ircmaxell ├── random-lib │ ├── .gitignore │ ├── .travis.yml │ ├── LICENSE │ ├── README.md │ ├── composer.json │ ├── composer.lock │ ├── lib │ │ └── RandomLib │ │ │ ├── AbstractMixer.php │ │ │ ├── Factory.php │ │ │ ├── Generator.php │ │ │ ├── Mixer.php │ │ │ ├── Mixer │ │ │ └── Hash.php │ │ │ ├── Source.php │ │ │ └── Source │ │ │ ├── CAPICOM.php │ │ │ ├── MTRand.php │ │ │ ├── MicroTime.php │ │ │ ├── OpenSSL.php │ │ │ ├── Rand.php │ │ │ ├── Random.php │ │ │ ├── URandom.php │ │ │ └── UniqID.php │ ├── phpunit.xml.dist │ └── test │ │ ├── Mocks │ │ ├── AbstractMock.php │ │ └── Random │ │ │ ├── Generator.php │ │ │ ├── Mixer.php │ │ │ └── Source.php │ │ ├── Unit │ │ └── RandomLib │ │ │ ├── FactoryTest.php │ │ │ ├── GeneratorStringTest.php │ │ │ ├── GeneratorTest.php │ │ │ ├── Mixer │ │ │ └── HashTest.php │ │ │ └── Source │ │ │ ├── CAPICOMTest.php │ │ │ ├── MTRandTest.php │ │ │ ├── MicroTimeTest.php │ │ │ ├── RandTest.php │ │ │ ├── URandomTest.php │ │ │ └── UniqIDTest.php │ │ ├── Vectors │ │ └── Random │ │ │ └── GeneratorTest.php │ │ └── bootstrap.php └── security-lib │ ├── .gitignore │ ├── README.md │ ├── composer.json │ ├── composer.lock │ ├── lib │ └── SecurityLib │ │ ├── AbstractFactory.php │ │ ├── BaseConverter.php │ │ ├── BigMath.php │ │ ├── BigMath │ │ ├── BCMath.php │ │ ├── GMP.php │ │ └── PHPMath.php │ │ ├── Enum.php │ │ ├── Hash.php │ │ ├── Strength.php │ │ └── composer.json │ ├── phpunit.xml.dist │ └── test │ ├── Mocks │ ├── AbstractMock.php │ ├── Enum.php │ ├── Factory.php │ └── Strength.php │ ├── Unit │ └── Core │ │ ├── AbstractFactoryTest.php │ │ ├── BaseConverterTest.php │ │ ├── BigMath │ │ ├── BCMathTest.php │ │ ├── GMPTest.php │ │ └── PHPMathTest.php │ │ ├── BigMathTest.php │ │ ├── EnumTest.php │ │ └── StrengthTest.php │ └── bootstrap.php ├── knplabs └── github-api │ ├── .editorconfig │ ├── .php_cs │ ├── .styleci.yml │ ├── LICENSE │ ├── README.md │ ├── composer.json │ └── lib │ └── Github │ ├── Api │ ├── AbstractApi.php │ ├── ApiInterface.php │ ├── Authorizations.php │ ├── CurrentUser.php │ ├── CurrentUser │ │ ├── DeployKeys.php │ │ ├── Emails.php │ │ ├── Followers.php │ │ ├── Memberships.php │ │ ├── Notifications.php │ │ ├── Starring.php │ │ └── Watchers.php │ ├── Deployment.php │ ├── Enterprise.php │ ├── Enterprise │ │ ├── License.php │ │ ├── ManagementConsole.php │ │ ├── Stats.php │ │ └── UserAdmin.php │ ├── Gist │ │ └── Comments.php │ ├── Gists.php │ ├── GitData.php │ ├── GitData │ │ ├── Blobs.php │ │ ├── Commits.php │ │ ├── References.php │ │ ├── Tags.php │ │ └── Trees.php │ ├── Issue.php │ ├── Issue │ │ ├── Comments.php │ │ ├── Events.php │ │ ├── Labels.php │ │ └── Milestones.php │ ├── Markdown.php │ ├── Meta.php │ ├── Notification.php │ ├── Organization.php │ ├── Organization │ │ ├── Hooks.php │ │ ├── Members.php │ │ └── Teams.php │ ├── PullRequest.php │ ├── PullRequest │ │ └── Comments.php │ ├── RateLimit.php │ ├── Repo.php │ ├── Repository │ │ ├── Assets.php │ │ ├── Collaborators.php │ │ ├── Comments.php │ │ ├── Commits.php │ │ ├── Contents.php │ │ ├── DeployKeys.php │ │ ├── Downloads.php │ │ ├── Forks.php │ │ ├── Hooks.php │ │ ├── Labels.php │ │ ├── Releases.php │ │ └── Statuses.php │ ├── Search.php │ └── User.php │ ├── Client.php │ ├── Exception │ ├── ApiLimitExceedException.php │ ├── BadMethodCallException.php │ ├── ErrorException.php │ ├── ExceptionInterface.php │ ├── InvalidArgumentException.php │ ├── MissingArgumentException.php │ ├── RuntimeException.php │ ├── TwoFactorAuthenticationRequiredException.php │ └── ValidationFailedException.php │ ├── HttpClient │ ├── Cache │ │ ├── CacheInterface.php │ │ ├── FilesystemCache.php │ │ └── GaufretteCache.php │ ├── CachedHttpClient.php │ ├── HttpClient.php │ ├── HttpClientInterface.php │ ├── Listener │ │ ├── AuthListener.php │ │ └── ErrorListener.php │ └── Message │ │ └── ResponseMediator.php │ ├── ResultPager.php │ └── ResultPagerInterface.php ├── league ├── oauth2-client │ ├── .scrutinizer.yml │ ├── CHANGELOG.md │ ├── CONTRIBUTING.md │ ├── CREDITS.md │ ├── LICENSE │ ├── README.PROVIDER-GUIDE.md │ ├── README.PROVIDERS.md │ ├── README.UPGRADING.md │ ├── README.md │ ├── composer.json │ └── src │ │ ├── Grant │ │ ├── AbstractGrant.php │ │ ├── AuthorizationCode.php │ │ ├── ClientCredentials.php │ │ ├── Exception │ │ │ └── InvalidGrantException.php │ │ ├── GrantFactory.php │ │ ├── Password.php │ │ └── RefreshToken.php │ │ ├── Provider │ │ ├── AbstractProvider.php │ │ ├── Exception │ │ │ └── IdentityProviderException.php │ │ ├── GenericProvider.php │ │ ├── GenericResourceOwner.php │ │ └── ResourceOwnerInterface.php │ │ ├── Token │ │ └── AccessToken.php │ │ └── Tool │ │ ├── BearerAuthorizationTrait.php │ │ ├── MacAuthorizationTrait.php │ │ ├── RequestFactory.php │ │ └── RequiredParameterTrait.php └── oauth2-github │ ├── .gitignore │ ├── .scrutinizer.yml │ ├── .travis.yml │ ├── CHANGELOG.md │ ├── CONTRIBUTING.md │ ├── LICENSE │ ├── README.md │ ├── composer.json │ ├── phpunit.xml │ ├── src │ └── Provider │ │ ├── Github.php │ │ └── GithubResourceOwner.php │ └── test │ └── src │ └── Provider │ └── GithubTest.php ├── psr └── http-message │ ├── LICENSE │ ├── README.md │ ├── composer.json │ └── src │ ├── MessageInterface.php │ ├── RequestInterface.php │ ├── ResponseInterface.php │ ├── ServerRequestInterface.php │ ├── StreamInterface.php │ ├── UploadedFileInterface.php │ └── UriInterface.php └── symfony └── event-dispatcher ├── .gitignore ├── CHANGELOG.md ├── ContainerAwareEventDispatcher.php ├── Debug ├── TraceableEventDispatcher.php ├── TraceableEventDispatcherInterface.php └── WrappedListener.php ├── DependencyInjection └── RegisterListenersPass.php ├── Event.php ├── EventDispatcher.php ├── EventDispatcherInterface.php ├── EventSubscriberInterface.php ├── GenericEvent.php ├── ImmutableEventDispatcher.php ├── LICENSE ├── README.md ├── Tests ├── AbstractEventDispatcherTest.php ├── ContainerAwareEventDispatcherTest.php ├── Debug │ └── TraceableEventDispatcherTest.php ├── DependencyInjection │ └── RegisterListenersPassTest.php ├── EventDispatcherTest.php ├── EventTest.php ├── GenericEventTest.php └── ImmutableEventDispatcherTest.php ├── composer.json └── phpunit.xml.dist /.gitignore: -------------------------------------------------------------------------------- 1 | log 2 | tmp 3 | db/*.sqlite3 4 | nbproject/private 5 | bin 6 | .DS_Store 7 | *.sublime-project 8 | *.sublime-workspace 9 | .sass-cache 10 | wp-content/uploads/* 11 | node_modules 12 | -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "require": { 3 | "knplabs/github-api": "^1.5", 4 | "league/oauth2-github": "^0.2.0" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /readme.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/emersonthis/smashing-mag-wordpress-api-demo/f029d669bfd1ba5c07677b8f717bf9c94720b11a/readme.txt -------------------------------------------------------------------------------- /vendor/autoload.php: -------------------------------------------------------------------------------- 1 | array($vendorDir . '/ircmaxell/security-lib/lib'), 10 | 'RandomLib' => array($vendorDir . '/ircmaxell/random-lib/lib'), 11 | 'Guzzle\\Tests' => array($vendorDir . '/guzzle/guzzle/tests'), 12 | 'Guzzle' => array($vendorDir . '/guzzle/guzzle/src'), 13 | ); 14 | -------------------------------------------------------------------------------- /vendor/composer/autoload_psr4.php: -------------------------------------------------------------------------------- 1 | array($vendorDir . '/symfony/event-dispatcher'), 10 | 'Psr\\Http\\Message\\' => array($vendorDir . '/psr/http-message/src'), 11 | 'League\\OAuth2\\Client\\' => array($vendorDir . '/league/oauth2-client/src', $vendorDir . '/league/oauth2-github/src'), 12 | 'GuzzleHttp\\Psr7\\' => array($vendorDir . '/guzzlehttp/psr7/src'), 13 | 'GuzzleHttp\\Promise\\' => array($vendorDir . '/guzzlehttp/promises/src'), 14 | 'GuzzleHttp\\' => array($vendorDir . '/guzzlehttp/guzzle/src'), 15 | 'Github\\' => array($vendorDir . '/knplabs/github-api/lib/Github'), 16 | ); 17 | -------------------------------------------------------------------------------- /vendor/guzzle/guzzle/.gitignore: -------------------------------------------------------------------------------- 1 | # Ingore common cruft 2 | .DS_STORE 3 | coverage 4 | .idea 5 | 6 | # Ignore binary files 7 | guzzle.phar 8 | guzzle-min.phar 9 | 10 | # Ignore potentially sensitive phpunit file 11 | phpunit.xml 12 | 13 | # Ignore composer generated files 14 | composer.phar 15 | composer.lock 16 | composer-test.lock 17 | vendor/ 18 | 19 | # Ignore build files 20 | build/ 21 | phing/build.properties 22 | 23 | # Ignore subsplit working directory 24 | .subsplit 25 | 26 | docs/_build 27 | docs/*.pyc 28 | -------------------------------------------------------------------------------- /vendor/guzzle/guzzle/.travis.yml: -------------------------------------------------------------------------------- 1 | language: php 2 | 3 | php: 4 | - 5.3 5 | - 5.4 6 | - 5.5 7 | - 5.6 8 | - hhvm 9 | 10 | before_script: 11 | - curl --version 12 | - pecl install uri_template-beta || echo "pecl uri_template not available" 13 | - composer self-update 14 | - composer install --no-interaction --prefer-source --dev 15 | - ~/.nvm/nvm.sh install v0.6.14 16 | 17 | script: composer test 18 | -------------------------------------------------------------------------------- /vendor/guzzle/guzzle/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2011 Michael Dowling, https://github.com/mtdowling 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /vendor/guzzle/guzzle/docs/_static/guzzle-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/emersonthis/smashing-mag-wordpress-api-demo/f029d669bfd1ba5c07677b8f717bf9c94720b11a/vendor/guzzle/guzzle/docs/_static/guzzle-icon.png -------------------------------------------------------------------------------- /vendor/guzzle/guzzle/docs/_static/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/emersonthis/smashing-mag-wordpress-api-demo/f029d669bfd1ba5c07677b8f717bf9c94720b11a/vendor/guzzle/guzzle/docs/_static/logo.png -------------------------------------------------------------------------------- /vendor/guzzle/guzzle/docs/_static/prettify.css: -------------------------------------------------------------------------------- 1 | .com { 2 | color: #93A1A1; 3 | } 4 | .lit { 5 | color: #195F91; 6 | } 7 | .pun, .opn, .clo { 8 | color: #93A1A1; 9 | } 10 | .fun { 11 | color: #DC322F; 12 | } 13 | .str, .atv { 14 | color: #DD1144; 15 | } 16 | .kwd, .linenums .tag { 17 | color: #1E347B; 18 | } 19 | .typ, .atn, .dec, .var { 20 | color: teal; 21 | } 22 | .pln { 23 | color: #48484C; 24 | } 25 | .prettyprint { 26 | background-color: #F7F7F9; 27 | border: 1px solid #E1E1E8; 28 | padding: 8px; 29 | } 30 | .prettyprint.linenums { 31 | box-shadow: 40px 0 0 #FBFBFC inset, 41px 0 0 #ECECF0 inset; 32 | } 33 | ol.linenums { 34 | margin: 0 0 0 33px; 35 | } 36 | ol.linenums li { 37 | color: #BEBEC5; 38 | line-height: 18px; 39 | padding-left: 12px; 40 | text-shadow: 0 1px 0 #FFFFFF; 41 | } 42 | -------------------------------------------------------------------------------- /vendor/guzzle/guzzle/docs/_templates/leftbar.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/emersonthis/smashing-mag-wordpress-api-demo/f029d669bfd1ba5c07677b8f717bf9c94720b11a/vendor/guzzle/guzzle/docs/_templates/leftbar.html -------------------------------------------------------------------------------- /vendor/guzzle/guzzle/docs/_templates/nav_links.html: -------------------------------------------------------------------------------- 1 |
  • Docs
  • 2 |
  • API
  • 3 |
  • GitHub
  • 4 |
  • Forum
  • 5 |
  • IRC
  • 6 | -------------------------------------------------------------------------------- /vendor/guzzle/guzzle/docs/index.rst: -------------------------------------------------------------------------------- 1 | .. title:: Guzzle | PHP HTTP client and framework for consuming RESTful web services 2 | .. toctree:: 3 | :hidden: 4 | 5 | docs.rst 6 | -------------------------------------------------------------------------------- /vendor/guzzle/guzzle/docs/plugins/async-plugin.rst: -------------------------------------------------------------------------------- 1 | ============ 2 | Async plugin 3 | ============ 4 | 5 | The AsyncPlugin allows you to send requests that do not wait on a response. This is handled through cURL by utilizing 6 | the progress event. When a request has sent all of its data to the remote server, Guzzle adds a 1ms timeout on the 7 | request and instructs cURL to not download the body of the response. The async plugin then catches the exception and 8 | adds a mock response to the request, along with an X-Guzzle-Async header to let you know that the response was not 9 | fully downloaded. 10 | 11 | .. code-block:: php 12 | 13 | use Guzzle\Http\Client; 14 | use Guzzle\Plugin\Async\AsyncPlugin; 15 | 16 | $client = new Client('http://www.example.com'); 17 | $client->addSubscriber(new AsyncPlugin()); 18 | $response = $client->get()->send(); 19 | -------------------------------------------------------------------------------- /vendor/guzzle/guzzle/docs/plugins/backoff-plugin.rst: -------------------------------------------------------------------------------- 1 | ==================== 2 | Backoff retry plugin 3 | ==================== 4 | 5 | The ``Guzzle\Plugin\Backoff\BackoffPlugin`` automatically retries failed HTTP requests using custom backoff strategies: 6 | 7 | .. code-block:: php 8 | 9 | use Guzzle\Http\Client; 10 | use Guzzle\Plugin\Backoff\BackoffPlugin; 11 | 12 | $client = new Client('http://www.test.com/'); 13 | // Use a static factory method to get a backoff plugin using the exponential backoff strategy 14 | $backoffPlugin = BackoffPlugin::getExponentialBackoff(); 15 | 16 | // Add the backoff plugin to the client object 17 | $client->addSubscriber($backoffPlugin); 18 | 19 | The BackoffPlugin's constructor accepts a ``Guzzle\Plugin\Backoff\BackoffStrategyInterface`` object that is used to 20 | determine when a retry should be issued and how long to delay between retries. The above code example shows how to 21 | attach a BackoffPlugin to a client that is pre-configured to retry failed 500 and 503 responses using truncated 22 | exponential backoff (emulating the behavior of Guzzle 2's ExponentialBackoffPlugin). 23 | -------------------------------------------------------------------------------- /vendor/guzzle/guzzle/docs/plugins/history-plugin.rst: -------------------------------------------------------------------------------- 1 | ============== 2 | History plugin 3 | ============== 4 | 5 | The history plugin tracks all of the requests and responses sent through a request or client. This plugin can be 6 | useful for crawling or unit testing. By default, the history plugin stores up to 10 requests and responses. 7 | 8 | .. code-block:: php 9 | 10 | use Guzzle\Http\Client; 11 | use Guzzle\Plugin\History\HistoryPlugin; 12 | 13 | $client = new Client('http://www.test.com/'); 14 | 15 | // Add the history plugin to the client object 16 | $history = new HistoryPlugin(); 17 | $history->setLimit(5); 18 | $client->addSubscriber($history); 19 | 20 | $client->get('http://www.yahoo.com/')->send(); 21 | 22 | echo $history->getLastRequest(); 23 | echo $history->getLastResponse(); 24 | echo count($history); 25 | -------------------------------------------------------------------------------- /vendor/guzzle/guzzle/docs/plugins/mock-plugin.rst: -------------------------------------------------------------------------------- 1 | =========== 2 | Mock plugin 3 | =========== 4 | 5 | The mock plugin is useful for testing Guzzle clients. The mock plugin allows you to queue an array of responses that 6 | will satisfy requests sent from a client by consuming the request queue in FIFO order. 7 | 8 | .. code-block:: php 9 | 10 | use Guzzle\Http\Client; 11 | use Guzzle\Plugin\Mock\MockPlugin; 12 | use Guzzle\Http\Message\Response; 13 | 14 | $client = new Client('http://www.test.com/'); 15 | 16 | $mock = new MockPlugin(); 17 | $mock->addResponse(new Response(200)) 18 | ->addResponse(new Response(404)); 19 | 20 | // Add the mock plugin to the client object 21 | $client->addSubscriber($mock); 22 | 23 | // The following request will receive a 200 response from the plugin 24 | $client->get('http://www.example.com/')->send(); 25 | 26 | // The following request will receive a 404 response from the plugin 27 | $client->get('http://www.test.com/')->send(); 28 | -------------------------------------------------------------------------------- /vendor/guzzle/guzzle/docs/plugins/plugins-list.rst.inc: -------------------------------------------------------------------------------- 1 | * :doc:`/plugins/async-plugin` 2 | * :doc:`/plugins/backoff-plugin` 3 | * :doc:`/plugins/cache-plugin` 4 | * :doc:`/plugins/cookie-plugin` 5 | * :doc:`/plugins/history-plugin` 6 | * :doc:`/plugins/log-plugin` 7 | * :doc:`/plugins/md5-validator-plugin` 8 | * :doc:`/plugins/mock-plugin` 9 | * :doc:`/plugins/oauth-plugin` 10 | -------------------------------------------------------------------------------- /vendor/guzzle/guzzle/docs/requirements.txt: -------------------------------------------------------------------------------- 1 | Sphinx>=1.2b1 2 | guzzle_sphinx_theme>=0.5.0 3 | -------------------------------------------------------------------------------- /vendor/guzzle/guzzle/phar-stub.php: -------------------------------------------------------------------------------- 1 | registerNamespaces(array( 9 | 'Guzzle' => 'phar://guzzle.phar/src', 10 | 'Symfony\\Component\\EventDispatcher' => 'phar://guzzle.phar/vendor/symfony/event-dispatcher', 11 | 'Doctrine' => 'phar://guzzle.phar/vendor/doctrine/common/lib', 12 | 'Monolog' => 'phar://guzzle.phar/vendor/monolog/monolog/src' 13 | )); 14 | $classLoader->register(); 15 | 16 | __HALT_COMPILER(); 17 | -------------------------------------------------------------------------------- /vendor/guzzle/guzzle/phing/build.properties.dist: -------------------------------------------------------------------------------- 1 | # you may need to update this if you're working on a fork. 2 | guzzle.remote=git@github.com:guzzle/guzzle.git 3 | 4 | # github credentials -- only used by GitHub API calls to create subtree repos 5 | github.basicauth=username:password 6 | # for the subtree split and testing 7 | github.org=guzzle 8 | 9 | # your git path 10 | cmd.git=git 11 | 12 | # your composer command 13 | cmd.composer=composer 14 | 15 | # test server start 16 | cmd.testserver=node 17 | -------------------------------------------------------------------------------- /vendor/guzzle/guzzle/src/Guzzle/Batch/BatchDivisorInterface.php: -------------------------------------------------------------------------------- 1 | size = $size; 17 | } 18 | 19 | /** 20 | * Set the size of each batch 21 | * 22 | * @param int $size Size of each batch 23 | * 24 | * @return BatchSizeDivisor 25 | */ 26 | public function setSize($size) 27 | { 28 | $this->size = $size; 29 | 30 | return $this; 31 | } 32 | 33 | /** 34 | * Get the size of each batch 35 | * 36 | * @return int 37 | */ 38 | public function getSize() 39 | { 40 | return $this->size; 41 | } 42 | 43 | public function createBatches(\SplQueue $queue) 44 | { 45 | return array_chunk(iterator_to_array($queue, false), $this->size); 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /vendor/guzzle/guzzle/src/Guzzle/Batch/BatchTransferInterface.php: -------------------------------------------------------------------------------- 1 | history[] = $item; 17 | $this->decoratedBatch->add($item); 18 | 19 | return $this; 20 | } 21 | 22 | /** 23 | * Get the batch history 24 | * 25 | * @return array 26 | */ 27 | public function getHistory() 28 | { 29 | return $this->history; 30 | } 31 | 32 | /** 33 | * Clear the batch history 34 | */ 35 | public function clearHistory() 36 | { 37 | $this->history = array(); 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /vendor/guzzle/guzzle/src/Guzzle/Batch/NotifyingBatch.php: -------------------------------------------------------------------------------- 1 | callable = $callable; 28 | parent::__construct($decoratedBatch); 29 | } 30 | 31 | public function flush() 32 | { 33 | $items = $this->decoratedBatch->flush(); 34 | call_user_func($this->callable, $items); 35 | 36 | return $items; 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /vendor/guzzle/guzzle/src/Guzzle/Batch/composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "guzzle/batch", 3 | "description": "Guzzle batch component for batching requests, commands, or custom transfers", 4 | "homepage": "http://guzzlephp.org/", 5 | "keywords": ["batch", "HTTP", "REST", "guzzle"], 6 | "license": "MIT", 7 | "authors": [ 8 | { 9 | "name": "Michael Dowling", 10 | "email": "mtdowling@gmail.com", 11 | "homepage": "https://github.com/mtdowling" 12 | } 13 | ], 14 | "require": { 15 | "php": ">=5.3.2", 16 | "guzzle/common": "self.version" 17 | }, 18 | "autoload": { 19 | "psr-0": { "Guzzle\\Batch": "" } 20 | }, 21 | "suggest": { 22 | "guzzle/http": "self.version", 23 | "guzzle/service": "self.version" 24 | }, 25 | "target-dir": "Guzzle/Batch", 26 | "extra": { 27 | "branch-alias": { 28 | "dev-master": "3.7-dev" 29 | } 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /vendor/guzzle/guzzle/src/Guzzle/Cache/AbstractCacheAdapter.php: -------------------------------------------------------------------------------- 1 | cache; 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /vendor/guzzle/guzzle/src/Guzzle/Cache/DoctrineCacheAdapter.php: -------------------------------------------------------------------------------- 1 | cache = $cache; 20 | } 21 | 22 | public function contains($id, array $options = null) 23 | { 24 | return $this->cache->contains($id); 25 | } 26 | 27 | public function delete($id, array $options = null) 28 | { 29 | return $this->cache->delete($id); 30 | } 31 | 32 | public function fetch($id, array $options = null) 33 | { 34 | return $this->cache->fetch($id); 35 | } 36 | 37 | public function save($id, $data, $lifeTime = false, array $options = null) 38 | { 39 | return $this->cache->save($id, $data, $lifeTime !== false ? $lifeTime : 0); 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /vendor/guzzle/guzzle/src/Guzzle/Cache/NullCacheAdapter.php: -------------------------------------------------------------------------------- 1 | cache = $cache; 20 | } 21 | 22 | public function contains($id, array $options = null) 23 | { 24 | return $this->cache->hasItem($id); 25 | } 26 | 27 | public function delete($id, array $options = null) 28 | { 29 | return $this->cache->removeItem($id); 30 | } 31 | 32 | public function fetch($id, array $options = null) 33 | { 34 | return $this->cache->getItem($id); 35 | } 36 | 37 | public function save($id, $data, $lifeTime = false, array $options = null) 38 | { 39 | return $this->cache->setItem($id, $data); 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /vendor/guzzle/guzzle/src/Guzzle/Cache/composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "guzzle/cache", 3 | "description": "Guzzle cache adapter component", 4 | "homepage": "http://guzzlephp.org/", 5 | "keywords": ["cache", "adapter", "zf", "doctrine", "guzzle"], 6 | "license": "MIT", 7 | "authors": [ 8 | { 9 | "name": "Michael Dowling", 10 | "email": "mtdowling@gmail.com", 11 | "homepage": "https://github.com/mtdowling" 12 | } 13 | ], 14 | "require": { 15 | "php": ">=5.3.2", 16 | "guzzle/common": "self.version" 17 | }, 18 | "autoload": { 19 | "psr-0": { "Guzzle\\Cache": "" } 20 | }, 21 | "target-dir": "Guzzle/Cache", 22 | "extra": { 23 | "branch-alias": { 24 | "dev-master": "3.7-dev" 25 | } 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /vendor/guzzle/guzzle/src/Guzzle/Common/Exception/BadMethodCallException.php: -------------------------------------------------------------------------------- 1 | =5.3.2", 9 | "symfony/event-dispatcher": ">=2.1" 10 | }, 11 | "autoload": { 12 | "psr-0": { "Guzzle\\Common": "" } 13 | }, 14 | "target-dir": "Guzzle/Common", 15 | "extra": { 16 | "branch-alias": { 17 | "dev-master": "3.7-dev" 18 | } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /vendor/guzzle/guzzle/src/Guzzle/Http/Exception/ClientErrorResponseException.php: -------------------------------------------------------------------------------- 1 | request = $request; 26 | 27 | return $this; 28 | } 29 | 30 | /** 31 | * Get the request that caused the exception 32 | * 33 | * @return RequestInterface 34 | */ 35 | public function getRequest() 36 | { 37 | return $this->request; 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /vendor/guzzle/guzzle/src/Guzzle/Http/Exception/ServerErrorResponseException.php: -------------------------------------------------------------------------------- 1 | 'Guzzle\Http\Message\Header\CacheControl', 15 | 'link' => 'Guzzle\Http\Message\Header\Link', 16 | ); 17 | 18 | public function createHeader($header, $value = null) 19 | { 20 | $lowercase = strtolower($header); 21 | 22 | return isset($this->mapping[$lowercase]) 23 | ? new $this->mapping[$lowercase]($header, $value) 24 | : new Header($header, $value); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /vendor/guzzle/guzzle/src/Guzzle/Http/Message/Header/HeaderFactoryInterface.php: -------------------------------------------------------------------------------- 1 | isUrlEncoding()) { 15 | return array($query->encodeValue($key) => implode(',', array_map(array($query, 'encodeValue'), $value))); 16 | } else { 17 | return array($key => implode(',', $value)); 18 | } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /vendor/guzzle/guzzle/src/Guzzle/Http/QueryAggregator/DuplicateAggregator.php: -------------------------------------------------------------------------------- 1 | isUrlEncoding()) { 17 | return array($query->encodeValue($key) => array_map(array($query, 'encodeValue'), $value)); 18 | } else { 19 | return array($key => $value); 20 | } 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /vendor/guzzle/guzzle/src/Guzzle/Http/QueryAggregator/PhpAggregator.php: -------------------------------------------------------------------------------- 1 | $v) { 17 | $k = "{$key}[{$k}]"; 18 | if (is_array($v)) { 19 | $ret = array_merge($ret, self::aggregate($k, $v, $query)); 20 | } else { 21 | $ret[$query->encodeValue($k)] = $query->encodeValue($v); 22 | } 23 | } 24 | 25 | return $ret; 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /vendor/guzzle/guzzle/src/Guzzle/Http/QueryAggregator/QueryAggregatorInterface.php: -------------------------------------------------------------------------------- 1 | =5.3.2", 16 | "guzzle/common": "self.version", 17 | "guzzle/parser": "self.version", 18 | "guzzle/stream": "self.version" 19 | }, 20 | "suggest": { 21 | "ext-curl": "*" 22 | }, 23 | "autoload": { 24 | "psr-0": { "Guzzle\\Http": "" } 25 | }, 26 | "target-dir": "Guzzle/Http", 27 | "extra": { 28 | "branch-alias": { 29 | "dev-master": "3.7-dev" 30 | } 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /vendor/guzzle/guzzle/src/Guzzle/Inflection/Inflector.php: -------------------------------------------------------------------------------- 1 | =5.3.2" 16 | }, 17 | "autoload": { 18 | "psr-0": { "Guzzle\\Inflection": "" } 19 | }, 20 | "target-dir": "Guzzle/Inflection", 21 | "extra": { 22 | "branch-alias": { 23 | "dev-master": "3.7-dev" 24 | } 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /vendor/guzzle/guzzle/src/Guzzle/Iterator/AppendIterator.php: -------------------------------------------------------------------------------- 1 | getArrayIterator()->append($iterator); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /vendor/guzzle/guzzle/src/Guzzle/Iterator/FilterIterator.php: -------------------------------------------------------------------------------- 1 | callback = $callback; 30 | } 31 | 32 | public function accept() 33 | { 34 | return call_user_func($this->callback, $this->current()); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /vendor/guzzle/guzzle/src/Guzzle/Iterator/MapIterator.php: -------------------------------------------------------------------------------- 1 | callback = $callback; 28 | } 29 | 30 | public function current() 31 | { 32 | return call_user_func($this->callback, parent::current()); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /vendor/guzzle/guzzle/src/Guzzle/Iterator/MethodProxyIterator.php: -------------------------------------------------------------------------------- 1 | getInnerIterator(); 21 | while ($i instanceof \OuterIterator) { 22 | $i = $i->getInnerIterator(); 23 | } 24 | 25 | return call_user_func_array(array($i, $name), $args); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /vendor/guzzle/guzzle/src/Guzzle/Iterator/README.md: -------------------------------------------------------------------------------- 1 | Guzzle Iterator 2 | =============== 3 | 4 | Provides useful Iterators and Iterator decorators 5 | 6 | - ChunkedIterator: Pulls out chunks from an inner iterator and yields the chunks as arrays 7 | - FilterIterator: Used when PHP 5.4's CallbackFilterIterator is not available 8 | - MapIterator: Maps values before yielding 9 | - MethodProxyIterator: Proxies missing method calls to the innermost iterator 10 | 11 | ### Installing via Composer 12 | 13 | ```bash 14 | # Install Composer 15 | curl -sS https://getcomposer.org/installer | php 16 | 17 | # Add Guzzle as a dependency 18 | php composer.phar require guzzle/iterator:~3.0 19 | ``` 20 | 21 | After installing, you need to require Composer's autoloader: 22 | 23 | ```php 24 | require 'vendor/autoload.php'; 25 | ``` 26 | -------------------------------------------------------------------------------- /vendor/guzzle/guzzle/src/Guzzle/Iterator/composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "guzzle/iterator", 3 | "description": "Provides helpful iterators and iterator decorators", 4 | "keywords": ["iterator", "guzzle"], 5 | "homepage": "http://guzzlephp.org/", 6 | "license": "MIT", 7 | "authors": [ 8 | { 9 | "name": "Michael Dowling", 10 | "email": "mtdowling@gmail.com", 11 | "homepage": "https://github.com/mtdowling" 12 | } 13 | ], 14 | "require": { 15 | "php": ">=5.3.2", 16 | "guzzle/common": ">=2.8.0" 17 | }, 18 | "autoload": { 19 | "psr-0": { "Guzzle\\Iterator": "/" } 20 | }, 21 | "target-dir": "Guzzle/Iterator", 22 | "extra": { 23 | "branch-alias": { 24 | "dev-master": "3.7-dev" 25 | } 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /vendor/guzzle/guzzle/src/Guzzle/Parser/Message/MessageParserInterface.php: -------------------------------------------------------------------------------- 1 | =5.3.2" 9 | }, 10 | "autoload": { 11 | "psr-0": { "Guzzle\\Parser": "" } 12 | }, 13 | "target-dir": "Guzzle/Parser", 14 | "extra": { 15 | "branch-alias": { 16 | "dev-master": "3.7-dev" 17 | } 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /vendor/guzzle/guzzle/src/Guzzle/Plugin/Async/composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "guzzle/plugin-async", 3 | "description": "Guzzle async request plugin", 4 | "homepage": "http://guzzlephp.org/", 5 | "keywords": ["plugin", "guzzle"], 6 | "license": "MIT", 7 | "authors": [ 8 | { 9 | "name": "Michael Dowling", 10 | "email": "mtdowling@gmail.com", 11 | "homepage": "https://github.com/mtdowling" 12 | } 13 | ], 14 | "require": { 15 | "php": ">=5.3.2", 16 | "guzzle/http": "self.version" 17 | }, 18 | "autoload": { 19 | "psr-0": { "Guzzle\\Plugin\\Async": "" } 20 | }, 21 | "target-dir": "Guzzle/Plugin/Async", 22 | "extra": { 23 | "branch-alias": { 24 | "dev-master": "3.7-dev" 25 | } 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /vendor/guzzle/guzzle/src/Guzzle/Plugin/Backoff/BackoffStrategyInterface.php: -------------------------------------------------------------------------------- 1 | delay = $delay; 23 | } 24 | 25 | public function makesDecision() 26 | { 27 | return false; 28 | } 29 | 30 | protected function getDelay($retries, RequestInterface $request, Response $response = null, HttpException $e = null) 31 | { 32 | return $this->delay; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /vendor/guzzle/guzzle/src/Guzzle/Plugin/Backoff/CurlBackoffStrategy.php: -------------------------------------------------------------------------------- 1 | errorCodes[$e->getErrorNo()]) ? true : null; 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /vendor/guzzle/guzzle/src/Guzzle/Plugin/Backoff/ExponentialBackoffStrategy.php: -------------------------------------------------------------------------------- 1 | isSuccessful()) { 24 | return false; 25 | } else { 26 | return isset($this->errorCodes[$response->getStatusCode()]) ? true : null; 27 | } 28 | } 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /vendor/guzzle/guzzle/src/Guzzle/Plugin/Backoff/LinearBackoffStrategy.php: -------------------------------------------------------------------------------- 1 | step = $step; 25 | } 26 | 27 | public function makesDecision() 28 | { 29 | return false; 30 | } 31 | 32 | protected function getDelay($retries, RequestInterface $request, Response $response = null, HttpException $e = null) 33 | { 34 | return $retries * $this->step; 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /vendor/guzzle/guzzle/src/Guzzle/Plugin/Backoff/ReasonPhraseBackoffStrategy.php: -------------------------------------------------------------------------------- 1 | errorCodes[$response->getReasonPhrase()]) ? true : null; 23 | } 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /vendor/guzzle/guzzle/src/Guzzle/Plugin/Backoff/TruncatedBackoffStrategy.php: -------------------------------------------------------------------------------- 1 | max = $maxRetries; 24 | $this->next = $next; 25 | } 26 | 27 | public function makesDecision() 28 | { 29 | return true; 30 | } 31 | 32 | protected function getDelay($retries, RequestInterface $request, Response $response = null, HttpException $e = null) 33 | { 34 | return $retries < $this->max ? null : false; 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /vendor/guzzle/guzzle/src/Guzzle/Plugin/Backoff/composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "guzzle/plugin-backoff", 3 | "description": "Guzzle backoff retry plugins", 4 | "homepage": "http://guzzlephp.org/", 5 | "keywords": ["plugin", "guzzle"], 6 | "license": "MIT", 7 | "authors": [ 8 | { 9 | "name": "Michael Dowling", 10 | "email": "mtdowling@gmail.com", 11 | "homepage": "https://github.com/mtdowling" 12 | } 13 | ], 14 | "require": { 15 | "php": ">=5.3.2", 16 | "guzzle/http": "self.version", 17 | "guzzle/log": "self.version" 18 | }, 19 | "autoload": { 20 | "psr-0": { "Guzzle\\Plugin\\Backoff": "" } 21 | }, 22 | "target-dir": "Guzzle/Plugin/Backoff", 23 | "extra": { 24 | "branch-alias": { 25 | "dev-master": "3.7-dev" 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /vendor/guzzle/guzzle/src/Guzzle/Plugin/Cache/CacheKeyProviderInterface.php: -------------------------------------------------------------------------------- 1 | getMethod() != RequestInterface::GET && $request->getMethod() != RequestInterface::HEAD) { 17 | return false; 18 | } 19 | 20 | // Never cache requests when using no-store 21 | if ($request->hasHeader('Cache-Control') && $request->getHeader('Cache-Control')->hasDirective('no-store')) { 22 | return false; 23 | } 24 | 25 | return true; 26 | } 27 | 28 | public function canCacheResponse(Response $response) 29 | { 30 | return $response->isSuccessful() && $response->canCache(); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /vendor/guzzle/guzzle/src/Guzzle/Plugin/Cache/DenyRevalidation.php: -------------------------------------------------------------------------------- 1 | =5.3.2", 16 | "guzzle/http": "self.version", 17 | "guzzle/cache": "self.version" 18 | }, 19 | "autoload": { 20 | "psr-0": { "Guzzle\\Plugin\\Cache": "" } 21 | }, 22 | "target-dir": "Guzzle/Plugin/Cache", 23 | "extra": { 24 | "branch-alias": { 25 | "dev-master": "3.7-dev" 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /vendor/guzzle/guzzle/src/Guzzle/Plugin/Cookie/Exception/InvalidCookieException.php: -------------------------------------------------------------------------------- 1 | =5.3.2", 16 | "guzzle/http": "self.version" 17 | }, 18 | "autoload": { 19 | "psr-0": { "Guzzle\\Plugin\\Cookie": "" } 20 | }, 21 | "target-dir": "Guzzle/Plugin/Cookie", 22 | "extra": { 23 | "branch-alias": { 24 | "dev-master": "3.7-dev" 25 | } 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /vendor/guzzle/guzzle/src/Guzzle/Plugin/CurlAuth/composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "guzzle/plugin-curlauth", 3 | "description": "Guzzle cURL authorization plugin", 4 | "homepage": "http://guzzlephp.org/", 5 | "keywords": ["plugin", "curl", "guzzle"], 6 | "license": "MIT", 7 | "authors": [ 8 | { 9 | "name": "Michael Dowling", 10 | "email": "mtdowling@gmail.com", 11 | "homepage": "https://github.com/mtdowling" 12 | } 13 | ], 14 | "require": { 15 | "php": ">=5.3.2", 16 | "guzzle/http": "self.version" 17 | }, 18 | "autoload": { 19 | "psr-0": { "Guzzle\\Plugin\\CurlAuth": "" } 20 | }, 21 | "target-dir": "Guzzle/Plugin/CurlAuth", 22 | "extra": { 23 | "branch-alias": { 24 | "dev-master": "3.7-dev" 25 | } 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /vendor/guzzle/guzzle/src/Guzzle/Plugin/ErrorResponse/ErrorResponseExceptionInterface.php: -------------------------------------------------------------------------------- 1 | =5.3.2", 16 | "guzzle/service": "self.version" 17 | }, 18 | "autoload": { 19 | "psr-0": { "Guzzle\\Plugin\\ErrorResponse": "" } 20 | }, 21 | "target-dir": "Guzzle/Plugin/ErrorResponse", 22 | "extra": { 23 | "branch-alias": { 24 | "dev-master": "3.7-dev" 25 | } 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /vendor/guzzle/guzzle/src/Guzzle/Plugin/History/composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "guzzle/plugin-history", 3 | "description": "Guzzle history plugin", 4 | "homepage": "http://guzzlephp.org/", 5 | "keywords": ["plugin", "guzzle"], 6 | "license": "MIT", 7 | "authors": [ 8 | { 9 | "name": "Michael Dowling", 10 | "email": "mtdowling@gmail.com", 11 | "homepage": "https://github.com/mtdowling" 12 | } 13 | ], 14 | "require": { 15 | "php": ">=5.3.2", 16 | "guzzle/http": "self.version" 17 | }, 18 | "autoload": { 19 | "psr-0": { "Guzzle\\Plugin\\History": "" } 20 | }, 21 | "target-dir": "Guzzle/Plugin/History", 22 | "extra": { 23 | "branch-alias": { 24 | "dev-master": "3.7-dev" 25 | } 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /vendor/guzzle/guzzle/src/Guzzle/Plugin/Md5/composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "guzzle/plugin-md5", 3 | "description": "Guzzle MD5 plugins", 4 | "homepage": "http://guzzlephp.org/", 5 | "keywords": ["plugin", "guzzle"], 6 | "license": "MIT", 7 | "authors": [ 8 | { 9 | "name": "Michael Dowling", 10 | "email": "mtdowling@gmail.com", 11 | "homepage": "https://github.com/mtdowling" 12 | } 13 | ], 14 | "require": { 15 | "php": ">=5.3.2", 16 | "guzzle/http": "self.version" 17 | }, 18 | "autoload": { 19 | "psr-0": { "Guzzle\\Plugin\\Md5": "" } 20 | }, 21 | "target-dir": "Guzzle/Plugin/Md5", 22 | "extra": { 23 | "branch-alias": { 24 | "dev-master": "3.7-dev" 25 | } 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /vendor/guzzle/guzzle/src/Guzzle/Plugin/Mock/composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "guzzle/plugin-mock", 3 | "description": "Guzzle Mock plugin", 4 | "homepage": "http://guzzlephp.org/", 5 | "keywords": ["mock", "plugin", "guzzle"], 6 | "license": "MIT", 7 | "authors": [ 8 | { 9 | "name": "Michael Dowling", 10 | "email": "mtdowling@gmail.com", 11 | "homepage": "https://github.com/mtdowling" 12 | } 13 | ], 14 | "require": { 15 | "php": ">=5.3.2", 16 | "guzzle/http": "self.version" 17 | }, 18 | "autoload": { 19 | "psr-0": { "Guzzle\\Plugin\\Mock": "" } 20 | }, 21 | "target-dir": "Guzzle/Plugin/Mock", 22 | "extra": { 23 | "branch-alias": { 24 | "dev-master": "3.7-dev" 25 | } 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /vendor/guzzle/guzzle/src/Guzzle/Plugin/Oauth/composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "guzzle/plugin-oauth", 3 | "description": "Guzzle OAuth plugin", 4 | "homepage": "http://guzzlephp.org/", 5 | "keywords": ["oauth", "plugin", "guzzle"], 6 | "license": "MIT", 7 | "authors": [ 8 | { 9 | "name": "Michael Dowling", 10 | "email": "mtdowling@gmail.com", 11 | "homepage": "https://github.com/mtdowling" 12 | } 13 | ], 14 | "require": { 15 | "php": ">=5.3.2", 16 | "guzzle/http": "self.version" 17 | }, 18 | "autoload": { 19 | "psr-0": { "Guzzle\\Plugin\\Oauth": "" } 20 | }, 21 | "target-dir": "Guzzle/Plugin/Oauth", 22 | "extra": { 23 | "branch-alias": { 24 | "dev-master": "3.7-dev" 25 | } 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /vendor/guzzle/guzzle/src/Guzzle/Service/Command/CreateResponseClassEvent.php: -------------------------------------------------------------------------------- 1 | stopPropagation(); 21 | } 22 | 23 | /** 24 | * Get the created object 25 | * 26 | * @return mixed 27 | */ 28 | public function getResult() 29 | { 30 | return $this['result']; 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /vendor/guzzle/guzzle/src/Guzzle/Service/Command/Factory/FactoryInterface.php: -------------------------------------------------------------------------------- 1 | map = $map; 17 | } 18 | 19 | public function factory($name, array $args = array()) 20 | { 21 | if (isset($this->map[$name])) { 22 | $class = $this->map[$name]; 23 | 24 | return new $class($args); 25 | } 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /vendor/guzzle/guzzle/src/Guzzle/Service/Command/LocationVisitor/Request/PostFieldVisitor.php: -------------------------------------------------------------------------------- 1 | setPostField($param->getWireName(), $this->prepareValue($value, $param)); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /vendor/guzzle/guzzle/src/Guzzle/Service/Command/LocationVisitor/Request/PostFileVisitor.php: -------------------------------------------------------------------------------- 1 | filter($value); 18 | if ($value instanceof PostFileInterface) { 19 | $request->addPostFile($value); 20 | } else { 21 | $request->addPostFile($param->getWireName(), $value); 22 | } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /vendor/guzzle/guzzle/src/Guzzle/Service/Command/LocationVisitor/Request/QueryVisitor.php: -------------------------------------------------------------------------------- 1 | getQuery()->set($param->getWireName(), $this->prepareValue($value, $param)); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /vendor/guzzle/guzzle/src/Guzzle/Service/Command/LocationVisitor/Request/ResponseBodyVisitor.php: -------------------------------------------------------------------------------- 1 | setResponseBody($value); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /vendor/guzzle/guzzle/src/Guzzle/Service/Command/LocationVisitor/Response/AbstractResponseVisitor.php: -------------------------------------------------------------------------------- 1 | getName()] = $param->filter($response->getBody()); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /vendor/guzzle/guzzle/src/Guzzle/Service/Command/LocationVisitor/Response/ReasonPhraseVisitor.php: -------------------------------------------------------------------------------- 1 | getName()] = $response->getReasonPhrase(); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /vendor/guzzle/guzzle/src/Guzzle/Service/Command/LocationVisitor/Response/StatusCodeVisitor.php: -------------------------------------------------------------------------------- 1 | getName()] = $response->getStatusCode(); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /vendor/guzzle/guzzle/src/Guzzle/Service/Command/RequestSerializerInterface.php: -------------------------------------------------------------------------------- 1 | invalidCommands = $commands; 23 | parent::__construct( 24 | 'Encountered commands in a batch transfer that use inconsistent clients. The batching ' . 25 | 'strategy you use with a command transfer must divide command batches by client.' 26 | ); 27 | } 28 | 29 | /** 30 | * Get the invalid commands 31 | * 32 | * @return array 33 | */ 34 | public function getCommands() 35 | { 36 | return $this->invalidCommands; 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /vendor/guzzle/guzzle/src/Guzzle/Service/Exception/ResponseClassException.php: -------------------------------------------------------------------------------- 1 | errors = $errors; 19 | } 20 | 21 | /** 22 | * Get any validation errors 23 | * 24 | * @return array 25 | */ 26 | public function getErrors() 27 | { 28 | return $this->errors; 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /vendor/guzzle/guzzle/src/Guzzle/Service/Resource/MapResourceIteratorFactory.php: -------------------------------------------------------------------------------- 1 | map = $map; 19 | } 20 | 21 | public function getClassName(CommandInterface $command) 22 | { 23 | $className = $command->getName(); 24 | 25 | if (isset($this->map[$className])) { 26 | return $this->map[$className]; 27 | } elseif (isset($this->map['*'])) { 28 | // If a wildcard was added, then always use that 29 | return $this->map['*']; 30 | } 31 | 32 | return null; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /vendor/guzzle/guzzle/src/Guzzle/Service/Resource/ResourceIteratorFactoryInterface.php: -------------------------------------------------------------------------------- 1 | =5.3.2", 16 | "guzzle/cache": "self.version", 17 | "guzzle/http": "self.version", 18 | "guzzle/inflection": "self.version" 19 | }, 20 | "autoload": { 21 | "psr-0": { "Guzzle\\Service": "" } 22 | }, 23 | "target-dir": "Guzzle/Service", 24 | "extra": { 25 | "branch-alias": { 26 | "dev-master": "3.7-dev" 27 | } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /vendor/guzzle/guzzle/src/Guzzle/Stream/StreamRequestFactoryInterface.php: -------------------------------------------------------------------------------- 1 | =5.3.2", 16 | "guzzle/common": "self.version" 17 | }, 18 | "suggest": { 19 | "guzzle/http": "To convert Guzzle request objects to PHP streams" 20 | }, 21 | "autoload": { 22 | "psr-0": { "Guzzle\\Stream": "" } 23 | }, 24 | "target-dir": "Guzzle/Stream", 25 | "extra": { 26 | "branch-alias": { 27 | "dev-master": "3.7-dev" 28 | } 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /vendor/guzzle/guzzle/tests/Guzzle/Tests/Batch/BatchClosureDivisorTest.php: -------------------------------------------------------------------------------- 1 | createBatches($queue); 34 | $this->assertEquals(array(array('foo'), array('baz')), $batches); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /vendor/guzzle/guzzle/tests/Guzzle/Tests/Batch/BatchSizeDivisorTest.php: -------------------------------------------------------------------------------- 1 | assertEquals(3, $d->getSize()); 20 | $d->setSize(2); 21 | $batches = $d->createBatches($queue); 22 | $this->assertEquals(array(array('foo', 'baz'), array('bar')), $batches); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /vendor/guzzle/guzzle/tests/Guzzle/Tests/Batch/HistoryBatchTest.php: -------------------------------------------------------------------------------- 1 | getMock('Guzzle\Batch\BatchTransferInterface'), 17 | $this->getMock('Guzzle\Batch\BatchDivisorInterface') 18 | ); 19 | 20 | $history = new HistoryBatch($batch); 21 | $history->add('foo')->add('baz'); 22 | $this->assertEquals(array('foo', 'baz'), $history->getHistory()); 23 | $history->clearHistory(); 24 | $this->assertEquals(array(), $history->getHistory()); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /vendor/guzzle/guzzle/tests/Guzzle/Tests/Cache/NullCacheAdapterTest.php: -------------------------------------------------------------------------------- 1 | assertEquals(false, $c->contains('foo')); 16 | $this->assertEquals(true, $c->delete('foo')); 17 | $this->assertEquals(false, $c->fetch('foo')); 18 | $this->assertEquals(true, $c->save('foo', 'bar')); 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /vendor/guzzle/guzzle/tests/Guzzle/Tests/Common/Exception/BatchTransferExceptionTest.php: -------------------------------------------------------------------------------- 1 | getMock('Guzzle\Batch\BatchTransferInterface'); 13 | $d = $this->getMock('Guzzle\Batch\BatchDivisorInterface'); 14 | $transferException = new BatchTransferException(array('foo'), array(1, 2), $e, $t, $d); 15 | $this->assertEquals(array('foo'), $transferException->getBatch()); 16 | $this->assertSame($t, $transferException->getTransferStrategy()); 17 | $this->assertSame($d, $transferException->getDivisorStrategy()); 18 | $this->assertSame($e, $transferException->getPrevious()); 19 | $this->assertEquals(array(1, 2), $transferException->getTransferredItems()); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /vendor/guzzle/guzzle/tests/Guzzle/Tests/Common/VersionTest.php: -------------------------------------------------------------------------------- 1 | assertNull($e->getError()); 17 | $this->assertNull($e->getErrorNo()); 18 | $this->assertSame($e, $e->setError('test', 12)); 19 | $this->assertEquals('test', $e->getError()); 20 | $this->assertEquals(12, $e->getErrorNo()); 21 | 22 | $handle = new CurlHandle(curl_init(), array()); 23 | $e->setCurlHandle($handle); 24 | $this->assertSame($handle, $e->getCurlHandle()); 25 | $handle->close(); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /vendor/guzzle/guzzle/tests/Guzzle/Tests/Http/Message/Header/HeaderFactoryTest.php: -------------------------------------------------------------------------------- 1 | createHeader('Foo', 'Bar'); 16 | $this->assertInstanceOf('Guzzle\Http\Message\Header', $h); 17 | $this->assertEquals('Foo', $h->getName()); 18 | $this->assertEquals('Bar', (string) $h); 19 | } 20 | 21 | public function testCreatesSpecificHeaders() 22 | { 23 | $f = new HeaderFactory(); 24 | $h = $f->createHeader('Link', '; rel="test"'); 25 | $this->assertInstanceOf('Guzzle\Http\Message\Header\Link', $h); 26 | $this->assertEquals('Link', $h->getName()); 27 | $this->assertEquals('; rel="test"', (string) $h); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /vendor/guzzle/guzzle/tests/Guzzle/Tests/Http/MimetypesTest.php: -------------------------------------------------------------------------------- 1 | assertEquals('text/x-php', Mimetypes::getInstance()->fromExtension('php')); 15 | } 16 | 17 | public function testGetsFromFilename() 18 | { 19 | $this->assertEquals('text/x-php', Mimetypes::getInstance()->fromFilename(__FILE__)); 20 | } 21 | 22 | public function testGetsFromCaseInsensitiveFilename() 23 | { 24 | $this->assertEquals('text/x-php', Mimetypes::getInstance()->fromFilename(strtoupper(__FILE__))); 25 | } 26 | 27 | public function testReturnsNullWhenNoMatchFound() 28 | { 29 | $this->assertNull(Mimetypes::getInstance()->fromExtension('foobar')); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /vendor/guzzle/guzzle/tests/Guzzle/Tests/Http/QueryAggregator/CommaAggregatorTest.php: -------------------------------------------------------------------------------- 1 | aggregate($key, $value, $query); 17 | $this->assertEquals(array('test%20123' => 'foo%20123,baz,bar'), $result); 18 | } 19 | 20 | public function testEncodes() 21 | { 22 | $query = new QueryString(); 23 | $query->useUrlEncoding(false); 24 | $a = new Ag(); 25 | $key = 'test 123'; 26 | $value = array('foo 123', 'baz', 'bar'); 27 | $result = $a->aggregate($key, $value, $query); 28 | $this->assertEquals(array('test 123' => 'foo 123,baz,bar'), $result); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /vendor/guzzle/guzzle/tests/Guzzle/Tests/Http/QueryAggregator/DuplicateAggregatorTest.php: -------------------------------------------------------------------------------- 1 | aggregate($key, $value, $query); 17 | $this->assertEquals(array('facet%201' => array('size%20a', 'width%20b')), $result); 18 | } 19 | 20 | public function testEncodes() 21 | { 22 | $query = new QueryString(); 23 | $query->useUrlEncoding(false); 24 | $a = new Ag(); 25 | $key = 'facet 1'; 26 | $value = array('size a', 'width b'); 27 | $result = $a->aggregate($key, $value, $query); 28 | $this->assertEquals(array('facet 1' => array('size a', 'width b')), $result); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /vendor/guzzle/guzzle/tests/Guzzle/Tests/Http/QueryAggregator/PhpAggregatorTest.php: -------------------------------------------------------------------------------- 1 | useUrlEncoding(false); 14 | $a = new Ag(); 15 | $key = 't'; 16 | $value = array( 17 | 'v1' => 'a', 18 | 'v2' => 'b', 19 | 'v3' => array( 20 | 'v4' => 'c', 21 | 'v5' => 'd', 22 | ) 23 | ); 24 | $result = $a->aggregate($key, $value, $query); 25 | $this->assertEquals(array( 26 | 't[v1]' => 'a', 27 | 't[v2]' => 'b', 28 | 't[v3][v4]' => 'c', 29 | 't[v3][v5]' => 'd', 30 | ), $result); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /vendor/guzzle/guzzle/tests/Guzzle/Tests/Iterator/AppendIteratorTest.php: -------------------------------------------------------------------------------- 1 | 1, 16 | 'b' => 2 17 | )); 18 | $b = new \ArrayIterator(array()); 19 | $c = new \ArrayIterator(array( 20 | 'c' => 3, 21 | 'd' => 4 22 | )); 23 | $i = new AppendIterator(); 24 | $i->append($a); 25 | $i->append($b); 26 | $i->append($c); 27 | $this->assertEquals(array(1, 2, 3, 4), iterator_to_array($i, false)); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /vendor/guzzle/guzzle/tests/Guzzle/Tests/Iterator/FilterIteratorTest.php: -------------------------------------------------------------------------------- 1 | assertEquals(range(1, 99, 2), iterator_to_array($i, false)); 19 | } 20 | 21 | /** 22 | * @expectedException \InvalidArgumentException 23 | */ 24 | public function testValidatesCallable() 25 | { 26 | $i = new FilterIterator(new \ArrayIterator(), new \stdClass()); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /vendor/guzzle/guzzle/tests/Guzzle/Tests/Iterator/MapIteratorTest.php: -------------------------------------------------------------------------------- 1 | assertEquals(range(0, 1000, 10), iterator_to_array($i, false)); 19 | } 20 | 21 | /** 22 | * @expectedException \InvalidArgumentException 23 | */ 24 | public function testValidatesCallable() 25 | { 26 | $i = new MapIterator(new \ArrayIterator(), new \stdClass()); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /vendor/guzzle/guzzle/tests/Guzzle/Tests/Iterator/MethodProxyIteratorTest.php: -------------------------------------------------------------------------------- 1 | append('a'); 18 | $proxy->append('b'); 19 | $this->assertEquals(array('a', 'b'), $i->getArrayCopy()); 20 | $this->assertEquals(array('a', 'b'), $proxy->getArrayCopy()); 21 | } 22 | 23 | public function testUsesInnerIterator() 24 | { 25 | $i = new MethodProxyIterator(new ChunkedIterator(new \ArrayIterator(array(1, 2, 3, 4, 5)), 2)); 26 | $this->assertEquals(3, count(iterator_to_array($i, false))); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /vendor/guzzle/guzzle/tests/Guzzle/Tests/Mock/CustomResponseModel.php: -------------------------------------------------------------------------------- 1 | command = $command; 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /vendor/guzzle/guzzle/tests/Guzzle/Tests/Mock/ErrorResponseMock.php: -------------------------------------------------------------------------------- 1 | command = $command; 22 | $this->response = $response; 23 | $this->message = 'Error from ' . $response; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /vendor/guzzle/guzzle/tests/Guzzle/Tests/Mock/ExceptionMock.php: -------------------------------------------------------------------------------- 1 | multiHandle; 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /vendor/guzzle/guzzle/tests/Guzzle/Tests/Mock/MockSubject.php: -------------------------------------------------------------------------------- 1 | parseCookie('foo=baz+bar', null, null, true); 18 | $this->assertEquals(array( 19 | 'foo' => 'baz bar' 20 | ), $result['cookies']); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /vendor/guzzle/guzzle/tests/Guzzle/Tests/Parser/Message/PeclHttpMessageParserTest.php: -------------------------------------------------------------------------------- 1 | markTestSkipped('pecl_http is not available.'); 16 | } 17 | } 18 | 19 | /** 20 | * @dataProvider requestProvider 21 | */ 22 | public function testParsesRequests($message, $parts) 23 | { 24 | $parser = new PeclHttpMessageParser(); 25 | $this->compareRequestResults($parts, $parser->parseRequest($message)); 26 | } 27 | 28 | /** 29 | * @dataProvider responseProvider 30 | */ 31 | public function testParsesResponses($message, $parts) 32 | { 33 | $parser = new PeclHttpMessageParser(); 34 | $this->compareResponseResults($parts, $parser->parseResponse($message)); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /vendor/guzzle/guzzle/tests/Guzzle/Tests/Parser/ParserRegistryTest.php: -------------------------------------------------------------------------------- 1 | registerParser('foo', $c); 17 | $this->assertSame($c, $r->getParser('foo')); 18 | } 19 | 20 | public function testReturnsNullWhenNotFound() 21 | { 22 | $r = new ParserRegistry(); 23 | $this->assertNull($r->getParser('FOO')); 24 | } 25 | 26 | public function testReturnsLazyLoadedDefault() 27 | { 28 | $r = new ParserRegistry(); 29 | $c = $r->getParser('cookie'); 30 | $this->assertInstanceOf('Guzzle\Parser\Cookie\CookieParser', $c); 31 | $this->assertSame($c, $r->getParser('cookie')); 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /vendor/guzzle/guzzle/tests/Guzzle/Tests/Parser/UriTemplate/PeclUriTemplateTest.php: -------------------------------------------------------------------------------- 1 | markTestSkipped('uri_template PECL extension must be installed to test PeclUriTemplate'); 16 | } 17 | } 18 | 19 | /** 20 | * @dataProvider templateProvider 21 | */ 22 | public function testExpandsUriTemplates($template, $expansion, $params) 23 | { 24 | $uri = new PeclUriTemplate($template); 25 | $this->assertEquals($expansion, $uri->expand($template, $params)); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /vendor/guzzle/guzzle/tests/Guzzle/Tests/Plugin/Backoff/ConstantBackoffStrategyTest.php: -------------------------------------------------------------------------------- 1 | assertFalse($strategy->makesDecision()); 16 | $request = $this->getMock('Guzzle\Http\Message\Request', array(), array(), '', false); 17 | $this->assertEquals(3.5, $strategy->getBackoffPeriod(0, $request)); 18 | $this->assertEquals(3.5, $strategy->getBackoffPeriod(1, $request)); 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /vendor/guzzle/guzzle/tests/Guzzle/Tests/Plugin/Backoff/ExponentialBackoffStrategyTest.php: -------------------------------------------------------------------------------- 1 | assertFalse($strategy->makesDecision()); 16 | $request = $this->getMock('Guzzle\Http\Message\Request', array(), array(), '', false); 17 | $this->assertEquals(1, $strategy->getBackoffPeriod(0, $request)); 18 | $this->assertEquals(2, $strategy->getBackoffPeriod(1, $request)); 19 | $this->assertEquals(4, $strategy->getBackoffPeriod(2, $request)); 20 | $this->assertEquals(8, $strategy->getBackoffPeriod(3, $request)); 21 | $this->assertEquals(16, $strategy->getBackoffPeriod(4, $request)); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /vendor/guzzle/guzzle/tests/Guzzle/Tests/Plugin/Backoff/LinearBackoffStrategyTest.php: -------------------------------------------------------------------------------- 1 | assertFalse($strategy->makesDecision()); 16 | $request = $this->getMock('Guzzle\Http\Message\Request', array(), array(), '', false); 17 | $this->assertEquals(0, $strategy->getBackoffPeriod(0, $request)); 18 | $this->assertEquals(5, $strategy->getBackoffPeriod(1, $request)); 19 | $this->assertEquals(10, $strategy->getBackoffPeriod(2, $request)); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /vendor/guzzle/guzzle/tests/Guzzle/Tests/Plugin/Cache/DenyRevalidationTest.php: -------------------------------------------------------------------------------- 1 | assertFalse($deny->revalidate(new Request('GET', 'http://foo.com'), new Response(200))); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /vendor/guzzle/guzzle/tests/Guzzle/Tests/Plugin/Cache/SkipRevalidationTest.php: -------------------------------------------------------------------------------- 1 | assertTrue($skip->revalidate(new Request('GET', 'http://foo.com'), new Response(200))); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /vendor/guzzle/guzzle/tests/Guzzle/Tests/Service/Command/AbstractCommandTest.php: -------------------------------------------------------------------------------- 1 | setDescription(ServiceDescription::factory(__DIR__ . '/../../TestData/test_service.json')); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /vendor/guzzle/guzzle/tests/Guzzle/Tests/Service/Command/LocationVisitor/Request/ResponseBodyVisitorTest.php: -------------------------------------------------------------------------------- 1 | getNestedCommand('response_body')->getParam('foo'); 16 | $visitor->visit($this->command, $this->request, $param, sys_get_temp_dir() . '/foo.txt'); 17 | $body = $this->readAttribute($this->request, 'responseBody'); 18 | $this->assertContains('/foo.txt', $body->getUri()); 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /vendor/guzzle/guzzle/tests/Guzzle/Tests/Service/Command/LocationVisitor/Response/AbstractResponseVisitorTest.php: -------------------------------------------------------------------------------- 1 | value = array(); 22 | $this->command = new MockCommand(); 23 | $this->response = new Response(200, array( 24 | 'X-Foo' => 'bar', 25 | 'Content-Length' => 3, 26 | 'Content-Type' => 'text/plain' 27 | ), 'Foo'); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /vendor/guzzle/guzzle/tests/Guzzle/Tests/Service/Command/LocationVisitor/Response/BodyVisitorTest.php: -------------------------------------------------------------------------------- 1 | 'body', 'name' => 'foo')); 18 | $visitor->visit($this->command, $this->response, $param, $this->value); 19 | $this->assertEquals('Foo', (string) $this->value['foo']); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /vendor/guzzle/guzzle/tests/Guzzle/Tests/Service/Command/LocationVisitor/Response/ReasonPhraseVisitorTest.php: -------------------------------------------------------------------------------- 1 | 'reasonPhrase', 'name' => 'phrase')); 18 | $visitor->visit($this->command, $this->response, $param, $this->value); 19 | $this->assertEquals('OK', $this->value['phrase']); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /vendor/guzzle/guzzle/tests/Guzzle/Tests/Service/Command/LocationVisitor/Response/StatusCodeVisitorTest.php: -------------------------------------------------------------------------------- 1 | 'statusCode', 'name' => 'code')); 18 | $visitor->visit($this->command, $this->response, $param, $this->value); 19 | $this->assertEquals(200, $this->value['code']); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /vendor/guzzle/guzzle/tests/Guzzle/Tests/Service/Exception/InconsistentClientTransferExceptionTest.php: -------------------------------------------------------------------------------- 1 | assertEquals($items, $e->getCommands()); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /vendor/guzzle/guzzle/tests/Guzzle/Tests/Service/Exception/ValidationExceptionTest.php: -------------------------------------------------------------------------------- 1 | setErrors($errors); 15 | $this->assertEquals($errors, $e->getErrors()); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /vendor/guzzle/guzzle/tests/Guzzle/Tests/Service/Mock/Command/IterableCommand.php: -------------------------------------------------------------------------------- 1 | 'iterable_command', 13 | 'parameters' => array( 14 | 'page_size' => array('type' => 'integer'), 15 | 'next_token' => array('type' => 'string') 16 | ) 17 | )); 18 | } 19 | 20 | protected function build() 21 | { 22 | $this->request = $this->client->createRequest('GET'); 23 | 24 | // Add the next token and page size query string values 25 | $this->request->getQuery()->set('next_token', $this->get('next_token')); 26 | 27 | if ($this->get('page_size')) { 28 | $this->request->getQuery()->set('page_size', $this->get('page_size')); 29 | } 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /vendor/guzzle/guzzle/tests/Guzzle/Tests/Service/Mock/Command/MockCommand.php: -------------------------------------------------------------------------------- 1 | get_called_class() == __CLASS__ ? 'mock_command' : 'sub.sub', 13 | 'httpMethod' => 'POST', 14 | 'parameters' => array( 15 | 'test' => array( 16 | 'default' => 123, 17 | 'required' => true, 18 | 'doc' => 'Test argument' 19 | ), 20 | '_internal' => array( 21 | 'default' => 'abc' 22 | ), 23 | 'foo' => array('filters' => array('strtoupper')) 24 | ) 25 | )); 26 | } 27 | 28 | protected function build() 29 | { 30 | $this->request = $this->client->createRequest(); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /vendor/guzzle/guzzle/tests/Guzzle/Tests/Service/Mock/Command/OtherCommand.php: -------------------------------------------------------------------------------- 1 | 'other_command', 13 | 'parameters' => array( 14 | 'test' => array( 15 | 'default' => '123', 16 | 'required' => true, 17 | 'doc' => 'Test argument' 18 | ), 19 | 'other' => array(), 20 | 'arg' => array('type' => 'string'), 21 | 'static' => array('static' => true, 'default' => 'this is static') 22 | ) 23 | )); 24 | } 25 | 26 | protected function build() 27 | { 28 | $this->request = $this->client->getRequest('HEAD'); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /vendor/guzzle/guzzle/tests/Guzzle/Tests/Service/Mock/Command/Sub/Sub.php: -------------------------------------------------------------------------------- 1 | '{scheme}://127.0.0.1:8124/{api_version}/{subdomain}', 30 | 'scheme' => 'http', 31 | 'api_version' => 'v1' 32 | ), array('username', 'password', 'subdomain')); 33 | 34 | return new self($config->get('base_url'), $config); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /vendor/guzzle/guzzle/tests/Guzzle/Tests/Service/Mock/Model/MockCommandIterator.php: -------------------------------------------------------------------------------- 1 | nextToken) { 14 | $this->command->set('next_token', $this->nextToken); 15 | } 16 | 17 | $this->command->set('page_size', (int) $this->calculatePageSize()); 18 | $this->command->execute(); 19 | 20 | $data = json_decode($this->command->getResponse()->getBody(true), true); 21 | 22 | $this->nextToken = $data['next_token']; 23 | 24 | return $data['resources']; 25 | } 26 | 27 | public function next() 28 | { 29 | $this->calledNext++; 30 | parent::next(); 31 | } 32 | 33 | public function getResources() 34 | { 35 | return $this->resources; 36 | } 37 | 38 | public function getIteratedCount() 39 | { 40 | return $this->iteratedCount; 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /vendor/guzzle/guzzle/tests/Guzzle/Tests/TestData/FileBody.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/emersonthis/smashing-mag-wordpress-api-demo/f029d669bfd1ba5c07677b8f717bf9c94720b11a/vendor/guzzle/guzzle/tests/Guzzle/Tests/TestData/FileBody.txt -------------------------------------------------------------------------------- /vendor/guzzle/guzzle/tests/Guzzle/Tests/TestData/description/bar.json: -------------------------------------------------------------------------------- 1 | { 2 | "includes": ["foo.json"] 3 | } 4 | -------------------------------------------------------------------------------- /vendor/guzzle/guzzle/tests/Guzzle/Tests/TestData/description/baz.json: -------------------------------------------------------------------------------- 1 | { 2 | "includes": ["foo.json", "bar.json"] 3 | } 4 | -------------------------------------------------------------------------------- /vendor/guzzle/guzzle/tests/Guzzle/Tests/TestData/description/foo.json: -------------------------------------------------------------------------------- 1 | { 2 | "includes": ["recursive.json"], 3 | "operations": { 4 | "abstract": { 5 | "httpMethod": "POST" 6 | } 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /vendor/guzzle/guzzle/tests/Guzzle/Tests/TestData/description/recursive.json: -------------------------------------------------------------------------------- 1 | { 2 | "includes": ["foo.json"] 3 | } 4 | -------------------------------------------------------------------------------- /vendor/guzzle/guzzle/tests/Guzzle/Tests/TestData/mock_response: -------------------------------------------------------------------------------- 1 | HTTP/1.1 200 OK 2 | Content-Length: 0 3 | 4 | -------------------------------------------------------------------------------- /vendor/guzzle/guzzle/tests/Guzzle/Tests/TestData/services/json1.json: -------------------------------------------------------------------------------- 1 | { 2 | "includes": [ "json2.json" ], 3 | "services": { 4 | "abstract": { 5 | "access_key": "xyz", 6 | "secret": "abc" 7 | }, 8 | "mock": { 9 | "class": "Guzzle\\Tests\\Service\\Mock\\MockClient", 10 | "extends": "abstract", 11 | "params": { 12 | "username": "foo", 13 | "password": "baz", 14 | "subdomain": "bar" 15 | } 16 | } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /vendor/guzzle/guzzle/tests/Guzzle/Tests/TestData/services/json2.json: -------------------------------------------------------------------------------- 1 | { 2 | "services": { 3 | "foo": { 4 | "class": "Guzzle\\Tests\\Service\\Mock\\MockClient", 5 | "extends": "abstract", 6 | "params": { 7 | "baz": "bar" 8 | } 9 | } 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /vendor/guzzle/guzzle/tests/Guzzle/Tests/TestData/test_service2.json: -------------------------------------------------------------------------------- 1 | { 2 | "operations": { 3 | "abstract": { 4 | "uri": "/abstract" 5 | } 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /vendor/guzzle/guzzle/tests/bootstrap.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /vendor/guzzlehttp/guzzle/src/Exception/BadResponseException.php: -------------------------------------------------------------------------------- 1 | stream = $stream; 16 | $msg = $msg ?: 'Could not seek the stream to position ' . $pos; 17 | parent::__construct($msg); 18 | } 19 | 20 | /** 21 | * @return StreamInterface 22 | */ 23 | public function getStream() 24 | { 25 | return $this->stream; 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /vendor/guzzlehttp/guzzle/src/Exception/ServerException.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /vendor/guzzlehttp/promises/Makefile: -------------------------------------------------------------------------------- 1 | all: clean test 2 | 3 | test: 4 | vendor/bin/phpunit 5 | 6 | coverage: 7 | vendor/bin/phpunit --coverage-html=artifacts/coverage 8 | 9 | view-coverage: 10 | open artifacts/coverage/index.html 11 | 12 | clean: 13 | rm -rf artifacts/* 14 | -------------------------------------------------------------------------------- /vendor/guzzlehttp/promises/composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "guzzlehttp/promises", 3 | "type": "library", 4 | "description": "Guzzle promises library", 5 | "keywords": ["promise"], 6 | "license": "MIT", 7 | "authors": [ 8 | { 9 | "name": "Michael Dowling", 10 | "email": "mtdowling@gmail.com", 11 | "homepage": "https://github.com/mtdowling" 12 | } 13 | ], 14 | "require": { 15 | "php": ">=5.5.0" 16 | }, 17 | "require-dev": { 18 | "phpunit/phpunit": "~4.0" 19 | }, 20 | "autoload": { 21 | "psr-4": { 22 | "GuzzleHttp\\Promise\\": "src/" 23 | }, 24 | "files": ["src/functions_include.php"] 25 | }, 26 | "extra": { 27 | "branch-alias": { 28 | "dev-master": "1.0-dev" 29 | } 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /vendor/guzzlehttp/promises/phpunit.xml.dist: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | tests 7 | 8 | 9 | 10 | 11 | src 12 | 13 | src/ 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /vendor/guzzlehttp/promises/src/AggregateException.php: -------------------------------------------------------------------------------- 1 | assertContains('foo', $e->getMessage()); 12 | $this->assertEquals(['baz', 'bar'], $e->getReason()); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /vendor/guzzlehttp/promises/tests/TaskQueueTest.php: -------------------------------------------------------------------------------- 1 | assertTrue($tq->isEmpty()); 12 | } 13 | 14 | public function testKnowsIfFull() 15 | { 16 | $tq = new TaskQueue(false); 17 | $tq->add(function () {}); 18 | $this->assertFalse($tq->isEmpty()); 19 | } 20 | 21 | public function testExecutesTasksInOrder() 22 | { 23 | $tq = new TaskQueue(false); 24 | $called = []; 25 | $tq->add(function () use (&$called) { $called[] = 'a'; }); 26 | $tq->add(function () use (&$called) { $called[] = 'b'; }); 27 | $tq->add(function () use (&$called) { $called[] = 'c'; }); 28 | $tq->run(); 29 | $this->assertEquals(['a', 'b', 'c'], $called); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /vendor/guzzlehttp/promises/tests/Thennable.php: -------------------------------------------------------------------------------- 1 | nextPromise = new Promise(); 13 | } 14 | 15 | public function then(callable $res = null, callable $rej = null) 16 | { 17 | return $this->nextPromise->then($res, $rej); 18 | } 19 | 20 | public function resolve($value) 21 | { 22 | $this->nextPromise->resolve($value); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /vendor/guzzlehttp/promises/tests/bootstrap.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /vendor/guzzlehttp/psr7/Makefile: -------------------------------------------------------------------------------- 1 | all: clean test 2 | 3 | test: 4 | vendor/bin/phpunit $(TEST) 5 | 6 | coverage: 7 | vendor/bin/phpunit --coverage-html=artifacts/coverage $(TEST) 8 | 9 | view-coverage: 10 | open artifacts/coverage/index.html 11 | 12 | clean: 13 | rm -rf artifacts/* 14 | -------------------------------------------------------------------------------- /vendor/guzzlehttp/psr7/composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "guzzlehttp/psr7", 3 | "type": "library", 4 | "description": "PSR-7 message implementation", 5 | "keywords": ["message", "stream", "http", "uri"], 6 | "license": "MIT", 7 | "authors": [ 8 | { 9 | "name": "Michael Dowling", 10 | "email": "mtdowling@gmail.com", 11 | "homepage": "https://github.com/mtdowling" 12 | } 13 | ], 14 | "require": { 15 | "php": ">=5.4.0", 16 | "psr/http-message": "~1.0" 17 | }, 18 | "require-dev": { 19 | "phpunit/phpunit": "~4.0" 20 | }, 21 | "provide": { 22 | "psr/http-message-implementation": "1.0" 23 | }, 24 | "autoload": { 25 | "psr-4": { 26 | "GuzzleHttp\\Psr7\\": "src/" 27 | }, 28 | "files": ["src/functions_include.php"] 29 | }, 30 | "extra": { 31 | "branch-alias": { 32 | "dev-master": "1.0-dev" 33 | } 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /vendor/guzzlehttp/psr7/phpunit.xml.dist: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | tests 7 | 8 | 9 | 10 | 11 | src 12 | 13 | src/ 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /vendor/guzzlehttp/psr7/src/InflateStream.php: -------------------------------------------------------------------------------- 1 | stream = new Stream($resource); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /vendor/guzzlehttp/psr7/src/LazyOpenStream.php: -------------------------------------------------------------------------------- 1 | filename = $filename; 27 | $this->mode = $mode; 28 | } 29 | 30 | /** 31 | * Creates the underlying stream lazily when required. 32 | * 33 | * @return StreamInterface 34 | */ 35 | protected function createStream() 36 | { 37 | return stream_for(try_fopen($this->filename, $this->mode)); 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /vendor/guzzlehttp/psr7/src/NoSeekStream.php: -------------------------------------------------------------------------------- 1 | assertEquals(3, $drop->write('hel')); 14 | $this->assertEquals(2, $drop->write('lo')); 15 | $this->assertEquals(5, $drop->getSize()); 16 | $this->assertEquals('hello', $drop->read(5)); 17 | $this->assertEquals(0, $drop->getSize()); 18 | $drop->write('12345678910'); 19 | $this->assertEquals(5, $stream->getSize()); 20 | $this->assertEquals(5, $drop->getSize()); 21 | $this->assertEquals('12345', (string) $drop); 22 | $this->assertEquals(0, $drop->getSize()); 23 | $drop->write('hello'); 24 | $this->assertSame(0, $drop->write('test')); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /vendor/guzzlehttp/psr7/tests/InflateStreamTest.php: -------------------------------------------------------------------------------- 1 | assertEquals('test', (string) $b); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /vendor/guzzlehttp/psr7/tests/bootstrap.php: -------------------------------------------------------------------------------- 1 | =5.3.2" 23 | }, 24 | "autoload": { 25 | "psr-0": { 26 | "RandomLib": "lib" 27 | } 28 | }, 29 | "extra": { 30 | "branch-alias": { 31 | "dev-master": "1.0.x-dev" 32 | } 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /vendor/ircmaxell/random-lib/phpunit.xml.dist: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 21 | test/Unit 22 | 23 | 24 | 25 | 26 | lib/ 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /vendor/ircmaxell/random-lib/test/Unit/RandomLib/Source/CAPICOMTest.php: -------------------------------------------------------------------------------- 1 | 0 ? str_repeat(chr(0), $i) : chr(0); 13 | $data[] = array($i, $not); 14 | } 15 | return $data; 16 | } 17 | 18 | /** 19 | */ 20 | public function testGetStrength() { 21 | $strength = new Strength(Strength::MEDIUM); 22 | $actual = CAPICOM::getStrength(); 23 | $this->assertEquals($actual, $strength); 24 | } 25 | 26 | /** 27 | * @dataProvider provideGenerate 28 | * @group slow 29 | */ 30 | public function testGenerate($length, $not) { 31 | $rand = new CAPICOM; 32 | $stub = $rand->generate($length); 33 | $this->assertEquals($length, strlen($stub)); 34 | } 35 | 36 | } 37 | -------------------------------------------------------------------------------- /vendor/ircmaxell/random-lib/test/Unit/RandomLib/Source/RandTest.php: -------------------------------------------------------------------------------- 1 | 0 ? str_repeat(chr(0), $i) : chr(0); 13 | $data[] = array($i, $not); 14 | } 15 | return $data; 16 | } 17 | 18 | /** 19 | */ 20 | public function testGetStrength() { 21 | if (defined('S_ALL')) { 22 | $strength = new Strength(Strength::LOW); 23 | } else { 24 | $strength = new Strength(Strength::VERYLOW); 25 | } 26 | $actual = Rand::getStrength(); 27 | $this->assertEquals($actual, $strength); 28 | } 29 | 30 | /** 31 | * @dataProvider provideGenerate 32 | */ 33 | public function testGenerate($length, $not) { 34 | $rand = new Rand; 35 | $stub = $rand->generate($length); 36 | $this->assertEquals($length, strlen($stub)); 37 | $this->assertNotEquals($not, $stub); 38 | } 39 | 40 | } 41 | -------------------------------------------------------------------------------- /vendor/ircmaxell/random-lib/test/Unit/RandomLib/Source/UniqIDTest.php: -------------------------------------------------------------------------------- 1 | 0 ? str_repeat(chr(0), $i) : chr(0); 13 | $data[] = array($i, $not); 14 | } 15 | return $data; 16 | } 17 | 18 | /** 19 | */ 20 | public function testGetStrength() { 21 | $strength = new Strength(Strength::LOW); 22 | $actual = UniqID::getStrength(); 23 | $this->assertEquals($actual, $strength); 24 | } 25 | 26 | /** 27 | * @dataProvider provideGenerate 28 | */ 29 | public function testGenerate($length, $not) { 30 | $rand = new UniqID; 31 | $stub = $rand->generate($length); 32 | $this->assertEquals($length, strlen($stub)); 33 | $this->assertNotEquals($not, $stub); 34 | } 35 | 36 | } 37 | -------------------------------------------------------------------------------- /vendor/ircmaxell/security-lib/.gitignore: -------------------------------------------------------------------------------- 1 | vendor -------------------------------------------------------------------------------- /vendor/ircmaxell/security-lib/README.md: -------------------------------------------------------------------------------- 1 | SecurityLib 2 | =========== 3 | 4 | This is a base set of libraries used in other projects. This isn't useful on its own... -------------------------------------------------------------------------------- /vendor/ircmaxell/security-lib/composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "ircmaxell/security-lib", 3 | "type": "library", 4 | "version": "1.0.0", 5 | "description": "A Base Security Library", 6 | "keywords": [], 7 | "homepage": "https://github.com/ircmaxell/PHP-SecurityLib", 8 | "license": "MIT", 9 | "authors": [ 10 | { 11 | "name": "Anthony Ferrara", 12 | "email": "ircmaxell@ircmaxell.com", 13 | "homepage": "http://blog.ircmaxell.com" 14 | } 15 | ], 16 | "require-dev": { 17 | "mikey179/vfsStream": "1.1.*" 18 | }, 19 | "require": { 20 | "php": ">=5.3.2" 21 | }, 22 | "autoload": { 23 | "psr-0": { 24 | "SecurityLib": "lib" 25 | } 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /vendor/ircmaxell/security-lib/lib/SecurityLib/composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "SecurityLib/Core", 3 | "description": "Common implementations", 4 | "keywords": ["security"], 5 | "license": "MIT", 6 | "require": { 7 | "php": ">=5.3" 8 | }, 9 | "autoload": { 10 | "psr-0": { "SecurityLib\SecurityLib": "" } 11 | }, 12 | "target-dir": "SecurityLib\SecurityLib" 13 | } 14 | -------------------------------------------------------------------------------- /vendor/ircmaxell/security-lib/phpunit.xml.dist: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 21 | test/Unit 22 | 23 | 24 | 25 | 26 | lib/ 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /vendor/ircmaxell/security-lib/test/Mocks/Enum.php: -------------------------------------------------------------------------------- 1 | 10 | * @copyright 2011 The Authors 11 | * @license http://opensource.org/licenses/bsd-license.php New BSD License 12 | * @license http://www.gnu.org/licenses/lgpl-2.1.html LGPL v 2.1 13 | */ 14 | 15 | namespace SecurityLibTest\Mocks; 16 | 17 | /** 18 | * The interface that all hash implementations must implement 19 | * 20 | * @category PHPSecurityLib 21 | * @package Hash 22 | * @author Anthony Ferrara 23 | */ 24 | class Enum extends \SecurityLib\Enum { 25 | 26 | const Value1 = 1; 27 | const Value2 = 2; 28 | const Value3 = 3; 29 | const Value4 = 4; 30 | 31 | } 32 | -------------------------------------------------------------------------------- /vendor/ircmaxell/security-lib/test/Mocks/Strength.php: -------------------------------------------------------------------------------- 1 | 10 | * @copyright 2011 The Authors 11 | * @license http://opensource.org/licenses/bsd-license.php New BSD License 12 | * @license http://www.gnu.org/licenses/lgpl-2.1.html LGPL v 2.1 13 | */ 14 | 15 | namespace SecurityLibTest\Mocks; 16 | 17 | /** 18 | * The interface that all hash implementations must implement 19 | * 20 | * @category PHPSecurityLib 21 | * @package Hash 22 | * @author Anthony Ferrara 23 | */ 24 | class Strength extends \SecurityLib\Strength { 25 | 26 | const MEDIUMLOW = 4; 27 | const SUPERHIGH = 999; 28 | 29 | } 30 | -------------------------------------------------------------------------------- /vendor/ircmaxell/security-lib/test/Unit/Core/BigMath/BCMathTest.php: -------------------------------------------------------------------------------- 1 | markTestSkipped('BCMath is not loaded'); 12 | } 13 | } 14 | 15 | /** 16 | * @dataProvider provideAddTest 17 | */ 18 | public function testAdd($left, $right, $expected) { 19 | $obj = new \SecurityLib\BigMath\BCMath; 20 | $this->assertEquals($expected, $obj->add($left, $right)); 21 | } 22 | 23 | /** 24 | * @dataProvider provideSubtractTest 25 | */ 26 | public function testSubtract($left, $right, $expected) { 27 | $obj = new \SecurityLib\BigMath\BCMath; 28 | $this->assertEquals($expected, $obj->subtract($left, $right)); 29 | } 30 | } -------------------------------------------------------------------------------- /vendor/ircmaxell/security-lib/test/Unit/Core/BigMath/GMPTest.php: -------------------------------------------------------------------------------- 1 | markTestSkipped('BCMath is not loaded'); 12 | } 13 | } 14 | 15 | /** 16 | * @dataProvider provideAddTest 17 | */ 18 | public function testAdd($left, $right, $expected) { 19 | $obj = new \SecurityLib\BigMath\GMP; 20 | $this->assertEquals($expected, $obj->add($left, $right)); 21 | } 22 | 23 | /** 24 | * @dataProvider provideSubtractTest 25 | */ 26 | public function testSubtract($left, $right, $expected) { 27 | $obj = new \SecurityLib\BigMath\GMP; 28 | $this->assertEquals($expected, $obj->subtract($left, $right)); 29 | } 30 | } -------------------------------------------------------------------------------- /vendor/ircmaxell/security-lib/test/Unit/Core/BigMath/PHPMathTest.php: -------------------------------------------------------------------------------- 1 | assertEquals($expected, $obj->add($left, $right)); 15 | } 16 | 17 | /** 18 | * @dataProvider provideSubtractTest 19 | */ 20 | public function testSubtract($left, $right, $expected) { 21 | $obj = new \SecurityLib\BigMath\PHPMath; 22 | $this->assertEquals($expected, $obj->subtract($left, $right)); 23 | } 24 | } -------------------------------------------------------------------------------- /vendor/ircmaxell/security-lib/test/Unit/Core/StrengthTest.php: -------------------------------------------------------------------------------- 1 | assertTrue($obj instanceof \SecurityLib\Strength); 10 | $this->assertTrue($obj instanceof \SecurityLib\Enum); 11 | } 12 | 13 | public function testGetConstList() { 14 | $obj = new Strength(); 15 | $const = $obj->getConstList(); 16 | $this->assertEquals(array( 17 | 'VERYLOW' => 1, 18 | 'LOW' => 3, 19 | 'MEDIUM' => 5, 20 | 'HIGH' => 7, 21 | ), $const); 22 | } 23 | 24 | public function testGetConstListWithDefault() { 25 | $obj = new Strength(); 26 | $const = $obj->getConstList(true); 27 | $this->assertEquals(array( 28 | '__DEFAULT' => 1, 29 | 'VERYLOW' => 1, 30 | 'LOW' => 3, 31 | 'MEDIUM' => 5, 32 | 'HIGH' => 7, 33 | ), $const); 34 | } 35 | } -------------------------------------------------------------------------------- /vendor/knplabs/github-api/.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | 3 | [*] 4 | charset = utf-8 5 | end_of_line = lf 6 | insert_final_newline = true 7 | indent_style = space 8 | indent_size = 4 9 | trim_trailing_whitespace = true 10 | 11 | [*.yml] 12 | indent_style = space 13 | indent_size = 2 14 | -------------------------------------------------------------------------------- /vendor/knplabs/github-api/.php_cs: -------------------------------------------------------------------------------- 1 | in(__DIR__); 5 | 6 | $fixers = array( 7 | 'long_array_syntax', 8 | ); 9 | 10 | return Symfony\CS\Config\Config::create() 11 | ->setUsingCache(true) 12 | ->level(Symfony\CS\FixerInterface::PSR2_LEVEL) 13 | ->fixers($fixers) 14 | ->finder($finder); 15 | -------------------------------------------------------------------------------- /vendor/knplabs/github-api/.styleci.yml: -------------------------------------------------------------------------------- 1 | preset: psr2 2 | 3 | enabled: 4 | - long_array_syntax 5 | -------------------------------------------------------------------------------- /vendor/knplabs/github-api/composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "knplabs/github-api", 3 | "type": "library", 4 | "description": "GitHub API v3 client", 5 | "homepage": "https://github.com/KnpLabs/php-github-api", 6 | "keywords": ["github", "gh", "api", "gist"], 7 | "license": "MIT", 8 | "authors": [ 9 | { 10 | "name": "KnpLabs Team", 11 | "homepage": "http://knplabs.com" 12 | }, 13 | { 14 | "name": "Thibault Duplessis", 15 | "email": "thibault.duplessis@gmail.com", 16 | "homepage": "http://ornicar.github.com" 17 | } 18 | ], 19 | "require": { 20 | "php": ">=5.3.2", 21 | "ext-curl": "*", 22 | "guzzle/guzzle": "~3.7" 23 | }, 24 | "require-dev": { 25 | "phpunit/phpunit": "~4.0" 26 | }, 27 | "suggest": { 28 | "knplabs/gaufrette": "Needed for optional Gaufrette cache" 29 | }, 30 | "autoload": { 31 | "psr-4": { "Github\\": "lib/Github/" } 32 | }, 33 | "extra": { 34 | "branch-alias": { 35 | "dev-master": "1.4.x-dev" 36 | } 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /vendor/knplabs/github-api/lib/Github/Api/ApiInterface.php: -------------------------------------------------------------------------------- 1 | 9 | */ 10 | interface ApiInterface 11 | { 12 | public function getPerPage(); 13 | 14 | public function setPerPage($perPage); 15 | } 16 | -------------------------------------------------------------------------------- /vendor/knplabs/github-api/lib/Github/Api/Enterprise/License.php: -------------------------------------------------------------------------------- 1 | get('enterprise/settings/license'); 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /vendor/knplabs/github-api/lib/Github/Api/Enterprise/UserAdmin.php: -------------------------------------------------------------------------------- 1 | put('users/'.rawurldecode($username).'/suspended', array('Content-Length' => 0)); 21 | } 22 | 23 | /** 24 | * Unsuspend a user. 25 | * 26 | * @link https://developer.github.com/v3/users/administration/#unsuspend-a-user 27 | * 28 | * @param string $username 29 | * 30 | * @return array 31 | */ 32 | public function unsuspend($username) 33 | { 34 | return $this->delete('users/'.rawurldecode($username).'/suspended'); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /vendor/knplabs/github-api/lib/Github/Api/Meta.php: -------------------------------------------------------------------------------- 1 | 10 | */ 11 | class Meta extends AbstractApi 12 | { 13 | /** 14 | * Get the ip address of the hook and git servers for the GitHub.com service. 15 | * 16 | * @return array Informations about the service of GitHub.com 17 | */ 18 | public function service() 19 | { 20 | return $this->get('meta'); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /vendor/knplabs/github-api/lib/Github/Api/RateLimit.php: -------------------------------------------------------------------------------- 1 | 10 | */ 11 | class RateLimit extends AbstractApi 12 | { 13 | /** 14 | * Get rate limits 15 | * 16 | * @return array 17 | */ 18 | public function getRateLimits() 19 | { 20 | return $this->get('rate_limit'); 21 | } 22 | 23 | /** 24 | * Get core rate limit 25 | * 26 | * @return integer 27 | */ 28 | public function getCoreLimit() 29 | { 30 | $response = $this->getRateLimits(); 31 | 32 | return $response['resources']['core']['limit']; 33 | } 34 | 35 | /** 36 | * Get search rate limit 37 | * 38 | * @return integer 39 | */ 40 | public function getSearchLimit() 41 | { 42 | $response = $this->getRateLimits(); 43 | 44 | return $response['resources']['search']['limit']; 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /vendor/knplabs/github-api/lib/Github/Api/Repository/Commits.php: -------------------------------------------------------------------------------- 1 | 10 | */ 11 | class Commits extends AbstractApi 12 | { 13 | public function all($username, $repository, array $params) 14 | { 15 | return $this->get('repos/'.rawurlencode($username).'/'.rawurlencode($repository).'/commits', $params); 16 | } 17 | 18 | public function compare($username, $repository, $base, $head, $mediaType = null) 19 | { 20 | $headers = array(); 21 | if (null !== $mediaType) { 22 | $headers['Accept'] = $mediaType; 23 | } 24 | return $this->get('repos/'.rawurlencode($username).'/'.rawurlencode($repository).'/compare/'.rawurlencode($base).'...'.rawurlencode($head), array(), $headers); 25 | } 26 | 27 | public function show($username, $repository, $sha) 28 | { 29 | return $this->get('repos/'.rawurlencode($username).'/'.rawurlencode($repository).'/commits/'.rawurlencode($sha)); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /vendor/knplabs/github-api/lib/Github/Api/Repository/Forks.php: -------------------------------------------------------------------------------- 1 | 10 | */ 11 | class Forks extends AbstractApi 12 | { 13 | public function all($username, $repository, array $params = array()) 14 | { 15 | if (isset($params['sort']) && !in_array($params['sort'], array('newest', 'oldest', 'watchers'))) { 16 | $params['sort'] = 'newest'; 17 | } 18 | 19 | return $this->get('repos/'.rawurlencode($username).'/'.rawurlencode($repository).'/forks', array_merge(array('page' => 1), $params)); 20 | } 21 | 22 | public function create($username, $repository, array $params = array()) 23 | { 24 | return $this->post('repos/'.rawurlencode($username).'/'.rawurlencode($repository).'/forks', $params); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /vendor/knplabs/github-api/lib/Github/Exception/ApiLimitExceedException.php: -------------------------------------------------------------------------------- 1 | 9 | */ 10 | class ApiLimitExceedException extends RuntimeException 11 | { 12 | public function __construct($limit = 5000, $code = 0, $previous = null) 13 | { 14 | parent::__construct('You have reached GitHub hour limit! Actual limit is: '. $limit, $code, $previous); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /vendor/knplabs/github-api/lib/Github/Exception/BadMethodCallException.php: -------------------------------------------------------------------------------- 1 | 9 | */ 10 | class BadMethodCallException extends \BadMethodCallException implements ExceptionInterface 11 | { 12 | } 13 | -------------------------------------------------------------------------------- /vendor/knplabs/github-api/lib/Github/Exception/ErrorException.php: -------------------------------------------------------------------------------- 1 | 9 | */ 10 | class ErrorException extends \ErrorException implements ExceptionInterface 11 | { 12 | } 13 | -------------------------------------------------------------------------------- /vendor/knplabs/github-api/lib/Github/Exception/ExceptionInterface.php: -------------------------------------------------------------------------------- 1 | 9 | */ 10 | class InvalidArgumentException extends \InvalidArgumentException implements ExceptionInterface 11 | { 12 | } 13 | -------------------------------------------------------------------------------- /vendor/knplabs/github-api/lib/Github/Exception/MissingArgumentException.php: -------------------------------------------------------------------------------- 1 | 9 | */ 10 | class MissingArgumentException extends ErrorException 11 | { 12 | public function __construct($required, $code = 0, $previous = null) 13 | { 14 | if (is_string($required)) { 15 | $required = array($required); 16 | } 17 | 18 | parent::__construct(sprintf('One or more of required ("%s") parameters is missing!', implode('", "', $required)), $code, $previous); 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /vendor/knplabs/github-api/lib/Github/Exception/RuntimeException.php: -------------------------------------------------------------------------------- 1 | 9 | */ 10 | class RuntimeException extends \RuntimeException implements ExceptionInterface 11 | { 12 | } 13 | -------------------------------------------------------------------------------- /vendor/knplabs/github-api/lib/Github/Exception/TwoFactorAuthenticationRequiredException.php: -------------------------------------------------------------------------------- 1 | type = $type; 12 | parent::__construct('Two factor authentication is enabled on this account', $code, $previous); 13 | } 14 | 15 | public function getType() 16 | { 17 | return $this->type; 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /vendor/knplabs/github-api/lib/Github/Exception/ValidationFailedException.php: -------------------------------------------------------------------------------- 1 | 9 | */ 10 | class ValidationFailedException extends ErrorException 11 | { 12 | } 13 | -------------------------------------------------------------------------------- /vendor/league/oauth2-client/.scrutinizer.yml: -------------------------------------------------------------------------------- 1 | filter: 2 | excluded_paths: 3 | - 'test/*' 4 | 5 | tools: 6 | php_code_sniffer: 7 | config: 8 | standard: "PSR2" 9 | -------------------------------------------------------------------------------- /vendor/league/oauth2-client/CREDITS.md: -------------------------------------------------------------------------------- 1 | # OAuth 2.0 Client 2 | 3 | ## Authors 4 | 5 | Also see . 6 | 7 | ### Current Maintainer 8 | 9 | - [Ben Ramsey](https://github.com/ramsey) 10 | 11 | ### Contributors 12 | 13 | - [Alex Bilbie](https://github.com/alexbilbie) 14 | - [Ben Corlett](https://github.com/bencorlett) 15 | - [Ben Ramsey](https://github.com/ramsey) 16 | - [James Mills](https://github.com/jamesmills) 17 | - [Phil Sturgeon](https://github.com/philsturgeon) 18 | - [Rudi Theunissen](https://github.com/rtheunissen) 19 | - [Tom Anderson](https://github.com/TomHAnderson) 20 | - [Woody Gilk](https://github.com/shadowhand) 21 | -------------------------------------------------------------------------------- /vendor/league/oauth2-client/LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2013-2015 Alex Bilbie 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | THE SOFTWARE. 22 | -------------------------------------------------------------------------------- /vendor/league/oauth2-client/README.UPGRADING.md: -------------------------------------------------------------------------------- 1 | # OAuth 2.0 Client 2 | 3 | ## Upgrade Guide 4 | 5 | ### Upgrading to Version 1.0.0 6 | 7 | TBD 8 | -------------------------------------------------------------------------------- /vendor/league/oauth2-client/src/Grant/ClientCredentials.php: -------------------------------------------------------------------------------- 1 | 9 | * @license http://opensource.org/licenses/MIT MIT 10 | * @link http://thephpleague.com/oauth2-client/ Documentation 11 | * @link https://packagist.org/packages/league/oauth2-client Packagist 12 | * @link https://github.com/thephpleague/oauth2-client GitHub 13 | */ 14 | 15 | namespace League\OAuth2\Client\Grant; 16 | 17 | /** 18 | * Represents a client credentials grant. 19 | * 20 | * @link http://tools.ietf.org/html/rfc6749#section-1.3.4 Client Credentials (RFC 6749, §1.3.4) 21 | */ 22 | class ClientCredentials extends AbstractGrant 23 | { 24 | /** 25 | * @inheritdoc 26 | */ 27 | protected function getName() 28 | { 29 | return 'client_credentials'; 30 | } 31 | 32 | /** 33 | * @inheritdoc 34 | */ 35 | protected function getRequiredRequestParameters() 36 | { 37 | return []; 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /vendor/league/oauth2-client/src/Grant/Exception/InvalidGrantException.php: -------------------------------------------------------------------------------- 1 | 9 | * @license http://opensource.org/licenses/MIT MIT 10 | * @link http://thephpleague.com/oauth2-client/ Documentation 11 | * @link https://packagist.org/packages/league/oauth2-client Packagist 12 | * @link https://github.com/thephpleague/oauth2-client GitHub 13 | */ 14 | 15 | namespace League\OAuth2\Client\Grant\Exception; 16 | 17 | use InvalidArgumentException; 18 | 19 | /** 20 | * Exception thrown if the grant does not extend from AbstractGrant. 21 | * 22 | * @see League\OAuth2\Client\Grant\AbstractGrant 23 | */ 24 | class InvalidGrantException extends InvalidArgumentException 25 | { 26 | } 27 | -------------------------------------------------------------------------------- /vendor/league/oauth2-github/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | /vendor 3 | composer.phar 4 | composer.lock 5 | .DS_Store 6 | -------------------------------------------------------------------------------- /vendor/league/oauth2-github/.scrutinizer.yml: -------------------------------------------------------------------------------- 1 | filter: 2 | excluded_paths: [test/*] 3 | checks: 4 | php: 5 | code_rating: true 6 | remove_extra_empty_lines: true 7 | remove_php_closing_tag: true 8 | remove_trailing_whitespace: true 9 | fix_use_statements: 10 | remove_unused: true 11 | preserve_multiple: false 12 | preserve_blanklines: true 13 | order_alphabetically: true 14 | fix_php_opening_tag: true 15 | fix_linefeed: true 16 | fix_line_ending: true 17 | fix_identation_4spaces: true 18 | fix_doc_comments: true 19 | tools: 20 | external_code_coverage: 21 | timeout: 600 22 | runs: 3 23 | php_analyzer: true 24 | php_code_coverage: false 25 | php_code_sniffer: 26 | config: 27 | standard: PSR2 28 | filter: 29 | paths: ['src'] 30 | php_loc: 31 | enabled: true 32 | excluded_dirs: [vendor, test] 33 | php_cpd: 34 | enabled: true 35 | excluded_dirs: [vendor, test] 36 | -------------------------------------------------------------------------------- /vendor/league/oauth2-github/.travis.yml: -------------------------------------------------------------------------------- 1 | language: php 2 | 3 | php: 4 | - 5.5 5 | - 5.6 6 | - 7.0 7 | - hhvm 8 | 9 | before_script: 10 | - travis_retry composer self-update 11 | - travis_retry composer install --no-interaction --prefer-source --dev 12 | - travis_retry phpenv rehash 13 | 14 | script: 15 | - ./vendor/bin/phpcs --standard=psr2 src/ 16 | - ./vendor/bin/phpunit --coverage-text --coverage-clover=coverage.clover 17 | 18 | after_script: 19 | - wget https://scrutinizer-ci.com/ocular.phar 20 | - php ocular.phar code-coverage:upload --format=php-clover coverage.clover 21 | -------------------------------------------------------------------------------- /vendor/league/oauth2-github/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Changelog 2 | All Notable changes to `oauth2-github` will be documented in this file 3 | 4 | ## 0.2.0 - 2015-08-20 5 | 6 | ### Added 7 | - Upgrade to support version 1.0 release of core client 8 | 9 | ### Deprecated 10 | - Nothing 11 | 12 | ### Fixed 13 | - Nothing 14 | 15 | ### Removed 16 | - Nothing 17 | 18 | ### Security 19 | - Nothing 20 | 21 | ## 0.1.0 - 2015-04-13 22 | 23 | ### Added 24 | - Initial release! 25 | 26 | ### Deprecated 27 | - Nothing 28 | 29 | ### Fixed 30 | - Nothing 31 | 32 | ### Removed 33 | - Nothing 34 | 35 | ### Security 36 | - Nothing 37 | -------------------------------------------------------------------------------- /vendor/league/oauth2-github/LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2015 Steven Maguire 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | THE SOFTWARE. 22 | -------------------------------------------------------------------------------- /vendor/psr/http-message/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2014 PHP Framework Interoperability Group 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /vendor/psr/http-message/README.md: -------------------------------------------------------------------------------- 1 | PSR Http Message 2 | ================ 3 | 4 | This repository holds all interfaces/classes/traits related to 5 | [PSR-7](http://www.php-fig.org/psr/psr-7/). 6 | 7 | Note that this is not a HTTP message implementation of its own. It is merely an 8 | interface that describes a HTTP message. See the specification for more details. 9 | 10 | Usage 11 | ----- 12 | 13 | We'll certainly need some stuff in here. -------------------------------------------------------------------------------- /vendor/psr/http-message/composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "psr/http-message", 3 | "description": "Common interface for HTTP messages", 4 | "keywords": ["psr", "psr-7", "http", "http-message", "request", "response"], 5 | "license": "MIT", 6 | "authors": [ 7 | { 8 | "name": "PHP-FIG", 9 | "homepage": "http://www.php-fig.org/" 10 | } 11 | ], 12 | "require": { 13 | "php": ">=5.3.0" 14 | }, 15 | "autoload": { 16 | "psr-4": { 17 | "Psr\\Http\\Message\\": "src/" 18 | } 19 | }, 20 | "extra": { 21 | "branch-alias": { 22 | "dev-master": "1.0.x-dev" 23 | } 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /vendor/symfony/event-dispatcher/.gitignore: -------------------------------------------------------------------------------- 1 | vendor/ 2 | composer.lock 3 | phpunit.xml 4 | -------------------------------------------------------------------------------- /vendor/symfony/event-dispatcher/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | CHANGELOG 2 | ========= 3 | 4 | 2.5.0 5 | ----- 6 | 7 | * added Debug\TraceableEventDispatcher (originally in HttpKernel) 8 | * changed Debug\TraceableEventDispatcherInterface to extend EventDispatcherInterface 9 | * added RegisterListenersPass (originally in HttpKernel) 10 | 11 | 2.1.0 12 | ----- 13 | 14 | * added TraceableEventDispatcherInterface 15 | * added ContainerAwareEventDispatcher 16 | * added a reference to the EventDispatcher on the Event 17 | * added a reference to the Event name on the event 18 | * added fluid interface to the dispatch() method which now returns the Event 19 | object 20 | * added GenericEvent event class 21 | * added the possibility for subscribers to subscribe several times for the 22 | same event 23 | * added ImmutableEventDispatcher 24 | -------------------------------------------------------------------------------- /vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcherInterface.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Symfony\Component\EventDispatcher\Debug; 13 | 14 | use Symfony\Component\EventDispatcher\EventDispatcherInterface; 15 | 16 | /** 17 | * @author Fabien Potencier 18 | */ 19 | interface TraceableEventDispatcherInterface extends EventDispatcherInterface 20 | { 21 | /** 22 | * Gets the called listeners. 23 | * 24 | * @return array An array of called listeners 25 | */ 26 | public function getCalledListeners(); 27 | 28 | /** 29 | * Gets the not called listeners. 30 | * 31 | * @return array An array of not called listeners 32 | */ 33 | public function getNotCalledListeners(); 34 | } 35 | -------------------------------------------------------------------------------- /vendor/symfony/event-dispatcher/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2004-2015 Fabien Potencier 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is furnished 8 | to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in all 11 | copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /vendor/symfony/event-dispatcher/README.md: -------------------------------------------------------------------------------- 1 | EventDispatcher Component 2 | ========================= 3 | 4 | The Symfony EventDispatcher component implements the Mediator pattern in a 5 | simple and effective way to make your projects truly extensible. 6 | 7 | ```php 8 | use Symfony\Component\EventDispatcher\EventDispatcher; 9 | use Symfony\Component\EventDispatcher\Event; 10 | 11 | $dispatcher = new EventDispatcher(); 12 | 13 | $dispatcher->addListener('event_name', function (Event $event) { 14 | // ... 15 | }); 16 | 17 | $dispatcher->dispatch('event_name'); 18 | ``` 19 | 20 | Resources 21 | --------- 22 | 23 | You can run the unit tests with the following command: 24 | 25 | $ cd path/to/Symfony/Component/EventDispatcher/ 26 | $ composer install 27 | $ phpunit 28 | -------------------------------------------------------------------------------- /vendor/symfony/event-dispatcher/Tests/EventDispatcherTest.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Symfony\Component\EventDispatcher\Tests; 13 | 14 | use Symfony\Component\EventDispatcher\EventDispatcher; 15 | 16 | class EventDispatcherTest extends AbstractEventDispatcherTest 17 | { 18 | protected function createEventDispatcher() 19 | { 20 | return new EventDispatcher(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /vendor/symfony/event-dispatcher/phpunit.xml.dist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | ./Tests/ 16 | 17 | 18 | 19 | 20 | 21 | ./ 22 | 23 | ./Resources 24 | ./Tests 25 | ./vendor 26 | 27 | 28 | 29 | 30 | --------------------------------------------------------------------------------