{"id":19513429,"url":"https://github.com/escolalms/mailerlite","last_synced_at":"2026-04-16T22:31:19.371Z","repository":{"id":39376874,"uuid":"457280103","full_name":"EscolaLMS/MailerLite","owner":"EscolaLMS","description":"MailerLite integration for customised group for LMS events","archived":false,"fork":false,"pushed_at":"2023-07-12T12:03:26.000Z","size":35,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-08T21:43:09.284Z","etag":null,"topics":["laravel","rest-api"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/EscolaLMS.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-02-09T08:55:03.000Z","updated_at":"2023-07-18T09:10:11.000Z","dependencies_parsed_at":"2024-11-10T23:30:12.053Z","dependency_job_id":"f83a2aa8-fe50-443f-bcc6-628adddd120c","html_url":"https://github.com/EscolaLMS/MailerLite","commit_stats":{"total_commits":13,"total_committers":3,"mean_commits":4.333333333333333,"dds":0.3076923076923077,"last_synced_commit":"d795ff1d13742a1c2b72920e5e0e217bfe68be8e"},"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EscolaLMS%2FMailerLite","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EscolaLMS%2FMailerLite/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EscolaLMS%2FMailerLite/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EscolaLMS%2FMailerLite/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/EscolaLMS","download_url":"https://codeload.github.com/EscolaLMS/MailerLite/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240762497,"owners_count":19853494,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["laravel","rest-api"],"created_at":"2024-11-10T23:29:58.562Z","updated_at":"2026-04-16T22:31:19.060Z","avatar_url":"https://github.com/EscolaLMS.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MailerLite\n\n[![codecov](https://codecov.io/gh/EscolaLMS/MailerLite/branch/main/graph/badge.svg?token=NRAN4R8AGZ)](https://codecov.io/gh/EscolaLMS/MailerLite)\n[![phpunit](https://github.com/EscolaLMS/MailerLite/actions/workflows/test.yml/badge.svg)](https://github.com/EscolaLMS/MailerLite/actions/workflows/test.yml)\n[![downloads](https://img.shields.io/packagist/dt/escolalms/mailerlite)](https://packagist.org/packages/escolalms/mailerlite)\n[![downloads](https://img.shields.io/packagist/v/escolalms/mailerlite)](https://packagist.org/packages/escolalms/mailerlite)\n[![downloads](https://img.shields.io/packagist/l/escolalms/mailerlite)](https://packagist.org/packages/escolalms/mailerlite)\n[![Maintainability](https://api.codeclimate.com/v1/badges/00725c6ea461fcfa2754/maintainability)](https://codeclimate.com/github/EscolaLMS/MailerLite/maintainability)\n[![Test Coverage](https://api.codeclimate.com/v1/badges/00725c6ea461fcfa2754/test_coverage)](https://codeclimate.com/github/EscolaLMS/MailerLite/test_coverage)\n\n## What does it do\n\nThis package is used for integration with [MailerLite](https://www.mailerlite.com/) after dispatching events.\n\n## Installing\n\n- `composer require escolalms/mailerlite`\n\n## Example\n\nYou can set the package status and api key using the Facade\n```php        \nConfig::set('escolalms_mailer_lite.package_status', PackageStatusEnum::ENABLED);\nConfig::set('escolalms_mailer_lite.api_key', '1234);\n```\nor [Settings package](https://github.com/EscolaLMS/settings)\n```php \n$this-\u003eactingAs($this-\u003euser, 'api')-\u003epostJson(\n    '/api/admin/config',\n    [\n        'config' =\u003e [\n            [\n                'key' =\u003e 'escolalms_mailer_lite.package_status',\n                'value' =\u003e PackageStatusEnum::ENABLED,\n            ],\n            [\n                'key' =\u003e 'escolalms_mailer_lite.api_key',\n                'value' =\u003e '1234',\n            ],\n        ]\n    ]\n);\n```\n\nGroup names are also configurable.\n\n```php\n$this-\u003eactingAs($this-\u003euser, 'api')-\u003epostJson(\n    '/api/admin/config',\n    [\n        'config' =\u003e [\n            [\n                'key' =\u003e 'escolalms_mailer_lite.group_registered_group',\n                'value' =\u003e 'registered users',\n            ],\n            [\n                'key' =\u003e 'escolalms_mailer_lite.group_order_paid',\n                'value' =\u003e 'order paid',\n            ],\n            [\n                'key' =\u003e 'escolalms_mailer_lite.group_left_cart',\n                'value' =\u003e 'left cart',\n            ],\n        ]\n    ]\n);\n```\n\n## Tests\n\nRun `./vendor/bin/phpunit` to run tests.\n\nTest details\n[![codecov](https://codecov.io/gh/EscolaLMS/MailerLite/branch/main/graph/badge.svg?token=NRAN4R8AGZ)](https://codecov.io/gh/EscolaLMS/MailerLite)\n[![phpunit](https://github.com/EscolaLMS/MailerLite/actions/workflows/test.yml/badge.svg)](https://github.com/EscolaLMS/MailerLite/actions/workflows/test.yml)\n\n\n## Listeners\n\nHandling events\n- `EscolaLms\\Auth\\Events\\AccountConfirmed` =\u003e add to group of registered users (`escolalms_mailer_lite.group_registered_group`)\n- `EscolaLms\\Cart\\Events\\ProductBought` =\u003e add to group of users with paid orders (`escolalms_mailer_lite.group_order_paid`)\n- `EscolaLms\\Auth\\Events\\AccountBlocked` =\u003e remove from all groups\n- `EscolaLms\\Cart\\Events\\AbandonedCartEvent` =\u003e add to the group of users with abandoned carts (`escolalms_mailer_lite.group_left_cart`)\n- `EscolaLms\\Cart\\Events\\OrderCreated` =\u003e remove from the group of users with abandoned carts (`escolalms_mailer_lite.group_left_cart`)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fescolalms%2Fmailerlite","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fescolalms%2Fmailerlite","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fescolalms%2Fmailerlite/lists"}