2017 © Pedro Peláez
 

library 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.

image

dsx/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.

  • Friday, June 12, 2015
  • by nickdietel
  • Repository
  • 0 Watchers
  • 0 Stars
  • 40 Installations
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

PHP Ajax Extension

Please see PAX-Sandbox for info and examples https://github.com/paxphp/pax-sandbox, (*1)

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., (*2)

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., (*3)

Installation

via composer, (*4)

composer require pax/pax:dev-master

if you're already using the composer asset plugin you can require below to install the java script, (*5)

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

via archive (latest), (*6)

https://github.com/paxphp/pax/archive/master.zip, (*7)

Usage

index.html, (*8)









response.php, (*9)

// 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

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

  • PHP 5.4+
  • jQuery 1.7+
  • AJAX enabled browser
  • Enjoy!

License

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

The Versions

12/06 2015

dev-master

9999999-dev https://github.com/paxphp/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.

  Sources   Download

MIT

The Requires

  • php >=5.4

 

php ajax xhr