├── .gitignore ├── .travis.yml ├── README.md ├── composer.json ├── example └── index.php ├── phpunit.xml.dist ├── src ├── Address.php ├── CepGratis.php ├── Clients │ └── CurlHttpClient.php ├── Contracts │ ├── HttpClientContract.php │ └── ProviderContract.php ├── Exceptions │ ├── CepGratisInvalidParameterException.php │ └── CepGratisTimeoutException.php └── Providers │ ├── CorreiosProvider.php │ └── ViaCepProvider.php └── tests ├── resources ├── correios.error.html └── correios.success.html └── src ├── CepGratisTest.php ├── Providers └── CorreiosProviderTest.php └── Util.php /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jansenfelipe/cep-gratis/HEAD/.gitignore -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jansenfelipe/cep-gratis/HEAD/.travis.yml -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jansenfelipe/cep-gratis/HEAD/README.md -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jansenfelipe/cep-gratis/HEAD/composer.json -------------------------------------------------------------------------------- /example/index.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jansenfelipe/cep-gratis/HEAD/example/index.php -------------------------------------------------------------------------------- /phpunit.xml.dist: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jansenfelipe/cep-gratis/HEAD/phpunit.xml.dist -------------------------------------------------------------------------------- /src/Address.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jansenfelipe/cep-gratis/HEAD/src/Address.php -------------------------------------------------------------------------------- /src/CepGratis.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jansenfelipe/cep-gratis/HEAD/src/CepGratis.php -------------------------------------------------------------------------------- /src/Clients/CurlHttpClient.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jansenfelipe/cep-gratis/HEAD/src/Clients/CurlHttpClient.php -------------------------------------------------------------------------------- /src/Contracts/HttpClientContract.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jansenfelipe/cep-gratis/HEAD/src/Contracts/HttpClientContract.php -------------------------------------------------------------------------------- /src/Contracts/ProviderContract.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jansenfelipe/cep-gratis/HEAD/src/Contracts/ProviderContract.php -------------------------------------------------------------------------------- /src/Exceptions/CepGratisInvalidParameterException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jansenfelipe/cep-gratis/HEAD/src/Exceptions/CepGratisInvalidParameterException.php -------------------------------------------------------------------------------- /src/Exceptions/CepGratisTimeoutException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jansenfelipe/cep-gratis/HEAD/src/Exceptions/CepGratisTimeoutException.php -------------------------------------------------------------------------------- /src/Providers/CorreiosProvider.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jansenfelipe/cep-gratis/HEAD/src/Providers/CorreiosProvider.php -------------------------------------------------------------------------------- /src/Providers/ViaCepProvider.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jansenfelipe/cep-gratis/HEAD/src/Providers/ViaCepProvider.php -------------------------------------------------------------------------------- /tests/resources/correios.error.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jansenfelipe/cep-gratis/HEAD/tests/resources/correios.error.html -------------------------------------------------------------------------------- /tests/resources/correios.success.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jansenfelipe/cep-gratis/HEAD/tests/resources/correios.success.html -------------------------------------------------------------------------------- /tests/src/CepGratisTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jansenfelipe/cep-gratis/HEAD/tests/src/CepGratisTest.php -------------------------------------------------------------------------------- /tests/src/Providers/CorreiosProviderTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jansenfelipe/cep-gratis/HEAD/tests/src/Providers/CorreiosProviderTest.php -------------------------------------------------------------------------------- /tests/src/Util.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jansenfelipe/cep-gratis/HEAD/tests/src/Util.php --------------------------------------------------------------------------------