PHPackages                             bluepost/blueajax - 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. bluepost/blueajax

Abandoned → [BluePost/BlueUtils](/?search=BluePost%2FBlueUtils)ArchivedLibrary[Framework](/categories/framework)

bluepost/blueajax
=================

Super-Simple framework for making AJAX easier to deal with on the PHP side

1.1.1(10y ago)031[1 issues](https://github.com/BluePost/BlueAjax/issues)PHPPHP &gt;=5.3.0

Since Feb 27Pushed 9y ago2 watchersCompare

[ Source](https://github.com/BluePost/BlueAjax)[ Packagist](https://packagist.org/packages/bluepost/blueajax)[ Docs](https://github.com/BluePost/BlueAjax)[ RSS](/packages/bluepost-blueajax/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (7)DependenciesVersions (10)Used By (0)

Deprecated
==========

[](#deprecated)

This lib has moved to become part of the larger [BlueUtils](https://github.com/BluePost/BlueUtils) and is not being maintained. It will be removed soon.

BlueAjax
========

[](#blueajax)

Super-Simple framework for making AJAX easier to deal with on the PHP side. It also includes some JS objects for communicating with an AJAX php script built using this lib.

\##Getting Started

### Installation with [Composer](https://getcomposer.org/) (**Recommended**)

[](#installation-with-composer-recommended)

We recommend you install the package with Composer:

```
composer require bluepost/blueajax

```

### Installation

[](#installation)

Alternatively you can download the [Latest Release](https://github.com/BluePost/BlueAjax/releases/latest), unzip it, and upload the src folder to your environment. Then require it for every file for which you need it.

```
require_once ('BlueAjax.php');
```

### JavaScript

[](#javascript)

The javascript components are all in JS/BlueAjax.js file.

TODO
----

[](#todo)

- Make all AjaxResponse functions use respond()

Using BlueAjax
--------------

[](#using-blueajax)

The framework is set up to use "success" and "error" to communicate data. Both the php and js sides rely on this. The data is a string, so we recommend that you use them to communicate the status of the request. This allows for human readable response messages without an unnecessary booleans being passed back and forth.

```
