Important
This repository has been consolidated into the new resend-examples monorepo, which contains updated examples for all languages and frameworks.
This example shows how to use Resend with PHP.
To get the most out of this guide, you’ll need to:
-
Replace
re_123456789onindex.phpwith your API key. -
Install dependencies:
composer install- Execute the following command:
php -S 127.0.0.1:8000- Open URL in the browser:
localhost:8000
MIT License