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 (106)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2017-12-07 (10 days ago) RSS 2.0 feedStarStarStarStarStar 80%Total: 345 This week: 9All time: 6,777 This week: 76Up
Version License PHP version Categories
jaxon-core 2.1.3BSD 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 <contact>
Classes: 12 packages by
Country: Cameroon Cameroon
Age: 41
All time rank: 26703 in Cameroon Cameroon
Week rank: 57 Up1 in Cameroon Cameroon Up
Innovation award
Innovation award
Nominee: 1x

Details

Build Status Scrutinizer Code Quality StyleCI

Latest Stable Version Total Downloads Latest Unstable Version License

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 configuration settings can be loaded from a file. Supported formats are JSON, YAML and PHP.
  • The library provides pagination feature out of the box.
  • The 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.
  • Starting from release 2.1, the library natively implements Ajax file upload.
  • 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, 7 directories)
Files folder imagetemplates (3 directories)
Files folder imagetests (1 directory)
Files folder imagetranslations (3 directories)
Accessible without login Plain text file .styleci.yml Data Auxiliary data
Accessible without login Plain text file .travis.yml Data Auxiliary data
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 phpunit.xml Data Auxiliary data
Accessible without login Plain text file README.md Doc. Readme

  Files folder image Files  /  src  
File Role Description
Files folder imageException (2 files, 1 directory)
Files folder imageJQuery (1 file, 1 directory)
Files folder imagePlugin (4 files)
Files folder imageRequest (5 files, 4 directories)
Files folder imageResponse (2 files, 1 directory)
Files folder imageTraits (5 files)
Files folder imageUtils (2 files, 7 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  /  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 (1 file, 1 directory)
  Accessible without login Plain text file Plugin.php Class Class source

  Files folder image Files  /  src  /  JQuery  /  Dom  
File Role Description
Files folder imageCall (3 files)
  Accessible without login Plain text file Element.php Class Class source

  Files folder image Files  /  src  /  JQuery  /  Dom  /  Call  
File Role Description
  Accessible without login Plain text file AttrGet.php Class Class source
  Accessible without login Plain text file AttrSet.php Class Class source
  Accessible without login Plain text file Method.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 (3 files)
Files folder imagePlugin (4 files)
Files folder imageSupport (6 files)
Files folder imageTraits (2 files)
  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 Alert.php Class Class source
  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 FileUpload.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 Alert.php Class Class source
  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 UploadedFile.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 Alert.php Class Class source
  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  /  Traits  
File Role Description
  Accessible without login Plain text file Autoload.php Class Class source
  Accessible without login Plain text file Config.php Class Class source
  Accessible without login Plain text file Plugin.php Class Class source
  Accessible without login Plain text file Sentry.php Class Class source
  Accessible without login Plain text file Upload.php Class Class source

  Files folder image Files  /  src  /  Utils  
File Role Description
Files folder imageConfig (4 files)
Files folder imageInterfaces (2 files)
Files folder imagePagination (2 files)
Files folder imageTemplate (3 files)
Files folder imageTraits (12 files)
Files folder imageTranslation (1 file)
Files folder imageValidation (1 file)
  Accessible without login Plain text file Container.php Class Class source
  Accessible without login Plain text file URI.php Class Class source

  Files folder image Files  /  src  /  Utils  /  Config  
File Role Description
  Accessible without login Plain text file Config.php Class Class source
  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  /  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  /  Pagination  
File Role Description
  Accessible without login Plain text file Paginator.php Class Class source
  Accessible without login Plain text file Renderer.php Class Class source

  Files folder image Files  /  src  /  Utils  /  Template  
File Role Description
  Accessible without login Plain text file Minifier.php Class Class source
  Accessible without login Plain text file Renderer.php Class Class source
  Accessible without login Plain text file Template.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 Session.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
  Accessible without login Plain text file View.php Class Class source

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

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

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

  Files folder image Files  /  templates  /  pagination  
File Role Description
Files folder imagelinks (5 files)
  Accessible without login Plain text file wrapper.php Example Example script

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

  Files folder image Files  /  templates  /  support  
File Role Description
  Accessible without login Plain text file event.js.php Example Example script
  Accessible without login Plain text file function.js.php Example Example script
  Accessible without login Plain text file object.js.php Example Example script

  Files folder image Files  /  tests  
File Role Description
Files folder imageRequest (1 file)

  Files folder image Files  /  tests  /  Request  
File Role Description
  Accessible without login Plain text file RequestTest.php Class Class source

  Files folder image Files  /  translations  
File Role Description
Files folder imageen (3 files)
Files folder imagees (3 files)
Files folder imagefr (3 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
  Accessible without login Plain text file upload.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
  Accessible without login Plain text file upload.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
  Accessible without login Plain text file upload.php Aux. Auxiliary script

 Version Control Reuses Unique User Downloads Download Rankings  
 95%3
Total:345
This week:9
All time:6,777
This week:76Up
 User Ratings  
 
 All time
Utility:100%StarStarStarStarStarStar
Consistency:100%StarStarStarStarStarStar
Documentation:100%StarStarStarStarStarStar
Examples:100%StarStarStarStarStarStar
Tests:-
Videos:-
Overall:80%StarStarStarStarStar
Rank:23