{"id":51345553,"url":"https://github.com/whilesmartphp/eloquent-outreach","last_synced_at":"2026-07-04T13:00:29.624Z","repository":{"id":368066823,"uuid":"1282881753","full_name":"whilesmartphp/eloquent-outreach","owner":"whilesmartphp","description":"Host-agnostic user outreach for Laravel: compose messages with a call to action, target audiences, and track per-recipient deliveries across pluggable channels.","archived":false,"fork":false,"pushed_at":"2026-06-28T09:55:40.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"dev","last_synced_at":"2026-06-29T00:05:28.392Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/whilesmartphp.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-06-28T09:55:25.000Z","updated_at":"2026-06-28T09:55:44.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/whilesmartphp/eloquent-outreach","commit_stats":null,"previous_names":["whilesmartphp/eloquent-outreach"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/whilesmartphp/eloquent-outreach","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whilesmartphp%2Feloquent-outreach","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whilesmartphp%2Feloquent-outreach/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whilesmartphp%2Feloquent-outreach/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whilesmartphp%2Feloquent-outreach/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/whilesmartphp","download_url":"https://codeload.github.com/whilesmartphp/eloquent-outreach/tar.gz/refs/heads/dev","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whilesmartphp%2Feloquent-outreach/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35043999,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-02T02:00:06.368Z","response_time":173,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2026-07-02T11:06:10.516Z","updated_at":"2026-07-02T11:06:11.004Z","avatar_url":"https://github.com/whilesmartphp.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Whilesmart Eloquent Outreach\n\nHost-agnostic user outreach for Laravel. Compose a message with a call to action, target an audience, and track a per-recipient delivery, all over channels your app implements. The package owns the workflow; your app owns how recipients are found, addressed, personalized, and sent.\n\n## Installation\n\n```bash\ncomposer require whilesmart/eloquent-outreach\nphp artisan vendor:publish --tag=outreach-migrations\nphp artisan migrate\n```\n\n## Concepts\n\n- **Outreach** — one composed message: subject, body, CTA (`cta_label` + `cta_url`), `channel`, `audience` criteria, status, optional `scheduled_at`, and rolled-up `stats`. Optional polymorphic `owner` (sender) and `campaign` (a campaign \"has many\" outreaches).\n- **Delivery** — one row per recipient, with status and timestamps. This is what later per-recipient actions (resend, view, mark) hang off.\n\n## What the host implements\n\n```php\nuse Whilesmart\\Outreach\\Contracts\\AudienceResolver;  // criteria -\u003e recipient models\nuse Whilesmart\\Outreach\\Contracts\\MessageRenderer;   // outreach + recipient -\u003e RenderedMessage\nuse Whilesmart\\Outreach\\Contracts\\OutreachChannel;   // deliver a RenderedMessage\n```\n\nBind your implementations in a service provider:\n\n```php\n$this-\u003eapp-\u003ebind(AudienceResolver::class, MyAudienceResolver::class);\n$this-\u003eapp-\u003ebind(OutreachChannel::class, MyEmailChannel::class);\n// MessageRenderer defaults to attribute token replacement ({{first_name}});\n// bind your own for richer templating.\n```\n\nSafe defaults ship out of the box: the audience resolves to nobody and the channel sends nowhere until you bind real ones.\n\n## Sending\n\n```php\nuse Whilesmart\\Outreach\\Models\\Outreach;\nuse Whilesmart\\Outreach\\Services\\OutreachDispatcher;\n\n$outreach = Outreach::create([\n    'channel' =\u003e 'email',\n    'subject' =\u003e 'Hi {{first_name}}',\n    'body' =\u003e 'We added something you will like.',\n    'cta_label' =\u003e 'Open Trakli',\n    'cta_url' =\u003e 'https://trakli.app/dashboard',\n    'audience' =\u003e ['type' =\u003e 'inactive', 'days' =\u003e 30],\n]);\n\napp(OutreachDispatcher::class)-\u003edispatch($outreach);\n```\n\nThe dispatcher resolves the audience, creates a `Delivery` per recipient, renders and sends each through the bound channel, rolls the results onto the outreach, and emits `OutreachDispatched`, `DeliverySucceeded`, and `DeliveryFailed` for the host to bridge.\n\n## Campaigns\n\nAn outreach can belong to a campaign via the optional `campaign` morph, so a campaign (in your app or another package) can own many outreaches without this package depending on it.\n\n## License\n\nMIT. WhileSmart LTD.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwhilesmartphp%2Feloquent-outreach","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwhilesmartphp%2Feloquent-outreach","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwhilesmartphp%2Feloquent-outreach/lists"}