{"id":15067125,"url":"https://github.com/micovi/laravel-sendy","last_synced_at":"2026-01-19T14:33:18.978Z","repository":{"id":62528242,"uuid":"174816530","full_name":"micovi/laravel-sendy","owner":"micovi","description":"Service provider for Sendy API in PHP Laravel 5+","archived":false,"fork":false,"pushed_at":"2023-12-15T17:30:32.000Z","size":9,"stargazers_count":1,"open_issues_count":2,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-25T08:47:42.686Z","etag":null,"topics":["laravel","laravel-framework","php","sendy"],"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/micovi.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":"2019-03-10T11:51:15.000Z","updated_at":"2023-01-25T12:33:11.000Z","dependencies_parsed_at":"2024-09-29T11:41:11.528Z","dependency_job_id":"12a6e6bb-3ee1-49d5-a5da-6733502c03ed","html_url":"https://github.com/micovi/laravel-sendy","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/micovi%2Flaravel-sendy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/micovi%2Flaravel-sendy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/micovi%2Flaravel-sendy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/micovi%2Flaravel-sendy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/micovi","download_url":"https://codeload.github.com/micovi/laravel-sendy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247299788,"owners_count":20916185,"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","laravel-framework","php","sendy"],"created_at":"2024-09-25T01:17:01.150Z","updated_at":"2026-01-19T14:33:18.972Z","avatar_url":"https://github.com/micovi.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Laravel Sendy\n\n[![Github](\thttps://img.shields.io/github/release-pre/micovi/laravel-sendy.svg)](https://github.com/micovi/laravel-sendy/)\n[![Packagist](https://img.shields.io/packagist/vpre/micovi/laravel-sendy.svg)](https://packagist.org/packages/micovi/laravel-sendy)\n[![Packagist downloads](https://img.shields.io/packagist/dt/micovi/laravel-sendy.svg)](https://packagist.org/packages/micovi/laravel-sendy)\n\nPackage description: Laravel simple integration with Sendy API to subscribe/unsubscribe users to list.\n\n## Installation\n\nInstall via composer\n\n```bash\ncomposer require micovi/laravel-sendy\n```\n\n### Register Service Provider\n\n**Note! This step is optional if you use laravel \u003e= 5.5\nwith package auto discovery feature.**\n\nAdd service provider to `config/app.php` in `providers` section\n\n```php\nMicovi\\LaravelSendy\\ServiceProvider::class,\n```\n\n### Register Facade\n\nRegister package facade in `config/app.php` in `aliases` section\n\n```php\n'LaravelSendy' =\u003e Micovi\\LaravelSendy\\Facades\\LaravelSendy::class,\n```\n\n### Add env variables\n\n```env\nSENDY_API_KEY=your-api-key\nSENDY_URL=your-sendy-url\nSENDY_LIST_ID=your-list-id\n```\n\nLIST ID can be found encrypted \u0026 hashed in View all lists section under the column named ID\n\n## Customizing or extending\n\n### Publish configuration file\n\nYou can publish configuration file to edit the variables, in case you don't want to use ENV. File will pe published in `/config/larave-sendy.php`\n\n```bash\nphp artisan vendor:publish --provider=\"Micovi\\LaravelSendy\\ServiceProvider\" --tag=\"config\"\n```\n\n### Publish translations\n\nYou can publish translations to edit them. Files will be published in `/resources/lang/vendor/laravel-sendy`.\n\n**Note:** You can extend translations by creating a new file in `/resources/lang/vendor/laravel-sendy/{lang}/messages.php` using the format from `en` language file.\n\n## Usage examples\n\nBefore any usage add Namespace to file.\n\n```php\nuse Micovi\\LaravelSendy\\LaravelSendy;\n```\n\n### Subscribe\nSubscribes a new email to list. This can be used to edit already subscribed users. (eg. change name)\n\n```php\n// initialize LaravelSendy\n$sendy = new LaravelSendy();\n\n// Simple email subscribe\n$subscribe = $sendy-\u003esubscribe('email@example.com');\n\n// Add subscriber with email and name\n$subscribe = $sendy-\u003esubscribe('email@example.com', 'John Doe');\n\n// Full subscribe method\n$subscribe = $sendy-\u003esubscribe($email, $name = null, $listId = null, $json = false, $customFields = []);\n\n// Response example\n$subscribe = [\n  \"success\" =\u003e true\n  \"message\" =\u003e \"You have been subscribed.\"\n]\n```\n\n### Unsubscribe Examples\nMarks email as unsubscribed from the list.\n```php\n// initialize LaravelSendy\n$sendy = new LaravelSendy();\n\n// Simple unsubscribe\n$unsubscribe = $sendy-\u003eunsubscribe('email@example.com');\n\n// Full unsubscribe method\n$unsubscribe = $sendy-\u003eunsubscribe($email, $listId = null, $json = false);\n\n// Response example\n$unsubscribe = [\n  \"success\" =\u003e true\n  \"message\" =\u003e \"You have been unsubscribed.\"\n]\n```\n\n### Delete Example\nDeletes email from list. Action is definitive.\n\n```php\n// initialize LaravelSendy\n$sendy = new LaravelSendy();\n\n// Simple delete\n$delete = $sendy-\u003edelete('email@example.com');\n\n// Full unsubscribe method\n$delete = $sendy-\u003edelete($email, $listId = null, $json = false);\n\n// Response example\n$delete = [\n  \"success\" =\u003e true\n  \"message\" =\u003e \"You have been deleted from the list.\"\n]\n```\n\n## Security\n\nIf you discover any security related issues, please email\ninstead of using the issue tracker.\n\n## Contribute\n\nIf you wish to contribute to translations for the package in your language you can submit a PR request with the lang files copied from en `resources/lang/en/messages.php`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmicovi%2Flaravel-sendy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmicovi%2Flaravel-sendy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmicovi%2Flaravel-sendy/lists"}