PHPackages                             mekras/atom - 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. [API Development](/categories/api)
4. /
5. mekras/atom

ActiveLibrary[API Development](/categories/api)

mekras/atom
===========

Atom Protocol support library

v1.0.0(9y ago)111.3k↓75%[1 issues](https://github.com/mekras/atom/issues)1MITPHPPHP &gt;=5.6

Since Jul 4Pushed 9y ago1 watchersCompare

[ Source](https://github.com/mekras/atom)[ Packagist](https://packagist.org/packages/mekras/atom)[ RSS](/packages/mekras-atom/feed)WikiDiscussions master Synced yesterday

READMEChangelog (1)Dependencies (3)Versions (8)Used By (1)

[Atom Syndication Format](https://tools.ietf.org/html/rfc4287) support library
==============================================================================

[](#atom-syndication-format-support-library)

[![Latest Stable Version](https://camo.githubusercontent.com/bcf900706117f89e317b54d326d7357ad0c2ab91962ad3cbc972523118cfe479/68747470733a2f2f706f7365722e707567782e6f72672f6d656b7261732f61746f6d2f762f737461626c652e706e67)](https://packagist.org/packages/mekras/atom)[![License](https://camo.githubusercontent.com/1e5d94754ffe9520d96396bf086e2e4aafe0a0bcf208524067caebce31f896a6/68747470733a2f2f706f7365722e707567782e6f72672f6d656b7261732f61746f6d2f6c6963656e73652e706e67)](https://packagist.org/packages/mekras/atom)[![Build Status](https://camo.githubusercontent.com/3459f6890cde068825b078654593d4eb45f3b0f768c96933097802906010454a/68747470733a2f2f7472617669732d63692e6f72672f6d656b7261732f61746f6d2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/mekras/atom)[![Coverage Status](https://camo.githubusercontent.com/d5e01c596f6e0c49aafc57e7a7844faa48fe8be4a844108dbaa409ad1a9ab48f/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6d656b7261732f61746f6d2f62616467652e7376673f6272616e63683d6d617374657226736572766963653d676974687562)](https://coveralls.io/github/mekras/atom?branch=master)

Purpose
-------

[](#purpose)

This library is designed to work with the [Atom](https://tools.ietf.org/html/rfc4287) documents in an object-oriented style. It does not contain the functionality to download or display documents.

Documentation
-------------

[](#documentation)

- [Parsing documents](docs/02-parsing_documents.md)
- [Creating documents](docs/03-creating_documents.md)
- [Extending (custom elements)](docs/06-extending.md)
- [Atom reader example](docs/example.php)

Example
-------

[](#example)

```
use Mekras\Atom\Document\FeedDocument;
use Mekras\Atom\DocumentFactory;
use Mekras\Atom\Exception\AtomException;

$xml = file_get_contents('http://example.com/atom');

$factory = new DocumentFactory();

try {
    $document = $factory->parseXML($xml);
} catch (AtomException $e) {
    die($e->getMessage());
}

if ($document instanceof FeedDocument) {
    $feed = $document->getFeed();
    echo 'Feed: ', $feed->getTitle(), PHP_EOL;
    echo 'Updated: ', $feed->getUpdated()->format('d.m.Y H:i:s'), PHP_EOL;
    foreach ($feed->getAuthors() as $author) {
        echo 'Author: ', $author->getName(), PHP_EOL;
    }
    foreach ($feed->getEntries() as $entry) {
        echo PHP_EOL;
        echo '  Entry: ', $entry->getTitle(), PHP_EOL;
        if ($entry->getSelfLink()) {
            echo '  URL: ', $entry->getSelfLink(), PHP_EOL;
        } else {
            echo PHP_EOL, (string) $entry->getContent(), PHP_EOL;
        }
    }
}
```

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity63

Established project with proven stability

 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

Every ~7 days

Total

7

Last Release

3607d ago

Major Versions

v0.3.1 → v1.0.0-alpha2016-07-13

### Community

Maintainers

![](https://www.gravatar.com/avatar/f59cdbde66f36f1f86dad783d2f79e64c17ffdcd0771f73b96b7d9d7ee37b364?d=identicon)[Mekras](/maintainers/Mekras)

---

Top Contributors

[![mekras](https://avatars.githubusercontent.com/u/192067?v=4)](https://github.com/mekras "mekras (58 commits)")

---

Tags

atomatomrfc4287

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/mekras-atom/health.svg)

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

###  Alternatives

[laminas/laminas-feed

provides functionality for creating and consuming RSS and Atom feeds

16751.3M62](/packages/laminas-laminas-feed)[mibe/feedwriter

Generate feeds in either RSS 1.0, RSS 2.0 or ATOM formats

1951.1M5](/packages/mibe-feedwriter)[debril/rss-atom-bundle

RSS / Atom and JSONFeed support for Symfony

1401.3M2](/packages/debril-rss-atom-bundle)[kiwilan/php-opds

PHP package to create OPDS feed for eBooks.

115.6k3](/packages/kiwilan-php-opds)[dotzecker/larafeed

Feed (Atom and RSS) generator for any framework

111.1k1](/packages/dotzecker-larafeed)

PHPackages © 2026

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