PHPackages                             boxybird/atomic - 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. boxybird/atomic

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

boxybird/atomic
===============

Atomic integrates HTMX fragments into WordPress, enabling dynamic partial page updates without full reloads.

v1.0.0-beta.3(1y ago)09MITPHPPHP &gt;=8.2

Since Jan 26Pushed 1y ago2 watchersCompare

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

READMEChangelogDependencies (2)Versions (4)Used By (0)

Atomic
======

[](#atomic)

Atomic integrates [HTMX](https://htmx.org/) fragments into WordPress, enabling dynamic partial page updates without full reloads.

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

[](#installation)

```
composer require boxybird/atomic

```

> Location: /wp-config.php

```
define('ATOMIC_ENCRYPTION_KEY', 'SOME_RANDOM_16_CHARACTER_STRING');
```

Theme/Plugin Setup
------------------

[](#themeplugin-setup)

Whether you're installing this package in a theme or plugin, you must define base URL of the install.

```
// Theme example:
require_once __DIR__.'/vendor/autoload.php';
BoxyBird\Atomic\Atomic::init(get_stylesheet_directory_uri());

// Plugin example:
require_once __DIR__.'/vendor/autoload.php';
BoxyBird\Atomic\Atomic::init(plugin_dir_url(__FILE__));
```

Flush Permalinks
----------------

[](#flush-permalinks)

> Location: /wp-admin/options-permalink.php

Visit and refresh permalinks by clicking **"Save Changes"** button

Usage
-----

[](#usage)

```
GET REQUEST

```

```
add_action('atomic/get/my-hook', function (int $post_id) {
    echo "HTMX GET request fragment - ID: {$post_id}";
});
```

---

```
GET REQUEST

```

```
add_action('atomic/get/my-other-hook', function (int $post_id) {
    echo "HTMX GET request fragment - ID: {$post_id}";
});
```

---

```
POST REQUEST

```

```
add_action('atomic/post/my-hook', function (int $post_id) {
    get_template_part('fragments/post', 'my-template', args: ['post_id' => $post_id]);
});
```

---

```
PUT REQUEST
PATCH REQUEST
DELETE REQUEST
```

```
add_action('atomic/put/my-hook', ...);
add_action('atomic/patch/my-hook', ...);
add_action('atomic/delete/my-hook', ...);
```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance43

Moderate activity, may be stable

Popularity4

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 Bus Factor1

Top contributor holds 58.8% 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 ~12 days

Total

3

Last Release

448d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/14c32153a8077cfa11b6079cceeb0a6a96fcc0d2822a0a6a2bf2fc0433d7665a?d=identicon)[andrewrhyand](/maintainers/andrewrhyand)

---

Top Contributors

[![boxybird](https://avatars.githubusercontent.com/u/18317878?v=4)](https://github.com/boxybird "boxybird (10 commits)")[![gecko-andrew](https://avatars.githubusercontent.com/u/150384991?v=4)](https://github.com/gecko-andrew "gecko-andrew (7 commits)")

---

Tags

phppluginwordpressrouterhtmxfragments

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/boxybird-atomic/health.svg)

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

###  Alternatives

[cmb2/cmb2

CMB2 is a metabox, custom fields, and forms library for WordPress that will blow your mind.

3.0k640.4k23](/packages/cmb2-cmb2)[appsero/client

Appsero Client

25431.7k9](/packages/appsero-client)[hexbit/router

Wordpress Router

352.8k](/packages/hexbit-router)

PHPackages © 2026

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