PHPackages                             tigron/skeleton-file-email - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. tigron/skeleton-file-email

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

tigron/skeleton-file-email
==========================

Tigron Raw Email utilities

v0.0.4(4y ago)018MITPHP

Since Jun 4Pushed 4y ago3 watchersCompare

[ Source](https://github.com/tigron/skeleton-file-email)[ Packagist](https://packagist.org/packages/tigron/skeleton-file-email)[ RSS](/packages/tigron-skeleton-file-email/feed)WikiDiscussions master Synced today

READMEChangelog (4)Dependencies (2)Versions (5)Used By (0)

skeleton-file-email
===================

[](#skeleton-file-email)

Description
-----------

[](#description)

This library adds RAW email functionality for Skeleton\\File\\File objects

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

[](#installation)

Installation via composer:

```
composer require tigron/skeleton-file-email

```

Howto
-----

[](#howto)

Get an email If the file is an email, a \\Skeleton\\File\\Email\\Email object is returned

```
$email = \Skeleton\File\File::get_by_id(1);

```

Persons involved in the email will be returned as \\Skeleton\\File\\Email\\Contact objects. A contact has the following structure:

```
Skeleton\File\Email\Contact Object
(
    [name] => Recipient1
    [email] => email@example.com
)

```

To retrieve the contacts, the following methods can be used

Get the From contact

```
$email->get_from();

```

Get the To contact(s)

```
$email->get_to(); // returns an array of Contact objects

```

Get the CC contact(s)

```
$email->get_cc(); // returns an array of Contact objects

```

Other information can be obtained via the following methods:

Get the subject

```
$email->get_subject();

```

Get the content The extra parameter requests a replacement of every cid reference by its base64-encoded content. This way the output can directly be shown in the browser.

```
$email->get_content($replace_inline_images = false);

```

Get the date

```
$email->get_date();

```

Has attachments

```
$email->has_attachments(); // true/false

```

Count attachments

```
$email->count_attachments();

```

Extract all attachments from the Email

```
$attachments = $file->extract_attachments(); // Each attachment is a \Skeleton\File\File object

```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 66.7% 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

Every ~132 days

Total

4

Last Release

1767d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8bff1383483dacb0c3f89d2d3856ae03d4cf3e80de26a2998248dd1175317285?d=identicon)[tigron](/maintainers/tigron)

---

Top Contributors

[![christopheg](https://avatars.githubusercontent.com/u/199087?v=4)](https://github.com/christopheg "christopheg (8 commits)")[![gerryd](https://avatars.githubusercontent.com/u/3003371?v=4)](https://github.com/gerryd "gerryd (4 commits)")

### Embed Badge

![Health badge](/badges/tigron-skeleton-file-email/health.svg)

```
[![Health](https://phpackages.com/badges/tigron-skeleton-file-email/health.svg)](https://phpackages.com/packages/tigron-skeleton-file-email)
```

###  Alternatives

[acquia/drupal-environment-detector

Provides common methods for detecting the current Acquia environment

105.9M19](/packages/acquia-drupal-environment-detector)[te7a-houdini/laroute

Access Laravels URL/Route helper functions, from JavaScript.

33512.1k](/packages/te7a-houdini-laroute)[php-tui/cassowary

Cassowary constraint solving algorithm implementation

21759.9k1](/packages/php-tui-cassowary)

PHPackages © 2026

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