PHPackages                             glpzzz/object2email - 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. [Templating &amp; Views](/categories/templating)
4. /
5. glpzzz/object2email

ActiveLibrary[Templating &amp; Views](/categories/templating)

glpzzz/object2email
===================

Simple solution to obtain a Symfony/Email representation of any object by implementing the provided interface

1.0.0(2y ago)16MITPHP

Since Mar 6Pushed 2y ago1 watchersCompare

[ Source](https://github.com/glpzzz/Object2Email)[ Packagist](https://packagist.org/packages/glpzzz/object2email)[ RSS](/packages/glpzzz-object2email/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

Object2Email
============

[](#object2email)

Simple solution to prepare a Symfony Email by implementing an interface in any class

The idea is to provide a common interface to for objects to be sent via Symfony Mailer.

Installation
------------

[](#installation)

Install using `composer`

```
  composer require glpzzz/object2email
```

Usage
-----

[](#usage)

```
$p = new Person() // or obtain from db
// work with it, modify it, set the properties...
$mailer->send($p->toEmail());
```

License
-------

[](#license)

[MIT](https://choosealicense.com/licenses/mit/)

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

802d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/13596248?v=4)[Gabriel Alejandro López López](/maintainers/glpzzz)[@glpzzz](https://github.com/glpzzz)

---

Top Contributors

[![glpzzz](https://avatars.githubusercontent.com/u/13596248?v=4)](https://github.com/glpzzz "glpzzz (6 commits)")

### Embed Badge

![Health badge](/badges/glpzzz-object2email/health.svg)

```
[![Health](https://phpackages.com/badges/glpzzz-object2email/health.svg)](https://phpackages.com/packages/glpzzz-object2email)
```

###  Alternatives

[mustache/mustache

A Mustache implementation in PHP.

3.3k44.6M291](/packages/mustache-mustache)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[nystudio107/craft-twigpack

Twigpack is a bridge between Twig and webpack, with manifest.json &amp; webpack-dev-server HMR support

97341.4k17](/packages/nystudio107-craft-twigpack)[mallardduck/blade-boxicons

A package to easily make use of Boxicons in your Laravel Blade views.

12776.5k9](/packages/mallardduck-blade-boxicons)[localgovdrupal/localgov_base

The base theme for LocalGov Drupal websites.

13121.5k4](/packages/localgovdrupal-localgov-base)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
