{"id":16173462,"url":"https://github.com/sebkay/arbalest","last_synced_at":"2025-04-07T08:55:56.434Z","repository":{"id":45645975,"uuid":"302133039","full_name":"SebKay/arbalest","owner":"SebKay","description":"A simple all-in-one solution for managing email list subscribers in PHP. Supports Mailchimp, Campaign Monitor, ActiveCampaign, ConvertKit and more.","archived":false,"fork":false,"pushed_at":"2022-01-05T18:00:29.000Z","size":131,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-13T12:33:12.410Z","etag":null,"topics":["activecampaign","activecampaign-api","campaign-monitor","campaign-monitor-api","convertkit","convertkit-api","mailchimp","mailchimp-api","php"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SebKay.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-10-07T18:57:56.000Z","updated_at":"2022-04-07T07:14:42.000Z","dependencies_parsed_at":"2022-09-13T14:20:35.685Z","dependency_job_id":null,"html_url":"https://github.com/SebKay/arbalest","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SebKay%2Farbalest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SebKay%2Farbalest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SebKay%2Farbalest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SebKay%2Farbalest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SebKay","download_url":"https://codeload.github.com/SebKay/arbalest/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247623011,"owners_count":20968574,"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":["activecampaign","activecampaign-api","campaign-monitor","campaign-monitor-api","convertkit","convertkit-api","mailchimp","mailchimp-api","php"],"created_at":"2024-10-10T04:08:48.874Z","updated_at":"2025-04-07T08:55:56.412Z","avatar_url":"https://github.com/SebKay.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Arbalest\n\n[![PHP](https://github.com/SebKay/arbalest/actions/workflows/php.yml/badge.svg)](https://github.com/SebKay/arbalest/actions/workflows/php.yml)\n\nA simple all-in-one solution for managing email list subscribers in PHP.\n\n### Supported\n\n- Mailchimp ([Example](https://github.com/SebKay/arbalest/wiki/Examples#mailchimp))\n- Campaign Monitor ([Example](https://github.com/SebKay/arbalest/wiki/Examples#campaign-monitor))\n- ConvertKit ([Example](https://github.com/SebKay/arbalest/wiki/Examples#convertkit))\n- ActiveCampaign ([Example](https://github.com/SebKay/arbalest/wiki/Examples#activecampaign))\n- Omnisend ([Example](https://github.com/SebKay/arbalest/wiki/Examples#omnisend))\n\n## Installation\n\nThis package is available on [Packagist](https://packagist.org/) and can be installed via [Composer](https://getcomposer.org/) like so:\n\n```shell\ncomposer require sebkay/arbalest\n```\n\n## Usage\n\nFirst, create the `Arbalest\\Arbalest` instance. This is the object you'll use to manage subscribers.\n\nSecond, provide the Arbalest instance a service. For example Mailchimp (`Arbalest\\Services\\Mailchimp`).\n\nThen you can either subscribe or unsubscribe email addresses like so:\n\n```php\n// Single\n$arbalest-\u003esubscribe('test@test.com');\n\n$arbalest-\u003eunsubscribe('test@test.com');\n\n// Multiple\n$arbalest-\u003esubscribeAll([\n    'test_1@test.com',\n    'test_2@test.com',\n    'test_3@test.com',\n]);\n\n$arbalest-\u003eunsubscribeAll([\n    'test_1@test.com',\n    'test_2@test.com',\n    'test_3@test.com',\n]);\n```\n\n### Example (Mailchimp)\n\n```php\nuse Arbalest\\Arbalest;\nuse Arbalest\\Services\\Mailchimp;\n\ntry {\n    $arbalest = new Arbalest(\n        new Mailchimp([\n            'api_key'  =\u003e '12345',\n            'server'   =\u003e 'us2',\n            'list_id'  =\u003e 'abcde',\n        ])\n    );\n\n    $arbalest-\u003esubscribe('test@test.com');\n} catch (\\Exception $e) {\n    // Do something on error\n}\n```\n\n## Methods\n\nThese are the public methods available on `Arbalest\\Arbalest`.\n\n\u003ctable\u003e\n    \u003ctr\u003e\n        \u003cth\u003e\n            Method\n        \u003c/th\u003e\n        \u003cth\u003e\n            @return\n        \u003c/th\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003ctd\u003e\n            \u003ccode\u003esubscribe(string $email_address)\u003c/code\u003e\n        \u003c/td\u003e\n        \u003ctd\u003e\n            \u003ccode\u003ebool\u003c/code\u003e\n        \u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003ctd\u003e\n            \u003ccode\u003eunsubscribe(string $email_address)\u003c/code\u003e\n        \u003c/td\u003e\n        \u003ctd\u003e\n            \u003ccode\u003ebool\u003c/code\u003e\n        \u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003ctd\u003e\n            \u003ccode\u003esubscribeAll(array $email_addresses)\u003c/code\u003e\n        \u003c/td\u003e\n        \u003ctd\u003e\n            \u003ccode\u003ebool\u003c/code\u003e\n        \u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003ctd\u003e\n            \u003ccode\u003eunsubscribeAll(array $email_addresses)\u003c/code\u003e\n        \u003c/td\u003e\n        \u003ctd\u003e\n            \u003ccode\u003ebool\u003c/code\u003e\n        \u003c/td\u003e\n    \u003c/tr\u003e\n\u003c/table\u003e\n\n## Coming Soon\n\n- Hubspot\n- GetResponse\n- Drip\n- Constant Contact\n- MailerLite\n- Sendinblue\n- AWeber\n- GetResponse\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsebkay%2Farbalest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsebkay%2Farbalest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsebkay%2Farbalest/lists"}