PHPackages                             sarsam/php-atom-writer - 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. sarsam/php-atom-writer

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

sarsam/php-atom-writer
======================

Simple Atom writer library

0587PHP

Since May 17Pushed 7y agoCompare

[ Source](https://github.com/sarsam/php-atom-writer)[ Packagist](https://packagist.org/packages/sarsam/php-atom-writer)[ RSS](/packages/sarsam-php-atom-writer/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (1)Used By (0)

AtomWriter
==========

[](#atomwriter)

`\SarSam\AtomWriter` is simple atom writer library for PHP 5.4 or later. This component is licensed under MIT license.

Quick demo
----------

[](#quick-demo)

```
$feed = new Feed();

$feed->title('title')
    ->subtitle('subtitle')
    ->link('http://example.org/')
    ->linkSelf('http://example.org/feed/')
    ->id('urn:uuid:60a76c80-d399-11d9-b91C-0003939e0af6')
    ->updated();   //updated_at

//entry
$entry = new Entry();
$entry
    ->title('title')
    ->link('http://example.org/2003/12/13/atom03')
    ->linkAlternate('http://example.org/2003/12/13/atom03.html')
    ->linkEdit('http://example.org/2003/12/13/atom03/edit')
    ->id('urn:uuid:1225c695-cfb8-4ebb-aaaa-80da344efa6a')
    ->updated(111)
    ->summary('Some text.')
    ->content('content')
    ->author([
        'name'  => 'author name',
        'email' => 'author email',
    ])
    ->appendTo($feed);

echo $feed; // or echo $feed->render();
```

Output:

```

    title
    subtitle

    urn:uuid:60a76c80-d399-11d9-b91C-0003939e0af6
    2003-12-13T18:30:02Z

      13 Cannabis Events to Join in 2018

      urn:uuid:1225c695-cfb8-4ebb-aaaa-80da344efa6a
      Some text.
      2003-12-13T18:30:02Z

              content

        author name
        author email

```

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

[](#installation)

### Easy installation

[](#easy-installation)

You can install directly via [Composer](https://getcomposer.org/):

```
$ composer require sarsam/atom-feed-writer
```

### Manual installation

[](#manual-installation)

Add the following code to your `composer.json` file:

```
{
	"require": {
		"sarsam/php-atom-writer": "dev-master"
	}
}
```

...and run composer to install it:

```
$ composer install
```

Finally, include `vendor/autoload.php` in your product:

```
require_once 'vendor/autoload.php';
```

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/59f9da512dcbf2d1293136e41feff1302bfe0ef174bcefbb4a559e36bbaa6771?d=identicon)[sarsam](/maintainers/sarsam)

---

Top Contributors

[![Samvel-Sargsyan](https://avatars.githubusercontent.com/u/59954269?v=4)](https://github.com/Samvel-Sargsyan "Samvel-Sargsyan (1 commits)")

### Embed Badge

![Health badge](/badges/sarsam-php-atom-writer/health.svg)

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

###  Alternatives

[blanchonvincent/cdn-light

ZF2 module v1.1.0 - Manage your own CDN with ZF2 application

103.6k](/packages/blanchonvincent-cdn-light)

PHPackages © 2026

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