{"id":18427117,"url":"https://github.com/nowisesys/uup-mail","last_synced_at":"2025-04-13T19:38:51.286Z","repository":{"id":57028824,"uuid":"167269320","full_name":"nowisesys/uup-mail","owner":"nowisesys","description":"Mail template and composing library for PHP","archived":false,"fork":false,"pushed_at":"2019-10-15T03:00:17.000Z","size":62,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-16T08:27:30.418Z","etag":null,"topics":["compose","mail","php-library"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nowisesys.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}},"created_at":"2019-01-23T23:21:31.000Z","updated_at":"2019-10-15T03:00:19.000Z","dependencies_parsed_at":"2022-08-23T18:50:11.436Z","dependency_job_id":null,"html_url":"https://github.com/nowisesys/uup-mail","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nowisesys%2Fuup-mail","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nowisesys%2Fuup-mail/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nowisesys%2Fuup-mail/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nowisesys%2Fuup-mail/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nowisesys","download_url":"https://codeload.github.com/nowisesys/uup-mail/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248769459,"owners_count":21158814,"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":["compose","mail","php-library"],"created_at":"2024-11-06T05:09:43.347Z","updated_at":"2025-04-13T19:38:51.261Z","avatar_url":"https://github.com/nowisesys.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"## UUP-MAIL - Mail template and composing library for PHP\n\nThe uup-mail library provides a mail template and composer library for formatting\nmail messages. Its main focus is on MIME message composition and layout using templates. \nThe actual sending (transport) of the SMTP message is delegated to other libraries,\ncurrently Swift Mailer, PEAR Mail or PHPMailer is supported.\n\n### Design\n\nThis library was designed with inheritance in mind. Create your own mail message \nclasses (one for each particular kind of message) derived from class MessageComposer:\n\n```php\nclass ConfirmSubscriptionMessage extends MessageComposer\n{\n    public function __construct()\n    {\n        parent::__construct(_(\"Confirm Subscription\", _(\"...\")));\n        // ... create additional section headers with content.\n    }\n\n    public function setSubscription($id) \n    {\n        parent::setContent('Subscription', Subscription::get($id));\n    }\n}\n\n$composer = new ConfirmSubscriptionMessage();\n$message  = new SwiftMessage($composer, $formatter);\n$mailer-\u003esend($message);\n```\n\n### Usage\n\nThe library can be used at three different levels:\n\n1. Use UUP\\Mail\\Compose only. The library is used solely for message composition.\n\n2. Use i.e. UUP\\Mail\\Swift. This is the intermediate level were you can take \n   advantage of the message composition and layout, while still have native \n   access to the Swift Mailer library too.\n\n3. Use UUP\\Mail and its interface. The programming at this level is done against\n   the interfaces (Message and MessageMailer) using the MessageService as a proxy\n   against your code and the native implementation, i.e. Swift Mailer.\n\nA good example of real world usage can be found in example/realistic.php\n\n### More\n\nMore information can be found on the [project page](https://nowise.se/oss/uup/mail)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnowisesys%2Fuup-mail","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnowisesys%2Fuup-mail","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnowisesys%2Fuup-mail/lists"}