Replaces MODX template engine + RESTful API

Creator: Sergei Shlokov (sergant210)

Need help installing this extra?

About ZoomX

ZoomX offers an alternative way to handling a request and preparing a response. The main goal is not to use elements from the database (as far as it's possible) and use your favorite IDE and versioning support for full development.

Important! This Extra requires PHP >= 7.0.


November 24, 2022

Supported Database

The MIT License (MIT)

Supported Versions
2.7 - <3.0


ZoomX Documentation


Use the Package manager.

New in 3.6.0-pl


  • Added creation of the $_POST array from json data.
  • Fixed route parsing for JSON requests (again).


  • Fixed route parsing for JSON requests.


  • Added file plugins for mgr context.
  • Added support for contexts.
  • Improved the "resource" modifier.
  • Fixed plugin error during testing.
  • Fixed a bug with the route file (#18).


  • Fixed a bug with multiple calls of the same snippet with a set of parameters.
  • Fixed a bug with empty plugin list (#6).
  • The $events property of a file plugin can be an empty array (#7).
  • Added system setting "zoomx_config_path" for ZoomX configs (#8).
  • Smarty caching is now available for resources with DB Smarty template (#12).
  • Removed private magic methods of the Service class for PHP8 compatibility (#13).


  • Fixed the "runSnippet" and the "runFileSnippet" methods of the main service class.
  • Fixed creation of Smarty directories.
  • Fixed a bug with the controller method disappearing.
  • Fixed a bug with controller's namespace.


  • Added support for file plugins.
  • Added modifier "markdown".
  • Added the ability to specify the caching time for snippets.
  • Added the ability to use short controller names.
  • Added short redirect format in routes.
  • Added the "OnBeforeRouteProcess" event.
  • Added the "zoomx_cache_event_map" system setting.
  • Added the "zoomx_controller_namespace" system setting.
  • Improved the function jsonx.
  • Fixed a bug in the header name Content-Type for JSON requests.
  • Refactored security functionality.


  • Added route caching.
  • Added multiple paths for snippets.
  • Fixed a bug with unpublished resources (#3).


  • Added modifier fuzzyDate.
  • Added modifier dateAgo.
  • Fixed a bug with the availability of the $zoomx object in templates (#1).
  • Refactored the mechanism of virtual pages (#2).


  • Added modifier declension.
  • Added the ability to use snippets as modifiers.
  • Added the "source" parameter to the request info.


  • Refactored the automatic content type detection.
  • Fixed the parse block for Smarty.


  • Added missing pdoTools adapter files.


  • WARNING! Only for a new installation. Do not update the previously installed version. *
  • Required PHP Version 7.1+.
  • Added Smarty as a default parser.
  • Added pdoTools adapter that replaces Fenom template engine with Smarty in pdoTools snippets.
  • Added support for file elements (snippets and chunks).
  • Added exception handler with trace details.
  • Added the helper function "filex" for downloading files.
  • Added the helper function "redirectx" for managing redirects.
  • Added onZoomxInit event.
  • Added the ability to extend the Service class using macros.
  • Added Smarty security support.
  • Particular virtual pages.


  • Some bugfixes.


  • Added "zoomx_autoload_resource" system setting which allows to disable the search and auto-loading the resource for the corresponding URI.
  • Fixed a bug when working in CLI mode.
  • Returned support of the GET parameter "q".


  • Added API mode that supports REST architecture.
  • Added support for controllers in routes.
  • Added shorthand modifiers "js", "css" and "html" .
  • Added MODX like tag syntax ({'*pagetitle'}, {'%lexicon'}, {'++setting'}, {'~5'}).
  • Added OnRequestError event for error codes 400, 406, 415, 503 and any custom codes.
  • Refactored modifiers "url" and "lexicon".
  • Renamed the system setting "zoomx_routs_mode" on "zoomx_routing_mode".


  • Fixed bug with the path for compiled templates.


  • Allow the $modx object in templates.
  • Fixed bug with uninstalling.
  • Added 'modx' modifier.
  • Some code refactoring.


  • Initial release.

Current releases

View | Download
November 24, 2022
2.7 - <3.0