PHPackages                             packaged-ui/pagelets - 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. packaged-ui/pagelets

ActiveLibrary

packaged-ui/pagelets
====================

2.6.1(9mo ago)124.8k↓47.1%2[2 issues](https://github.com/packaged-ui/pagelets/issues)MITJavaScriptPHP &gt;=7.1CI failing

Since Jan 14Pushed 9mo ago2 watchersCompare

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

READMEChangelog (10)Dependencies (4)Versions (66)Used By (0)

Pagelets
========

[](#pagelets)

**[Upgrading from v1 to v2](UPGRADE.md)**

Usage
-----

[](#usage)

### Initialize

[](#initialize)

Initialize pagelet events (link clicks and form submissions)

```
Pagelets.init(options);
```

#### Options

[](#options)

PropertyTypeDefaultDescriptionselectorstring`a[data-uri],button[data-uri],[href][data-target]`Which "click" event elements to react toformSelectorstring`form[data-uri],form[data-target]`Which "submit" event elements to react todefaultTargetstring`document.body`If no data-target specified, which container to load the content intoallowPersistentTargetsboolean`true`If a page has been reloaded, allow pagelets to load into containers of the same namelistenElementNode`document`Listen to links within this container onlyminRefreshRateint`500`Minimum time to wait between pagelet refreshesiteratorActionIterator`new ActionIterator()`set the default iterator### Manual request

[](#manual-request)

Manually make pagelet request

```
const req = new Pagelets.Request(options);
Pagelets.load(req)
        .then(({request, response}) =>
              {
                // process response (if necessary)
              })
        .catch((e) =>
               {
                 // error handling
               });
```

#### Pagelet Options

[](#pagelet-options)

PropertyTypeDefaultDescriptionurl *\[required\]*StringURL of the resource to requestiteratorActionIterator*uses global options*action iterator to use when processing the responsesourceElementElementelement requesting the pagelettargetElementElement/Stringelement to receive the default pagelet contentpushUrlStringURL to set in the address barheadersObjectobject containing custom headers for the requestdataObjectobject containing post datamethodStringrequest method to usewithCredentialsBoolean`false`set withCredentials

###  Health Score

40

—

FairBetter than 88% of packages

Maintenance38

Infrequent updates — may be unmaintained

Popularity30

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 85.9% 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 ~33 days

Recently: every ~152 days

Total

63

Last Release

270d ago

Major Versions

0.6.0 → 1.0.02020-08-24

1.8.1 → 2.0.02021-08-18

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/299656?v=4)[Tom Kay](/maintainers/tomk)[@TomK](https://github.com/TomK)

---

Top Contributors

[![TomK](https://avatars.githubusercontent.com/u/299656?v=4)](https://github.com/TomK "TomK (159 commits)")[![bajb](https://avatars.githubusercontent.com/u/2241334?v=4)](https://github.com/bajb "bajb (17 commits)")[![MrEssex](https://avatars.githubusercontent.com/u/5024348?v=4)](https://github.com/MrEssex "MrEssex (8 commits)")[![msievenpiper](https://avatars.githubusercontent.com/u/23214373?v=4)](https://github.com/msievenpiper "msievenpiper (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/packaged-ui-pagelets/health.svg)

```
[![Health](https://phpackages.com/badges/packaged-ui-pagelets/health.svg)](https://phpackages.com/packages/packaged-ui-pagelets)
```

PHPackages © 2026

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