YourTrend SDK for PHP
The PHP SDK is a single dependency-free file. Download it, include it, and send email, SMS and push via the YourTrend REST API.
Install
curl -O https://yourtrend.online/sdk/yourtrend.php
Send an email
require 'yourtrend.php';
$yt = new YourTrend('YOUR_API_KEY');
$res = $yt->sendEmail(
'noreply@yourdomain.com',
'user@example.com',
'Hello from YourTrend',
'<h1>Hi!</h1>'
);
echo $res['status']; // 202
Methods: sendEmail, sendSms, push (web push) and validateEmail. Each returns the HTTP status and the response body.
FAQ
Any external dependencies?
No. The PHP SDK is a single standard-library file, no package manager required.
Where do I get an API key?
In the dashboard → API keys. Issue a key with only the scopes it needs.
Start sending in minutes
Free to start. Scale when you grow. Your customers get every message.
This page was found by searching for
Real search queries that bring people here — the highlighted ones open the matching page.
- email security and encryption
- PHP transactional email
- ip blocklist check
- email marketing blog
- webhooks in PHP
- smtp server diagnostics
- email terms glossary
- sdks for other languages
- what is SPF
- email service login
- api key and authorisation
- what is DKIM
- email affiliate programme
- email marketing service