PHPackages                             pax/pax - 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. pax/pax

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

pax/pax
=======

PAX provides easy interacting between PHP and AJAX while it reduces at the same time written code in Javascript and improves the way of managing and manipulating DOM elements from the backend in an object oriented style.

247PHP

Since Jun 12Pushed 10y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

PHP Ajax Extension
==================

[](#php-ajax-extension)

Please see PAX-Sandbox for info and examples

About
-----

[](#about)

PAX provides easy interacting between PHP and AJAX while it reduces at the same time written code in Javascript and improves the way of managing and manipulating DOM elements from the backend in an object oriented style.

Although PAX was inspired by the awesome xajax-project it is using a slightly different approach. PAX is a way more simple but still flexible while it makes use of abstractions and object extensions. With that approach it doesn't offer a plugin technology but makes it fairly easy to give you the power of creating your own Responder. That furthermore lowers the number of code and makes sure you include only code you really need.

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

[](#installation)

**via composer**

```
composer require pax/pax:dev-master

```

if you're already using the composer asset plugin you can require below to install the java script

```
"require" : {
 "bower-asset/jquery-pax": "dev-master"
}

```

**via archive (latest)**

Usage
-----

[](#usage)

*index.html*

```

```

*response.php*

```
// when using composer
//require_once "vendor/autoload.php";

// Init the response
$oPAX = new Pax\Response();

// Define actions to perform on the frontend
$oPAX->alert($_GET['content']);

// Send the response back for processing on the front end
$oPAX->answer();
```

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

[](#requirements)

Although PAX was developed with below requirements it's fairly easy to amend the code to meet the requirements of your development environment.

- PHP 5.4+
- jQuery 1.7+
- AJAX enabled browser
-

Enjoy!

License
-------

[](#license)

PAX is released under "The MIT License" and is free and open source. Please feel free to download, modify and extend the code.

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

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/d8b6e9ae31d7a62186c00cb7b6163f57351ee76a019311c56d9492f257283dbe?d=identicon)[nickdietel](/maintainers/nickdietel)

---

Top Contributors

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

### Embed Badge

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

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

PHPackages © 2026

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