PHPackages                             phpx/ext - 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. phpx/ext

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

phpx/ext
========

PHPX ExtJs Library

022PHP

Since Apr 11Pushed 12y ago2 watchersCompare

[ Source](https://github.com/PsyduckMans/PHPX-Ext)[ Packagist](https://packagist.org/packages/phpx/ext)[ RSS](/packages/phpx-ext/feed)WikiDiscussions master Synced 4d ago

READMEChangelogDependenciesVersions (1)Used By (0)

PHPX-Ext
========

[](#phpx-ext)

PHPX/Ext library for ExtJS

usage
-----

[](#usage)

### api.js

[](#apijs)

```
Ext.app.REMOTING_API = {
    type: 'remoting',
    url: 'api/router.php',
    actions: {
        "Ext.app.Login": [
            {name: 'check', formHandler:true, len:1},
            {name: 'quit', len:1}
        ],
        "Ext.app.Customer": [
            {name: 'treeList', len:1}
        ],
        "Ext.app.Product": [
            {name: 'list', len:1},
            {name: 'add', formHandler:true, len:1},
            {name: 'edit', formHandler:true, len:1},
            {name: 'delete', len:1}
        ]
    }
};

```

### api/router.php

[](#apirouterphp)

```
require 'vendor/autoload.php';
try {
    $protocal = \PHPX\Ext\Direct\ProtocalFactory::create(
        \PHPX\Ext\Direct\Util\ProtocalRawData::read()
    );

    $processHandler = \PHPX\Ext\Direct\ProcesseHandler::getInstance()
        ->setActionManager(new \PHPX\Ext\Direct\ActionManager(array(
            'actions' => array(
                'Ext.app.Login' => new \AppDemo\Ext\Action\LoginAction(),
                'Ext.app.Customer' => new \AppDemo\Ext\Action\CustomerAction(),
                'Ext.app.Product' => new \AppDemo\Ext\Action\ProductAction()
            )
        )));
    $processHandler->execute($protocal);

    echo $protocal->toJson();
} catch(\Exception $e) {
    // log & exception handler
}

```

### \\AppDemo\\Ext\\Action\\LoginAction.php

[](#appdemoextactionloginactionphp)

```
namespace AppDemo\Ext\Action;

use PHPX\Ext\Direct\Action;
use PHPX\Ext\Direct\Result\Success;

/**
 * Class LoginAction
 * @package AppDemo\Ext\Action
 */
class LoginAction {
    public function checkMethod(array $data) {
        $vcode = $data['vcode'];
        $seccode = $_SESSION["seccode"];
        if($vcode !== $seccode) {
            // log vcode & seccode
            throw new \Exception('验证码错误');
        }

        // authentication login handler ...

        return new Success(
            array('userInfo' => array(
                'role' => 'administrator'
            )),
            '登陆成功'
        );
    }

    public function quitMethod(array $data) {
        // authentication logout handler ...
        return new Success(array(), '退出成功');
    }
}

```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 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://www.gravatar.com/avatar/8cb531d10a70cf33154aca99a3bf4ac4d8bb08f6a885294c17b090d93aa7850b?d=identicon)[PsyduckMans](/maintainers/PsyduckMans)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/phpx-ext/health.svg)

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

PHPackages © 2026

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