An open API service indexing awesome lists of open source software.

https://github.com/dammy001/laravel-email

A collection of high-quality, unstyled components for creating beautiful emails using Laravel
https://github.com/dammy001/laravel-email

Last synced: 10 months ago
JSON representation

A collection of high-quality, unstyled components for creating beautiful emails using Laravel

Awesome Lists containing this project

README

          

Laravel Email

The next generation of writing emails.
High-quality, unstyled components for creating emails.




GitHub

## Introduction

A collection of high-quality, unstyled components for creating beautiful emails using Laravel.
It reduces the pain of coding responsive emails with dark mode support. It also takes care of inconsistencies between Gmail, Outlook, and other email clients for you.

## Why

We believe that email is an extremely important medium for people to communicate. However, we need to stop developing emails like 2010, and rethink how email can be done in 2022 and beyond. Email development needs a revamp. A renovation. Modernized for the way we build web apps today.

## Install
```bash
composer require damilaredev/laravel-email
```

## Getting started

Add the component to your email template. Include styles where needed.

```html







Laravel Email



```

## Components

A set of standard components to help you build amazing emails without having to deal with the mess of creating table-based layouts and maintaining archaic markup.

### HTML
```html


Click Me

```

### Head
```html

email title

```

### Heading
```html
Lorem Ipsum
```

### Link
```html

Example

```

### Image
```html

# Props
| Name | Type | Default | Description |
| ------ | ------ | ------- | ---------------------------------- |
| alt | string | | Alternate description for an image |
| src | string | | The path to the image |
| width | string | | The width of an image in pixels |
| height | string | | The height of an image in pixels |

```

### Divider
```html

```

### Paragraph
```html
Lorem Ipsum
```

### Container
```html


Click here

```

### Body
```html




{{-- First column --}}


{{-- Second column --}}


```

### Row
```html

A
B
C

```

### Section
```html
{{-- A Simple Section --}}

Lorem Ipsum

{{-- Formatted with `rows` and `columns` --}}


Column 1, Row 1
Column 2, Row 1


Column 1, Row 2
Column 2, Row 2

```

### Font
```html



```

## Support
All components were tested using the most popular email clients.

| Gmail logo | Apple Mail | Outlook logo | Yahoo! Mail logo | HEY logo | Superhuman logo |
| -------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------ |
| Gmail ✔ | Apple Mail ✔ | Outlook ✔ | Yahoo! Mail ✔ | HEY ✔ | Superhuman ✔ |

## Development

#### Install dependencies

```sh
// PHP >= 8.1 is required

composer install
```

#### Tests
```sh
composer ci
```

## Credits

- React Email ([React Email](https://github.com/resendlabs/react-email))
- Bu Kinoshita ([@bukinoshita](https://twitter.com/bukinoshita))
- Zeno Rocha ([@zenorocha](https://twitter.com/zenorocha))

## License

MIT License