PHPackages                             templateless/templateless - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Mail &amp; Notifications](/categories/mail)
4. /
5. templateless/templateless

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

templateless/templateless
=========================

Ship faster by sending elegant emails using just code

v0.1.0-alpha.4(2y ago)14MITPHPPHP ^8.1

Since Feb 7Pushed 2y ago1 watchersCompare

[ Source](https://github.com/templateless/templateless-php)[ Packagist](https://packagist.org/packages/templateless/templateless)[ Docs](https://templateless.com)[ RSS](/packages/templateless-templateless/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (2)Versions (6)Used By (0)

 [ ![Templateless](templateless.webp) ](https://templateless.com/)

====================================================================

[](#----------)

 **Ship faster by treating email as code 🚀**

####  [Website](https://templateless.com/) • [Get Your API Key](https://app.templateless.com/) • [Twitter](https://twitter.com/templateless)

[](#--website---get-your-api-key---twitter)

---

[![Latest Version](https://camo.githubusercontent.com/7631e86ef3022f90903dd5c95b63ac25dcca9a5adffb2151399f85ef0531ffb3/68747470733a2f2f62616467656e2e6e65742f7061636b61676973742f762f74656d706c6174656c6573732f74656d706c6174656c657373)](https://packagist.org/packages/templateless/templateless)[![Build Status](https://camo.githubusercontent.com/e2c63e9c745d21ba34a20693fa0eb3e391008d219b08710a4b6489bcab55c227/68747470733a2f2f62616467656e2e6e65742f6769746875622f636865636b732f74656d706c6174656c6573732f74656d706c6174656c6573732d7068703f6c6162656c3d6275696c642669636f6e3d676974687562)](https://github.com/templateless/templateless-php/actions)[![Monthly Downloads](https://camo.githubusercontent.com/4a0be0c930768d30c1a0b08fabf409972f0406c011b6ec2a1ad5e2f71e0b553e/68747470733a2f2f62616467656e2e6e65742f7061636b61676973742f646d2f74656d706c6174656c6573732f74656d706c6174656c657373)](https://packagist.org/packages/templateless/templateless/stats)[![X (formerly Twitter) Follow](https://camo.githubusercontent.com/02fbc073291fe72a338e41e0f5e4c8aca60ce2d761572eff11685bd66195c7ce/68747470733a2f2f696d672e736869656c64732e696f2f747769747465722f666f6c6c6f772f54656d706c6174656c657373)](https://twitter.com/templateless)

[Templateless](https://templateless.com) lets you generate and send transactional emails quickly and easily so you can focus on building your product.

It's perfect for SaaS, web apps, mobile apps, scripts and anywhere you have to send email programmatically.

✨ Features
----------

[](#-features)

- 👋 **Anti drag-and-drop by design** — emails are a part of your code
- ✅ **Components as code** — function calls turn into email HTML components
- 💻 **SDK for any language** — use your favorite [programming language](https://github.com/orgs/templateless/repositories)
- 🔍 **Meticulously tested** — let us worry about email client compatibility
- 💌 **Use your favorite ESP** — Amazon SES, SendGrid, Mailgun + more
- 💪 **Email infrastructure** — rate-limiting, retries, scheduling + more
- ⚡ **Batch sending** — send 1 email or 1,000 with one API call

🚀 Getting started
-----------------

[](#-getting-started)

Require this package, with [Composer](https://getcomposer.org), in the root directory of your project.

```
composer require templateless/templateless
```

Then you can import the class into your application:

```
use Templateless\Templateless;
```

🔑 Get Your API Key
------------------

[](#-get-your-api-key)

You'll need an API key for the example below ⬇️

[![Get Your API Key](https://camo.githubusercontent.com/f1861ba5783871774f13576adf97f267797e7e5c8a6e5c4caa5a7569571f20ae/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4765745f596f75725f4150495f4b65792d667265652d626c75653f7374796c653d666f722d7468652d6261646765)](https://app.templateless.com/)

- 3,000 emails per month
- All popular email provider integrations
- Start sending right away

👩‍💻 Quick example
-----------------

[](#‍-quick-example)

This is all it takes to send a signup confirmation email:

```
