PHPackages                             clearswitch/interfaces - 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. clearswitch/interfaces

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

clearswitch/interfaces
======================

interface

04PHP

Since Apr 6Pushed 5y ago1 watchersCompare

[ Source](https://github.com/ClearSwicth/interface)[ Packagist](https://packagist.org/packages/clearswitch/interfaces)[ RSS](/packages/clearswitch-interfaces/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

\#php 设置模式之访问者模式

创建新的请求实例
--------

[](#创建新的请求实例)

```
use ClearSwitch\Interfaces\ObjectStructure;
use ClearSwitch\Interfaces\Message\PushMessage;
use ClearSwitch\Interfaces\Message\SendMessage;
use ClearSwitch\Interfaces\ServiceProvider\AliYun;
use ClearSwitch\Interfaces\ServiceProvider\JiGuang;
$o = new ObjectStructure();
$o->Attach(new PushMessage());
$o->Attach(new SendMessage());

$v1 = new AliYun();
$v2 = new JiGuang();

$o->Accept($v1);
$o->Accept($v2);
```

###  Health Score

16

—

LowBetter than 4% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity31

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://avatars.githubusercontent.com/u/47359?v=4)[The Apache Software Foundation](/maintainers/Apache)[@apache](https://github.com/apache)

---

Top Contributors

[![ClearSwicth](https://avatars.githubusercontent.com/u/47941313?v=4)](https://github.com/ClearSwicth "ClearSwicth (2 commits)")

### Embed Badge

![Health badge](/badges/clearswitch-interfaces/health.svg)

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

###  Alternatives

[doctrine/event-manager

The Doctrine Event Manager is a simple PHP event system that was built to be used with the various Doctrine projects.

6.0k535.0M171](/packages/doctrine-event-manager)[symfony/event-dispatcher-contracts

Generic abstractions related to dispatching event

3.4k825.3M712](/packages/symfony-event-dispatcher-contracts)[symfony/var-exporter

Provides tools to export, instantiate, hydrate, clone and lazy-load PHP objects

2.1k418.3M874](/packages/symfony-var-exporter)[jean85/pretty-package-versions

A library to get pretty versions strings of installed dependencies

1.3k325.7M89](/packages/jean85-pretty-package-versions)[matthiasmullie/minify

CSS &amp; JavaScript minifier, in PHP. Removes whitespace, strips comments, combines files (incl. @import statements and small assets in CSS files), and optimizes/shortens a few common programming patterns.

2.0k34.0M502](/packages/matthiasmullie-minify)[chillerlan/php-settings-container

A container class for immutable settings objects. Not a DI container.

3538.5M23](/packages/chillerlan-php-settings-container)

PHPackages © 2026

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