PHPackages                             konekt/xtend - 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. [Framework](/categories/framework)
4. /
5. konekt/xtend

ActiveLibrary[Framework](/categories/framework)

konekt/xtend
============

Library to support creating extendable, plugin-aware applications

2.0.0(1y ago)1107.4k↑341.2%7MITPHPPHP ^8.2CI passing

Since Nov 30Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/artkonekt/xtend)[ Packagist](https://packagist.org/packages/konekt/xtend)[ Docs](https://github.com/artkonekt/xtend)[ RSS](/packages/konekt-xtend/feed)WikiDiscussions master Synced yesterday

READMEChangelog (4)Dependencies (1)Versions (6)Used By (7)

Plugin Features for PHP
=======================

[](#plugin-features-for-php)

[![Tests](https://camo.githubusercontent.com/9ddac7e1f6edc0b03d1b545dab9fd3035b3fdfdadfb542856ef10f32b4e13f68/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6172746b6f6e656b742f7874656e642f74657374732e796d6c3f6272616e63683d6d6173746572267374796c653d666c61742d737175617265)](https://github.com/artkonekt/xtend/actions?query=workflow%3Atests)[![Packagist version](https://camo.githubusercontent.com/46a8db0b44d174e7a150883b1a69ee2402bfa0ce1f946d6f5cde3bf51dc5c811/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6b6f6e656b742f7874656e642e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/konekt/xtend)[![Packagist downloads](https://camo.githubusercontent.com/8c2be93d931375d424b6e4279d2ce599c040ea84df120f4804069817701852cb/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6b6f6e656b742f7874656e642e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/konekt/xtend)[![StyleCI](https://camo.githubusercontent.com/ac4a0ae6b0393008cd67ea077862e35e3a0c79807522e9ae20fc783d4a0cd572/68747470733a2f2f7374796c6563692e696f2f7265706f732f3732353635343233372f736869656c643f6272616e63683d6d6173746572)](https://styleci.io/repos/725654237)[![MIT Software License](https://camo.githubusercontent.com/942e017bf0672002dd32a857c95d66f28c5900ab541838c6c664442516309c8a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)

Requirements
------------

[](#requirements)

- PHP 8.2+

Features
--------

[](#features)

- Registries
- Hooks

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

[](#installation)

You can install the package via composer:

```
composer require konekt/xtend
```

Usage
-----

[](#usage)

### Registries

[](#registries)

The following example shows a sample registry that holds reference to various PaymentGateway implementations.

Steps:

1. Create a class
2. Add the `Registry` interface
3. Use the `HasRegistry` and `RequiresClassOrInterface` traits
4. Add the `$requiredInterface` static property, and set the interface

```
final class PaymentGateways implements Registry
{
    use HasRegistry;
    use RequiresClassOrInterface;

    private static string $requiredInterface = PaymentGateway::class;
}
```

Having that, other developers can add new payment gateways:

```
PaymentGateways::add('braintree', BrainTreePaymentGateway::class);
```

###  Health Score

47

—

FairBetter than 93% of packages

Maintenance66

Regular maintenance activity

Popularity34

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 78.3% 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 ~118 days

Total

5

Last Release

472d ago

Major Versions

1.x-dev → 2.0.02025-03-18

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/5520702?v=4)[konekt](/maintainers/konekt)[@konekt](https://github.com/konekt)

---

Top Contributors

[![fulopattila122](https://avatars.githubusercontent.com/u/1162360?v=4)](https://github.com/fulopattila122 "fulopattila122 (18 commits)")[![StyleCIBot](https://avatars.githubusercontent.com/u/11048387?v=4)](https://github.com/StyleCIBot "StyleCIBot (5 commits)")

---

Tags

extensionshookspluginskonekt

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/konekt-xtend/health.svg)

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

###  Alternatives

[slim/extras

Extras package for the Slim Framework

491514.9k14](/packages/slim-extras)[wpbones/wpbones

WordPress framework for Laravel developers

1705.2k1](/packages/wpbones-wpbones)

PHPackages © 2026

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