├── .gitignore ├── .idea ├── .gitignore ├── brasilapi-php.iml ├── inspectionProfiles │ └── Project_Default.xml ├── modules.xml ├── php.xml └── vcs.xml ├── LICENSE.md ├── README.md ├── composer.json ├── composer.lock ├── phpunit.xml ├── src ├── Client.php ├── Endpoints │ ├── Abstracts │ │ └── Endpoint.php │ ├── Banks.php │ ├── CEP.php │ ├── CEPV2.php │ ├── CNPJ.php │ ├── CPTEC.php │ ├── Collections │ │ └── Endpoints.php │ ├── DDD.php │ ├── FIPE.php │ ├── Holidays.php │ ├── IBGE.php │ ├── ISBN.php │ ├── NCM.php │ ├── Pix.php │ ├── Realtors.php │ ├── RegisterBR.php │ └── Taxes.php ├── Exceptions │ ├── BrasilApiException.php │ ├── EndpointNotFound.php │ └── InvalidJsonException.php └── Handlers │ ├── ResponseHandler.php │ └── UriHandler.php └── tests ├── Pest.php └── Unit ├── BrasilApiExceptionTest.php ├── BrasilApiTestCase.php ├── ClientTest.php ├── Endpoints ├── BankTest.php ├── CEPTest.php ├── CEPV2Test.php ├── CNPJTest.php ├── CPTECTest.php ├── DDDTest.php ├── FIPETest.php ├── HolidayTest.php ├── IBGETest.php ├── ISBNTest.php ├── NCMTest.php ├── PixTest.php ├── RealtorTest.php ├── RegisterBRTest.php └── TaxTest.php ├── Mocks ├── Bank.json ├── Banks.json ├── CEP.json ├── CEPV2.json ├── CNPJ.json ├── CPTECCities.json ├── CPTECCity.json ├── CPTECOceanForecastInCity.json ├── CPTECOceanForecastInCityInXDays.json ├── CPTECWeatherInAirport.json ├── CPTECWeatherInCapitals.json ├── CPTECWeatherInCity.json ├── CPTECWeatherInCityInXDays.json ├── DDD.json ├── FIPEBrandsByTypeVehicle.json ├── FIPEPrice.json ├── FIPEReferenceTables.json ├── Holidays.json ├── IBGEState.json ├── IBGEStateCities.json ├── IBGEStates.json ├── ISBNBook.json ├── NCM.json ├── NCMList.json ├── NCMSearch.json ├── PixParticipants.json ├── Realtor.json ├── Realtors.json ├── RegisterBRDomain.json ├── TaxFee.json └── TaxFees.json ├── ResponseHandlerTest.php └── UrlHandlerTest.php /.gitignore: -------------------------------------------------------------------------------- 1 | /vendor -------------------------------------------------------------------------------- /.idea/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreoneres/brasilapi-php/HEAD/.idea/.gitignore -------------------------------------------------------------------------------- /.idea/brasilapi-php.iml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreoneres/brasilapi-php/HEAD/.idea/brasilapi-php.iml -------------------------------------------------------------------------------- /.idea/inspectionProfiles/Project_Default.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreoneres/brasilapi-php/HEAD/.idea/inspectionProfiles/Project_Default.xml -------------------------------------------------------------------------------- /.idea/modules.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreoneres/brasilapi-php/HEAD/.idea/modules.xml -------------------------------------------------------------------------------- /.idea/php.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreoneres/brasilapi-php/HEAD/.idea/php.xml -------------------------------------------------------------------------------- /.idea/vcs.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreoneres/brasilapi-php/HEAD/.idea/vcs.xml -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreoneres/brasilapi-php/HEAD/LICENSE.md -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreoneres/brasilapi-php/HEAD/README.md -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreoneres/brasilapi-php/HEAD/composer.json -------------------------------------------------------------------------------- /composer.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreoneres/brasilapi-php/HEAD/composer.lock -------------------------------------------------------------------------------- /phpunit.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreoneres/brasilapi-php/HEAD/phpunit.xml -------------------------------------------------------------------------------- /src/Client.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreoneres/brasilapi-php/HEAD/src/Client.php -------------------------------------------------------------------------------- /src/Endpoints/Abstracts/Endpoint.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreoneres/brasilapi-php/HEAD/src/Endpoints/Abstracts/Endpoint.php -------------------------------------------------------------------------------- /src/Endpoints/Banks.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreoneres/brasilapi-php/HEAD/src/Endpoints/Banks.php -------------------------------------------------------------------------------- /src/Endpoints/CEP.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreoneres/brasilapi-php/HEAD/src/Endpoints/CEP.php -------------------------------------------------------------------------------- /src/Endpoints/CEPV2.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreoneres/brasilapi-php/HEAD/src/Endpoints/CEPV2.php -------------------------------------------------------------------------------- /src/Endpoints/CNPJ.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreoneres/brasilapi-php/HEAD/src/Endpoints/CNPJ.php -------------------------------------------------------------------------------- /src/Endpoints/CPTEC.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreoneres/brasilapi-php/HEAD/src/Endpoints/CPTEC.php -------------------------------------------------------------------------------- /src/Endpoints/Collections/Endpoints.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreoneres/brasilapi-php/HEAD/src/Endpoints/Collections/Endpoints.php -------------------------------------------------------------------------------- /src/Endpoints/DDD.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreoneres/brasilapi-php/HEAD/src/Endpoints/DDD.php -------------------------------------------------------------------------------- /src/Endpoints/FIPE.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreoneres/brasilapi-php/HEAD/src/Endpoints/FIPE.php -------------------------------------------------------------------------------- /src/Endpoints/Holidays.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreoneres/brasilapi-php/HEAD/src/Endpoints/Holidays.php -------------------------------------------------------------------------------- /src/Endpoints/IBGE.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreoneres/brasilapi-php/HEAD/src/Endpoints/IBGE.php -------------------------------------------------------------------------------- /src/Endpoints/ISBN.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreoneres/brasilapi-php/HEAD/src/Endpoints/ISBN.php -------------------------------------------------------------------------------- /src/Endpoints/NCM.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreoneres/brasilapi-php/HEAD/src/Endpoints/NCM.php -------------------------------------------------------------------------------- /src/Endpoints/Pix.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreoneres/brasilapi-php/HEAD/src/Endpoints/Pix.php -------------------------------------------------------------------------------- /src/Endpoints/Realtors.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreoneres/brasilapi-php/HEAD/src/Endpoints/Realtors.php -------------------------------------------------------------------------------- /src/Endpoints/RegisterBR.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreoneres/brasilapi-php/HEAD/src/Endpoints/RegisterBR.php -------------------------------------------------------------------------------- /src/Endpoints/Taxes.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreoneres/brasilapi-php/HEAD/src/Endpoints/Taxes.php -------------------------------------------------------------------------------- /src/Exceptions/BrasilApiException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreoneres/brasilapi-php/HEAD/src/Exceptions/BrasilApiException.php -------------------------------------------------------------------------------- /src/Exceptions/EndpointNotFound.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreoneres/brasilapi-php/HEAD/src/Exceptions/EndpointNotFound.php -------------------------------------------------------------------------------- /src/Exceptions/InvalidJsonException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreoneres/brasilapi-php/HEAD/src/Exceptions/InvalidJsonException.php -------------------------------------------------------------------------------- /src/Handlers/ResponseHandler.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreoneres/brasilapi-php/HEAD/src/Handlers/ResponseHandler.php -------------------------------------------------------------------------------- /src/Handlers/UriHandler.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreoneres/brasilapi-php/HEAD/src/Handlers/UriHandler.php -------------------------------------------------------------------------------- /tests/Pest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreoneres/brasilapi-php/HEAD/tests/Pest.php -------------------------------------------------------------------------------- /tests/Unit/BrasilApiExceptionTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreoneres/brasilapi-php/HEAD/tests/Unit/BrasilApiExceptionTest.php -------------------------------------------------------------------------------- /tests/Unit/BrasilApiTestCase.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreoneres/brasilapi-php/HEAD/tests/Unit/BrasilApiTestCase.php -------------------------------------------------------------------------------- /tests/Unit/ClientTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreoneres/brasilapi-php/HEAD/tests/Unit/ClientTest.php -------------------------------------------------------------------------------- /tests/Unit/Endpoints/BankTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreoneres/brasilapi-php/HEAD/tests/Unit/Endpoints/BankTest.php -------------------------------------------------------------------------------- /tests/Unit/Endpoints/CEPTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreoneres/brasilapi-php/HEAD/tests/Unit/Endpoints/CEPTest.php -------------------------------------------------------------------------------- /tests/Unit/Endpoints/CEPV2Test.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreoneres/brasilapi-php/HEAD/tests/Unit/Endpoints/CEPV2Test.php -------------------------------------------------------------------------------- /tests/Unit/Endpoints/CNPJTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreoneres/brasilapi-php/HEAD/tests/Unit/Endpoints/CNPJTest.php -------------------------------------------------------------------------------- /tests/Unit/Endpoints/CPTECTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreoneres/brasilapi-php/HEAD/tests/Unit/Endpoints/CPTECTest.php -------------------------------------------------------------------------------- /tests/Unit/Endpoints/DDDTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreoneres/brasilapi-php/HEAD/tests/Unit/Endpoints/DDDTest.php -------------------------------------------------------------------------------- /tests/Unit/Endpoints/FIPETest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreoneres/brasilapi-php/HEAD/tests/Unit/Endpoints/FIPETest.php -------------------------------------------------------------------------------- /tests/Unit/Endpoints/HolidayTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreoneres/brasilapi-php/HEAD/tests/Unit/Endpoints/HolidayTest.php -------------------------------------------------------------------------------- /tests/Unit/Endpoints/IBGETest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreoneres/brasilapi-php/HEAD/tests/Unit/Endpoints/IBGETest.php -------------------------------------------------------------------------------- /tests/Unit/Endpoints/ISBNTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreoneres/brasilapi-php/HEAD/tests/Unit/Endpoints/ISBNTest.php -------------------------------------------------------------------------------- /tests/Unit/Endpoints/NCMTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreoneres/brasilapi-php/HEAD/tests/Unit/Endpoints/NCMTest.php -------------------------------------------------------------------------------- /tests/Unit/Endpoints/PixTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreoneres/brasilapi-php/HEAD/tests/Unit/Endpoints/PixTest.php -------------------------------------------------------------------------------- /tests/Unit/Endpoints/RealtorTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreoneres/brasilapi-php/HEAD/tests/Unit/Endpoints/RealtorTest.php -------------------------------------------------------------------------------- /tests/Unit/Endpoints/RegisterBRTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreoneres/brasilapi-php/HEAD/tests/Unit/Endpoints/RegisterBRTest.php -------------------------------------------------------------------------------- /tests/Unit/Endpoints/TaxTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreoneres/brasilapi-php/HEAD/tests/Unit/Endpoints/TaxTest.php -------------------------------------------------------------------------------- /tests/Unit/Mocks/Bank.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreoneres/brasilapi-php/HEAD/tests/Unit/Mocks/Bank.json -------------------------------------------------------------------------------- /tests/Unit/Mocks/Banks.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreoneres/brasilapi-php/HEAD/tests/Unit/Mocks/Banks.json -------------------------------------------------------------------------------- /tests/Unit/Mocks/CEP.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreoneres/brasilapi-php/HEAD/tests/Unit/Mocks/CEP.json -------------------------------------------------------------------------------- /tests/Unit/Mocks/CEPV2.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreoneres/brasilapi-php/HEAD/tests/Unit/Mocks/CEPV2.json -------------------------------------------------------------------------------- /tests/Unit/Mocks/CNPJ.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreoneres/brasilapi-php/HEAD/tests/Unit/Mocks/CNPJ.json -------------------------------------------------------------------------------- /tests/Unit/Mocks/CPTECCities.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreoneres/brasilapi-php/HEAD/tests/Unit/Mocks/CPTECCities.json -------------------------------------------------------------------------------- /tests/Unit/Mocks/CPTECCity.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreoneres/brasilapi-php/HEAD/tests/Unit/Mocks/CPTECCity.json -------------------------------------------------------------------------------- /tests/Unit/Mocks/CPTECOceanForecastInCity.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreoneres/brasilapi-php/HEAD/tests/Unit/Mocks/CPTECOceanForecastInCity.json -------------------------------------------------------------------------------- /tests/Unit/Mocks/CPTECOceanForecastInCityInXDays.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreoneres/brasilapi-php/HEAD/tests/Unit/Mocks/CPTECOceanForecastInCityInXDays.json -------------------------------------------------------------------------------- /tests/Unit/Mocks/CPTECWeatherInAirport.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreoneres/brasilapi-php/HEAD/tests/Unit/Mocks/CPTECWeatherInAirport.json -------------------------------------------------------------------------------- /tests/Unit/Mocks/CPTECWeatherInCapitals.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreoneres/brasilapi-php/HEAD/tests/Unit/Mocks/CPTECWeatherInCapitals.json -------------------------------------------------------------------------------- /tests/Unit/Mocks/CPTECWeatherInCity.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreoneres/brasilapi-php/HEAD/tests/Unit/Mocks/CPTECWeatherInCity.json -------------------------------------------------------------------------------- /tests/Unit/Mocks/CPTECWeatherInCityInXDays.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreoneres/brasilapi-php/HEAD/tests/Unit/Mocks/CPTECWeatherInCityInXDays.json -------------------------------------------------------------------------------- /tests/Unit/Mocks/DDD.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreoneres/brasilapi-php/HEAD/tests/Unit/Mocks/DDD.json -------------------------------------------------------------------------------- /tests/Unit/Mocks/FIPEBrandsByTypeVehicle.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreoneres/brasilapi-php/HEAD/tests/Unit/Mocks/FIPEBrandsByTypeVehicle.json -------------------------------------------------------------------------------- /tests/Unit/Mocks/FIPEPrice.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreoneres/brasilapi-php/HEAD/tests/Unit/Mocks/FIPEPrice.json -------------------------------------------------------------------------------- /tests/Unit/Mocks/FIPEReferenceTables.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreoneres/brasilapi-php/HEAD/tests/Unit/Mocks/FIPEReferenceTables.json -------------------------------------------------------------------------------- /tests/Unit/Mocks/Holidays.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreoneres/brasilapi-php/HEAD/tests/Unit/Mocks/Holidays.json -------------------------------------------------------------------------------- /tests/Unit/Mocks/IBGEState.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreoneres/brasilapi-php/HEAD/tests/Unit/Mocks/IBGEState.json -------------------------------------------------------------------------------- /tests/Unit/Mocks/IBGEStateCities.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreoneres/brasilapi-php/HEAD/tests/Unit/Mocks/IBGEStateCities.json -------------------------------------------------------------------------------- /tests/Unit/Mocks/IBGEStates.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreoneres/brasilapi-php/HEAD/tests/Unit/Mocks/IBGEStates.json -------------------------------------------------------------------------------- /tests/Unit/Mocks/ISBNBook.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreoneres/brasilapi-php/HEAD/tests/Unit/Mocks/ISBNBook.json -------------------------------------------------------------------------------- /tests/Unit/Mocks/NCM.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreoneres/brasilapi-php/HEAD/tests/Unit/Mocks/NCM.json -------------------------------------------------------------------------------- /tests/Unit/Mocks/NCMList.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreoneres/brasilapi-php/HEAD/tests/Unit/Mocks/NCMList.json -------------------------------------------------------------------------------- /tests/Unit/Mocks/NCMSearch.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreoneres/brasilapi-php/HEAD/tests/Unit/Mocks/NCMSearch.json -------------------------------------------------------------------------------- /tests/Unit/Mocks/PixParticipants.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreoneres/brasilapi-php/HEAD/tests/Unit/Mocks/PixParticipants.json -------------------------------------------------------------------------------- /tests/Unit/Mocks/Realtor.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreoneres/brasilapi-php/HEAD/tests/Unit/Mocks/Realtor.json -------------------------------------------------------------------------------- /tests/Unit/Mocks/Realtors.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreoneres/brasilapi-php/HEAD/tests/Unit/Mocks/Realtors.json -------------------------------------------------------------------------------- /tests/Unit/Mocks/RegisterBRDomain.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreoneres/brasilapi-php/HEAD/tests/Unit/Mocks/RegisterBRDomain.json -------------------------------------------------------------------------------- /tests/Unit/Mocks/TaxFee.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreoneres/brasilapi-php/HEAD/tests/Unit/Mocks/TaxFee.json -------------------------------------------------------------------------------- /tests/Unit/Mocks/TaxFees.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreoneres/brasilapi-php/HEAD/tests/Unit/Mocks/TaxFees.json -------------------------------------------------------------------------------- /tests/Unit/ResponseHandlerTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreoneres/brasilapi-php/HEAD/tests/Unit/ResponseHandlerTest.php -------------------------------------------------------------------------------- /tests/Unit/UrlHandlerTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreoneres/brasilapi-php/HEAD/tests/Unit/UrlHandlerTest.php --------------------------------------------------------------------------------