{"id":19854720,"url":"https://github.com/phwoolcon/mail-renderer","last_synced_at":"2025-09-11T16:19:11.801Z","repository":{"id":57041247,"uuid":"109009451","full_name":"phwoolcon/mail-renderer","owner":"phwoolcon","description":"Email Templating and Rendering Module for Phwoolcon","archived":false,"fork":false,"pushed_at":"2017-11-05T05:41:53.000Z","size":28,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-30T10:01:23.306Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"CSS","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/phwoolcon.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-10-31T14:43:20.000Z","updated_at":"2017-10-31T15:31:31.000Z","dependencies_parsed_at":"2022-08-23T23:30:45.622Z","dependency_job_id":null,"html_url":"https://github.com/phwoolcon/mail-renderer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/phwoolcon/mail-renderer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phwoolcon%2Fmail-renderer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phwoolcon%2Fmail-renderer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phwoolcon%2Fmail-renderer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phwoolcon%2Fmail-renderer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phwoolcon","download_url":"https://codeload.github.com/phwoolcon/mail-renderer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phwoolcon%2Fmail-renderer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274666781,"owners_count":25327511,"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","status":"online","status_checked_at":"2025-09-11T02:00:13.660Z","response_time":74,"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":"2024-11-12T14:10:13.239Z","updated_at":"2025-09-11T16:19:11.758Z","avatar_url":"https://github.com/phwoolcon.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mail-renderer\n\n[![Latest Version on Packagist][ico-version]][link-packagist]\n[![Software License][ico-license]](LICENSE.md)\n[![Build Status][ico-travis]][link-travis]\n[![Coverage Status][ico-scrutinizer]][link-scrutinizer]\n[![Quality Score][ico-code-quality]][link-code-quality]\n[![Total Downloads][ico-downloads]][link-downloads]\n\nEmail Templating and Rendering Module for Phwoolcon\n\n## Install\n\nInstall as a `phwoolcon` package\n\n```bash\nbin/import-package phwoolcon/mail-renderer\n```\n\n## Usage\n\n### Configure\n\nThe [default config file](phwoolcon-package/config/mail-renderer.php) will be linked to `app/config/mail-renderer.php`\n\nIf you need to change the options, please make a copy under production dir and modify it:\n```bash\ncp app/config/mail-renderer.php app/config/production/mail-renderer.php\nvim app/config/production/mail-renderer.php\n```\n\n### Create Your Own Email Templates\n```bash\nvim phwoolcon-package/views/email/hello/world.phtml\n```\n```php\n\u003c?php\n/* @var Phwoolcon\\View\\Engine\\Php $this */\nMailRenderer::setSubject(__('Hello world'));\n?\u003e\n\u003ch1\u003eHello \u003c?= $name ?\u003e\u003c/h1\u003e\n\u003cp\u003eWelcome to use \u003ccode\u003ephwoolcon/mail-renderer\u003c/code\u003e!\u003c/p\u003e\n```\n\n### Render Email From Template\n```php\n\u003c?php\nuse MailRenderer;\n\nlist($subject, $body) = MailRenderer::renderEmail('hello/world', ['name' =\u003e 'John']);\n```\n\n## Change log\n\nPlease see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.\n\n## Testing\n\n``` bash\n$ composer test\n```\n\n## Contributing\n\nPlease see [CONTRIBUTING](CONTRIBUTING.md) and [CODE_OF_CONDUCT](CODE_OF_CONDUCT.md) for details.\n\n## Security\n\nIf you discover any security related issues, please email fishdrowned@gmail.com instead of using the issue tracker.\n\n## Credits\n\n- [Christopher CHEN][link-author]\n- [All Contributors][link-contributors]\n\n## License\n\nThe Apache License, Version 2.0. Please see [License File](LICENSE.md) for more information.\n\n[ico-version]: https://img.shields.io/packagist/v/phwoolcon/mail-renderer.svg?style=flat-square\n[ico-license]: https://img.shields.io/badge/license-Apache%202.0-brightgreen.svg?style=flat-square\n[ico-travis]: https://img.shields.io/travis/phwoolcon/mail-renderer/master.svg?style=flat-square\n[ico-scrutinizer]: https://img.shields.io/scrutinizer/coverage/g/phwoolcon/mail-renderer.svg?style=flat-square\n[ico-code-quality]: https://img.shields.io/scrutinizer/g/phwoolcon/mail-renderer.svg?style=flat-square\n[ico-downloads]: https://img.shields.io/packagist/dt/phwoolcon/mail-renderer.svg?style=flat-square\n\n[link-packagist]: https://packagist.org/packages/phwoolcon/mail-renderer\n[link-travis]: https://travis-ci.org/phwoolcon/mail-renderer\n[link-scrutinizer]: https://scrutinizer-ci.com/g/phwoolcon/mail-renderer/code-structure\n[link-code-quality]: https://scrutinizer-ci.com/g/phwoolcon/mail-renderer\n[link-downloads]: https://packagist.org/packages/phwoolcon/mail-renderer\n[link-author]: https://github.com/Fishdrowned\n[link-contributors]: ../../contributors\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphwoolcon%2Fmail-renderer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphwoolcon%2Fmail-renderer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphwoolcon%2Fmail-renderer/lists"}