https://github.com/resend/resend-php-example
This example shows how to use Resend with PHP
https://github.com/resend/resend-php-example
Last synced: about 1 year ago
JSON representation
This example shows how to use Resend with PHP
- Host: GitHub
- URL: https://github.com/resend/resend-php-example
- Owner: resend
- License: mit
- Created: 2023-06-02T21:51:51.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2025-03-25T00:31:24.000Z (about 1 year ago)
- Last Synced: 2025-04-13T05:45:51.704Z (about 1 year ago)
- Language: PHP
- Homepage: https://resend.com/docs/send-with-php
- Size: 8.79 KB
- Stars: 7
- Watchers: 2
- Forks: 5
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Resend with PHP
This example shows how to use Resend with [PHP](https://www.php.net).
## Prerequisites
To get the most out of this guide, you’ll need to:
* [Create an API key](https://resend.com/api-keys)
* [Verify your domain](https://resend.com/domains)
## Instructions
1. Replace `re_123456789` on `index.php` with your API key.
2. Install dependencies:
```bash
composer install
```
3. Execute the following command:
```bash
php -S 127.0.0.1:8000
```
4. Open URL in the browser:
```
localhost:8000
```
## License
MIT License