├── .editorconfig ├── .github ├── ISSUE_TEMPLATE │ ├── bug_report.md │ └── feature_request.md └── workflows │ ├── format.yml │ ├── static.yml │ └── test.yml ├── .gitignore ├── .php-cs-fixer.dist.php ├── CHANGELOG.md ├── LICENSE.md ├── README.md ├── composer.json ├── phpstan.neon.dist ├── phpunit.xml.dist ├── src ├── Common │ ├── Constants.php │ ├── HttpLayer.php │ ├── HttpLayerPsr.php │ └── HttpLayerPsrBridge.php ├── Endpoints │ ├── AbstractEndpoint.php │ ├── Automation.php │ ├── Batch.php │ ├── Campaign.php │ ├── CampaignLanguage.php │ ├── Cart.php │ ├── CartItem.php │ ├── Customer.php │ ├── Field.php │ ├── Form.php │ ├── Group.php │ ├── Import.php │ ├── Order.php │ ├── Product.php │ ├── Segment.php │ ├── Subscriber.php │ ├── Timezone.php │ └── Webhook.php ├── Exceptions │ ├── MailerLiteException.php │ ├── MailerLiteHttpException.php │ └── MailerLiteValidationException.php ├── Helpers │ ├── BuildUri.php │ └── HttpErrorHelper.php ├── Http │ ├── Adapters │ │ ├── GuzzleClientAdapter.php │ │ └── Psr17FactoryAggregate.php │ ├── ClientInterface.php │ ├── Exceptions │ │ ├── Forbidden.php │ │ ├── HttpException.php │ │ ├── NotFound.php │ │ ├── ServerError.php │ │ ├── TooManyRequests.php │ │ └── Unauthorized.php │ ├── HttpErrorMapper.php │ ├── RequestFactoryInterface.php │ ├── RetryingClient.php │ └── StreamFactoryInterface.php └── MailerLite.php └── tests ├── Common └── HttpLayerPsrTest.php ├── Endpoints ├── AutomationTest.php ├── BatchTest.php ├── CampaignLanguageTest.php ├── CampaignTest.php ├── CartTest.php ├── CustomerTest.php ├── FieldTest.php ├── FormTest.php ├── GroupTest.php ├── ImportTest.php.php ├── OrderTest.php ├── ProductTest.php ├── SegmentTest.php ├── SubscriberTest.php ├── TimezoneTest.php └── WebhookTest.php ├── Fakes └── FakeClient.php ├── Http ├── ExceptionsPayloadTest.php ├── GuzzleClientAdapter.php ├── HttpErrorMapperTest.php ├── Psr17FactoryAggregate.php └── RetryingClientTest.php ├── MailerLiteTest.php ├── Support └── PsrTestHelper.php └── TestCase.php /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mailerlite/mailerlite-php/HEAD/.editorconfig -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/bug_report.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mailerlite/mailerlite-php/HEAD/.github/ISSUE_TEMPLATE/bug_report.md -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feature_request.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mailerlite/mailerlite-php/HEAD/.github/ISSUE_TEMPLATE/feature_request.md -------------------------------------------------------------------------------- /.github/workflows/format.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mailerlite/mailerlite-php/HEAD/.github/workflows/format.yml -------------------------------------------------------------------------------- /.github/workflows/static.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mailerlite/mailerlite-php/HEAD/.github/workflows/static.yml -------------------------------------------------------------------------------- /.github/workflows/test.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mailerlite/mailerlite-php/HEAD/.github/workflows/test.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mailerlite/mailerlite-php/HEAD/.gitignore -------------------------------------------------------------------------------- /.php-cs-fixer.dist.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mailerlite/mailerlite-php/HEAD/.php-cs-fixer.dist.php -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mailerlite/mailerlite-php/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mailerlite/mailerlite-php/HEAD/LICENSE.md -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mailerlite/mailerlite-php/HEAD/README.md -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mailerlite/mailerlite-php/HEAD/composer.json -------------------------------------------------------------------------------- /phpstan.neon.dist: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mailerlite/mailerlite-php/HEAD/phpstan.neon.dist -------------------------------------------------------------------------------- /phpunit.xml.dist: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mailerlite/mailerlite-php/HEAD/phpunit.xml.dist -------------------------------------------------------------------------------- /src/Common/Constants.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mailerlite/mailerlite-php/HEAD/src/Common/Constants.php -------------------------------------------------------------------------------- /src/Common/HttpLayer.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mailerlite/mailerlite-php/HEAD/src/Common/HttpLayer.php -------------------------------------------------------------------------------- /src/Common/HttpLayerPsr.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mailerlite/mailerlite-php/HEAD/src/Common/HttpLayerPsr.php -------------------------------------------------------------------------------- /src/Common/HttpLayerPsrBridge.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mailerlite/mailerlite-php/HEAD/src/Common/HttpLayerPsrBridge.php -------------------------------------------------------------------------------- /src/Endpoints/AbstractEndpoint.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mailerlite/mailerlite-php/HEAD/src/Endpoints/AbstractEndpoint.php -------------------------------------------------------------------------------- /src/Endpoints/Automation.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mailerlite/mailerlite-php/HEAD/src/Endpoints/Automation.php -------------------------------------------------------------------------------- /src/Endpoints/Batch.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mailerlite/mailerlite-php/HEAD/src/Endpoints/Batch.php -------------------------------------------------------------------------------- /src/Endpoints/Campaign.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mailerlite/mailerlite-php/HEAD/src/Endpoints/Campaign.php -------------------------------------------------------------------------------- /src/Endpoints/CampaignLanguage.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mailerlite/mailerlite-php/HEAD/src/Endpoints/CampaignLanguage.php -------------------------------------------------------------------------------- /src/Endpoints/Cart.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mailerlite/mailerlite-php/HEAD/src/Endpoints/Cart.php -------------------------------------------------------------------------------- /src/Endpoints/CartItem.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mailerlite/mailerlite-php/HEAD/src/Endpoints/CartItem.php -------------------------------------------------------------------------------- /src/Endpoints/Customer.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mailerlite/mailerlite-php/HEAD/src/Endpoints/Customer.php -------------------------------------------------------------------------------- /src/Endpoints/Field.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mailerlite/mailerlite-php/HEAD/src/Endpoints/Field.php -------------------------------------------------------------------------------- /src/Endpoints/Form.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mailerlite/mailerlite-php/HEAD/src/Endpoints/Form.php -------------------------------------------------------------------------------- /src/Endpoints/Group.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mailerlite/mailerlite-php/HEAD/src/Endpoints/Group.php -------------------------------------------------------------------------------- /src/Endpoints/Import.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mailerlite/mailerlite-php/HEAD/src/Endpoints/Import.php -------------------------------------------------------------------------------- /src/Endpoints/Order.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mailerlite/mailerlite-php/HEAD/src/Endpoints/Order.php -------------------------------------------------------------------------------- /src/Endpoints/Product.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mailerlite/mailerlite-php/HEAD/src/Endpoints/Product.php -------------------------------------------------------------------------------- /src/Endpoints/Segment.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mailerlite/mailerlite-php/HEAD/src/Endpoints/Segment.php -------------------------------------------------------------------------------- /src/Endpoints/Subscriber.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mailerlite/mailerlite-php/HEAD/src/Endpoints/Subscriber.php -------------------------------------------------------------------------------- /src/Endpoints/Timezone.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mailerlite/mailerlite-php/HEAD/src/Endpoints/Timezone.php -------------------------------------------------------------------------------- /src/Endpoints/Webhook.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mailerlite/mailerlite-php/HEAD/src/Endpoints/Webhook.php -------------------------------------------------------------------------------- /src/Exceptions/MailerLiteException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mailerlite/mailerlite-php/HEAD/src/Exceptions/MailerLiteException.php -------------------------------------------------------------------------------- /src/Exceptions/MailerLiteHttpException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mailerlite/mailerlite-php/HEAD/src/Exceptions/MailerLiteHttpException.php -------------------------------------------------------------------------------- /src/Exceptions/MailerLiteValidationException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mailerlite/mailerlite-php/HEAD/src/Exceptions/MailerLiteValidationException.php -------------------------------------------------------------------------------- /src/Helpers/BuildUri.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mailerlite/mailerlite-php/HEAD/src/Helpers/BuildUri.php -------------------------------------------------------------------------------- /src/Helpers/HttpErrorHelper.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mailerlite/mailerlite-php/HEAD/src/Helpers/HttpErrorHelper.php -------------------------------------------------------------------------------- /src/Http/Adapters/GuzzleClientAdapter.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mailerlite/mailerlite-php/HEAD/src/Http/Adapters/GuzzleClientAdapter.php -------------------------------------------------------------------------------- /src/Http/Adapters/Psr17FactoryAggregate.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mailerlite/mailerlite-php/HEAD/src/Http/Adapters/Psr17FactoryAggregate.php -------------------------------------------------------------------------------- /src/Http/ClientInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mailerlite/mailerlite-php/HEAD/src/Http/ClientInterface.php -------------------------------------------------------------------------------- /src/Http/Exceptions/Forbidden.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mailerlite/mailerlite-php/HEAD/src/Http/Exceptions/Forbidden.php -------------------------------------------------------------------------------- /src/Http/Exceptions/HttpException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mailerlite/mailerlite-php/HEAD/src/Http/Exceptions/HttpException.php -------------------------------------------------------------------------------- /src/Http/Exceptions/NotFound.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mailerlite/mailerlite-php/HEAD/src/Http/Exceptions/NotFound.php -------------------------------------------------------------------------------- /src/Http/Exceptions/ServerError.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mailerlite/mailerlite-php/HEAD/src/Http/Exceptions/ServerError.php -------------------------------------------------------------------------------- /src/Http/Exceptions/TooManyRequests.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mailerlite/mailerlite-php/HEAD/src/Http/Exceptions/TooManyRequests.php -------------------------------------------------------------------------------- /src/Http/Exceptions/Unauthorized.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mailerlite/mailerlite-php/HEAD/src/Http/Exceptions/Unauthorized.php -------------------------------------------------------------------------------- /src/Http/HttpErrorMapper.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mailerlite/mailerlite-php/HEAD/src/Http/HttpErrorMapper.php -------------------------------------------------------------------------------- /src/Http/RequestFactoryInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mailerlite/mailerlite-php/HEAD/src/Http/RequestFactoryInterface.php -------------------------------------------------------------------------------- /src/Http/RetryingClient.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mailerlite/mailerlite-php/HEAD/src/Http/RetryingClient.php -------------------------------------------------------------------------------- /src/Http/StreamFactoryInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mailerlite/mailerlite-php/HEAD/src/Http/StreamFactoryInterface.php -------------------------------------------------------------------------------- /src/MailerLite.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mailerlite/mailerlite-php/HEAD/src/MailerLite.php -------------------------------------------------------------------------------- /tests/Common/HttpLayerPsrTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mailerlite/mailerlite-php/HEAD/tests/Common/HttpLayerPsrTest.php -------------------------------------------------------------------------------- /tests/Endpoints/AutomationTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mailerlite/mailerlite-php/HEAD/tests/Endpoints/AutomationTest.php -------------------------------------------------------------------------------- /tests/Endpoints/BatchTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mailerlite/mailerlite-php/HEAD/tests/Endpoints/BatchTest.php -------------------------------------------------------------------------------- /tests/Endpoints/CampaignLanguageTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mailerlite/mailerlite-php/HEAD/tests/Endpoints/CampaignLanguageTest.php -------------------------------------------------------------------------------- /tests/Endpoints/CampaignTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mailerlite/mailerlite-php/HEAD/tests/Endpoints/CampaignTest.php -------------------------------------------------------------------------------- /tests/Endpoints/CartTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mailerlite/mailerlite-php/HEAD/tests/Endpoints/CartTest.php -------------------------------------------------------------------------------- /tests/Endpoints/CustomerTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mailerlite/mailerlite-php/HEAD/tests/Endpoints/CustomerTest.php -------------------------------------------------------------------------------- /tests/Endpoints/FieldTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mailerlite/mailerlite-php/HEAD/tests/Endpoints/FieldTest.php -------------------------------------------------------------------------------- /tests/Endpoints/FormTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mailerlite/mailerlite-php/HEAD/tests/Endpoints/FormTest.php -------------------------------------------------------------------------------- /tests/Endpoints/GroupTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mailerlite/mailerlite-php/HEAD/tests/Endpoints/GroupTest.php -------------------------------------------------------------------------------- /tests/Endpoints/ImportTest.php.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mailerlite/mailerlite-php/HEAD/tests/Endpoints/ImportTest.php.php -------------------------------------------------------------------------------- /tests/Endpoints/OrderTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mailerlite/mailerlite-php/HEAD/tests/Endpoints/OrderTest.php -------------------------------------------------------------------------------- /tests/Endpoints/ProductTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mailerlite/mailerlite-php/HEAD/tests/Endpoints/ProductTest.php -------------------------------------------------------------------------------- /tests/Endpoints/SegmentTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mailerlite/mailerlite-php/HEAD/tests/Endpoints/SegmentTest.php -------------------------------------------------------------------------------- /tests/Endpoints/SubscriberTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mailerlite/mailerlite-php/HEAD/tests/Endpoints/SubscriberTest.php -------------------------------------------------------------------------------- /tests/Endpoints/TimezoneTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mailerlite/mailerlite-php/HEAD/tests/Endpoints/TimezoneTest.php -------------------------------------------------------------------------------- /tests/Endpoints/WebhookTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mailerlite/mailerlite-php/HEAD/tests/Endpoints/WebhookTest.php -------------------------------------------------------------------------------- /tests/Fakes/FakeClient.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mailerlite/mailerlite-php/HEAD/tests/Fakes/FakeClient.php -------------------------------------------------------------------------------- /tests/Http/ExceptionsPayloadTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mailerlite/mailerlite-php/HEAD/tests/Http/ExceptionsPayloadTest.php -------------------------------------------------------------------------------- /tests/Http/GuzzleClientAdapter.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mailerlite/mailerlite-php/HEAD/tests/Http/GuzzleClientAdapter.php -------------------------------------------------------------------------------- /tests/Http/HttpErrorMapperTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mailerlite/mailerlite-php/HEAD/tests/Http/HttpErrorMapperTest.php -------------------------------------------------------------------------------- /tests/Http/Psr17FactoryAggregate.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mailerlite/mailerlite-php/HEAD/tests/Http/Psr17FactoryAggregate.php -------------------------------------------------------------------------------- /tests/Http/RetryingClientTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mailerlite/mailerlite-php/HEAD/tests/Http/RetryingClientTest.php -------------------------------------------------------------------------------- /tests/MailerLiteTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mailerlite/mailerlite-php/HEAD/tests/MailerLiteTest.php -------------------------------------------------------------------------------- /tests/Support/PsrTestHelper.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mailerlite/mailerlite-php/HEAD/tests/Support/PsrTestHelper.php -------------------------------------------------------------------------------- /tests/TestCase.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mailerlite/mailerlite-php/HEAD/tests/TestCase.php --------------------------------------------------------------------------------