PHP Classes
elePHPant
Icontem

Jaxon: Call PHP classes from JavaScript using AJAX

Recommend this page to a friend!
  Info   View files Example   Demos   View files View files (84)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2017-02-22 (1 month ago) RSS 2.0 feedStarStarStarStarStar 80%Total: 259 This week: 2All time: 7,400 This week: 385Up
Version License PHP version Categories
jaxon-core 2.0.0BSD License5PHP 5, Language, AJAX, Traits
Description Author

This package can call PHP classes from JavaScript using AJAX.

It can register objects of classes or global functions and process AJAX requests that are handled by the registered functions.

The package can register directories of classes, so it is not necessary to register each class in each directory at once, with support to namespaces.

The classes are autoloaded on demand, so only the classes that necessary for each AJAX request will be loaded.

The AJAX calls are done by a separate JavaScript library which can eventually be retrieved from a CDN (Content Delivery Networt) so it does not have to be installed by this package.

Innovation Award
PHP Programming Innovation award nominee
July 2016
Number 2


Prize: One downloadable copy of Komodo IDE
Many Web applications have browser side (JavaScript) code making AJAX calls to server side code in PHP that is mapped to classes of objects.

Usually the server side code needs to register classes or functions that will handle the AJAX calls.

However, when you have many classes to handle your Web application AJAX calls, registering classes one by one can be a tedious time consuming task.

The package provides a more efficient method to register many classes at once. You just specify a directory and the package will lookup and load the classes on demand when the AJAX calls are received.

This way you also do not have to waste time instantiating objects of the handler classes until they are necessary.

Manuel Lemos
  Performance   Level  
Name: Thierry Feuzeu is available for providing paid consulting. Contact Thierry Feuzeu .
Classes: 11 packages by
Country: Cameroon Cameroon
Age: 40
All time rank: 31203 in Cameroon Cameroon
Week rank: 45 Up1 in Cameroon Cameroon Up
Innovation award
Innovation award
Nominee: 1x

Details

The Jaxon core library

Jaxon is an open source PHP library for easily creating Ajax web applications. It allows into a web page to make direct Ajax calls to PHP classes that will in turn update its content, without reloading the entire page.

Jaxon is a fork of the Xajax PHP library.

This package is the Jaxon core library. Several plugins are provided in separate packages.

Features

  • All the Jaxon classes in a directory can be registered in one shot, possibly with a namespace.
  • The Jaxon library can load its configuration settings from a file. Supported formats are JSON, YAML and PHP.
  • The Jaxon library provides pagination feature out of the box.
  • The Jaxon PHP library is modular, and consists of a core package and several plugin packages.
  • The javascript library is provided in a separated and javascript-only package, loaded by default from the jsDelivr CDN.
  • The generated javascript classes are named according to their namespace or the subdirectory where they are located.
  • All PHP packages install with Composer, are fully namespaced, and implement PSR-4 autoloading.
  • The Jaxon library runs on PHP versions 5.4 to 7.0.

Documentation

The project documentation is available in English and French.

Some sample codes are provided in the jaxon-php/jaxon-examples package, and demonstrated in the website.

Contribute

  • Issue Tracker: github.com/jaxon-php/jaxon-core/issues
  • Source Code: github.com/jaxon-php/jaxon-core

License

The project is licensed under the BSD license.

  Hello World ClassExternal page   Hello World FunctionExternal page  
  Files folder image Files  
File Role Description
Files folder imagesrc (2 files, 8 directories)
Files folder imagetemplates (3 directories)
Files folder imagetranslations (3 directories)
Accessible without login Plain text file class.php Example Example of Jaxon class
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file hello.php Example Example of Jaxon function
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file README.md Doc. Readme

  Files folder image Files  /  src  
File Role Description
Files folder imageConfig (3 files)
Files folder imageException (2 files, 1 directory)
Files folder imageJQuery (1 file, 1 directory)
Files folder imageModule (3 files, 2 directories)
Files folder imagePlugin (4 files)
Files folder imageRequest (5 files, 4 directories)
Files folder imageResponse (2 files, 1 directory)
Files folder imageUtils (8 files, 2 directories)
  Accessible without login Plain text file Jaxon.php Class Class source
  Accessible without login Plain text file start.php Example Example script

  Files folder image Files  /  src  /  Config  
File Role Description
  Accessible without login Plain text file Json.php Class Class source
  Accessible without login Plain text file Php.php Class Class source
  Accessible without login Plain text file Yaml.php Class Class source

  Files folder image Files  /  src  /  Exception  
File Role Description
Files folder imageConfig (3 files)
  Accessible without login Plain text file Error.php Class Class source
  Accessible without login Plain text file URI.php Class Class source

  Files folder image Files  /  src  /  Exception  /  Config  
File Role Description
  Accessible without login Plain text file Data.php Class Class source
  Accessible without login Plain text file File.php Class Class source
  Accessible without login Plain text file Yaml.php Class Class source

  Files folder image Files  /  src  /  JQuery  
File Role Description
Files folder imageDom (2 files)
  Accessible without login Plain text file Plugin.php Class Class source

  Files folder image Files  /  src  /  JQuery  /  Dom  
File Role Description
  Accessible without login Plain text file Action.php Class Class source
  Accessible without login Plain text file Element.php Class Class source

  Files folder image Files  /  src  /  Module  
File Role Description
Files folder imageFactory (2 files)
Files folder imageTraits (1 file)
  Accessible without login Plain text file Controller.php Class Class source
  Accessible without login Plain text file Module.php Class Class source
  Accessible without login Plain text file View.php Class Class source

  Files folder image Files  /  src  /  Module  /  Factory  
File Role Description
  Accessible without login Plain text file Paginator.php Class Class source
  Accessible without login Plain text file Request.php Class Class source

  Files folder image Files  /  src  /  Module  /  Traits  
File Role Description
  Accessible without login Plain text file Module.php Class Class source

  Files folder image Files  /  src  /  Plugin  
File Role Description
  Accessible without login Plain text file Manager.php Class Class source
  Accessible without login Plain text file Plugin.php Class Class source
  Accessible without login Plain text file Request.php Class Class source
  Accessible without login Plain text file Response.php Class Class source

  Files folder image Files  /  src  /  Request  
File Role Description
Files folder imageInterfaces (2 files)
Files folder imagePlugin (3 files)
Files folder imageSupport (4 files)
Files folder imageTraits (1 file)
  Accessible without login Plain text file Factory.php Class Class source
  Accessible without login Plain text file JsCall.php Class Class source
  Accessible without login Plain text file Manager.php Class Class source
  Accessible without login Plain text file Parameter.php Class Class source
  Accessible without login Plain text file Request.php Class Class source

  Files folder image Files  /  src  /  Request  /  Interfaces  
File Role Description
  Accessible without login Plain text file Confirm.php Class Class source
  Accessible without login Plain text file Parameter.php Class Class source

  Files folder image Files  /  src  /  Request  /  Plugin  
File Role Description
  Accessible without login Plain text file BrowserEvent.php Class Class source
  Accessible without login Plain text file CallableObject.php Class Class source
  Accessible without login Plain text file UserFunction.php Class Class source

  Files folder image Files  /  src  /  Request  /  Support  
File Role Description
  Accessible without login Plain text file BrowserEvent.php Class Class source
  Accessible without login Plain text file CallableObject.php Class Class source
  Accessible without login Plain text file Confirm.php Class Class source
  Accessible without login Plain text file UserFunction.php Class Class source

  Files folder image Files  /  src  /  Request  /  Traits  
File Role Description
  Accessible without login Plain text file Factory.php Class Class source

  Files folder image Files  /  src  /  Response  
File Role Description
Files folder imageTraits (1 file)
  Accessible without login Plain text file Manager.php Class Class source
  Accessible without login Plain text file Response.php Class Class source

  Files folder image Files  /  src  /  Response  /  Traits  
File Role Description
  Accessible without login Plain text file Factory.php Class Class source

  Files folder image Files  /  src  /  Utils  
File Role Description
Files folder imageInterfaces (2 files)
Files folder imageTraits (10 files)
  Accessible without login Plain text file Config.php Class Class source
  Accessible without login Plain text file Container.php Class Class source
  Accessible without login Plain text file Minifier.php Class Class source
  Accessible without login Plain text file Paginator.php Class Class source
  Accessible without login Plain text file Template.php Class Class source
  Accessible without login Plain text file Translator.php Class Class source
  Accessible without login Plain text file URI.php Class Class source
  Accessible without login Plain text file Validator.php Class Class source

  Files folder image Files  /  src  /  Utils  /  Interfaces  
File Role Description
  Accessible without login Plain text file EventListener.php Class Class source
  Accessible without login Plain text file EventListener.php Class Class source

  Files folder image Files  /  src  /  Utils  /  Traits  
File Role Description
  Accessible without login Plain text file Cache.php Class Class source
  Accessible without login Plain text file Config.php Class Class source
  Accessible without login Plain text file Event.php Class Class source
  Accessible without login Plain text file Event.php Class Class source
  Accessible without login Plain text file Manager.php Class Class source
  Accessible without login Plain text file Minifier.php Class Class source
  Accessible without login Plain text file Paginator.php Class Class source
  Accessible without login Plain text file Template.php Class Class source
  Accessible without login Plain text file Translator.php Class Class source
  Accessible without login Plain text file Validator.php Class Class source

  Files folder image Files  /  templates  
File Role Description
Files folder imagelibraries (1 file)
Files folder imageplugins (8 files)
Files folder imagesupport (3 files)

  Files folder image Files  /  templates  /  libraries  
File Role Description
  Accessible without login Plain text file string.js.tpl Data Auxiliary data

  Files folder image Files  /  templates  /  plugins  
File Role Description
  Accessible without login Plain text file config.js.tpl Data Auxiliary data
  Accessible without login Plain text file confirm.js.tpl Data Auxiliary data
  Accessible without login Plain text file confirm.js.tpl Data Auxiliary data
  Accessible without login Plain text file errors.txt.tpl Data Auxiliary data
  Accessible without login Plain text file include.js.tpl Data Auxiliary data
  Accessible without login Plain text file includes.js.tpl Data Auxiliary data
  Accessible without login Plain text file ready.js.tpl Data Auxiliary data
  Accessible without login Plain text file wrapper.js.tpl Data Auxiliary data

  Files folder image Files  /  templates  /  support  
File Role Description
  Accessible without login Plain text file event.js.tpl Data Auxiliary data
  Accessible without login Plain text file function.js.tpl Data Auxiliary data
  Accessible without login Plain text file object.js.tpl Data Auxiliary data

  Files folder image Files  /  translations  
File Role Description
Files folder imageen (2 files)
Files folder imagees (2 files)
Files folder imagefr (2 files)

  Files folder image Files  /  translations  /  en  
File Role Description
  Accessible without login Plain text file config.php Aux. Auxiliary script
  Accessible without login Plain text file errors.php Aux. Auxiliary script

  Files folder image Files  /  translations  /  es  
File Role Description
  Accessible without login Plain text file config.php Aux. Auxiliary script
  Accessible without login Plain text file errors.php Aux. Auxiliary script

  Files folder image Files  /  translations  /  fr  
File Role Description
  Accessible without login Plain text file config.php Aux. Auxiliary script
  Accessible without login Plain text file errors.php Aux. Auxiliary script

 Version Control Unique User Downloads Download Rankings  
 94%
Total:259
This week:2
All time:7,400
This week:385Up
 User Ratings  
 
 All time
Utility:100%StarStarStarStarStarStar
Consistency:100%StarStarStarStarStarStar
Documentation:100%StarStarStarStarStarStar
Examples:100%StarStarStarStarStarStar
Tests:-
Videos:-
Overall:80%StarStarStarStarStar
Rank:23