PHPackages                             cnp/wp-atom-builder - 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. cnp/wp-atom-builder

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

cnp/wp-atom-builder
===================

Build filterable atomic elements.

v0.14(9y ago)184MITPHPPHP &gt;=5.3.3

Since Dec 29Pushed 9y ago2 watchersCompare

[ Source](https://github.com/Clark-Nikdel-Powell/Atom-Builder)[ Packagist](https://packagist.org/packages/cnp/wp-atom-builder)[ Docs](https://github.com/Clark-Nikdel-Powell/Atom-Builder)[ RSS](/packages/cnp-wp-atom-builder/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (8)DependenciesVersions (17)Used By (0)

\##Atom Builder

The Atom class builds atomic markup from PHP arguments. For example, if you wanted this output:

```
A Section Title
```

You could use this PHP code to render it:

```
$section_title_args = [
  'tag' => 'h2',
  'content' => 'A Section Title'
];

$section_title = CNP\Atom::Assemble('section-title', $section_title_args);

echo $section_title;
```

Sure, this is slightly longer, but here's what is included in the Atom class:

\###Filters

All the filters in the Atom class are namespaced to the name of the atom. An atom named 'section-title' would have an arguments filter named 'section-title\_args'.

1. `$atom_name`\_args: filter the arguments array.
2. `$atom_name`\_classes: filter the classes array.
3. `$atom_name`\_id: filter the ID.
4. `$atom_name``$attribute_name`\_value: filter a specific attribute's value.
5. `$atom_name`\_attributes: filter the completed attributes array.
6. `$atom_name`\_content: filter the atom content.
7. `$atom_name`\_markup: filter the compiled markup.

Filtering the markup means that we can dynamically change the atom output on different areas of a site, without needing to change the atom arguments.

This also allows us to create generic blueprints that we can reuse from site-to-site, either adjusting arguments or filtering the atom where necessary.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 97% 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 ~17 days

Recently: every ~31 days

Total

16

Last Release

3534d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7df60fcdb3fa310756e7ba0e801c8f311e4edf53111a8d09895ead3652fb76a9?d=identicon)[cnp](/maintainers/cnp)

---

Top Contributors

[![jhned](https://avatars.githubusercontent.com/u/2520143?v=4)](https://github.com/jhned "jhned (32 commits)")[![gwelser](https://avatars.githubusercontent.com/u/2042739?v=4)](https://github.com/gwelser "gwelser (1 commits)")

### Embed Badge

![Health badge](/badges/cnp-wp-atom-builder/health.svg)

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

###  Alternatives

[localheinz/diff

Fork of sebastian/diff for use with ergebnis/composer-normalize

4637.0M5](/packages/localheinz-diff)[jeroendesloovere/vcard-bundle

This Symfony 2 bundle can generate vCards with lots of data. When using an &lt; iOS 7 device it will export as a .ics file because iOS devices don't support the default .vcf files.

1677.3k3](/packages/jeroendesloovere-vcard-bundle)

PHPackages © 2026

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