Download the PHP package xaraya/skeleton without Composer
On this page you can find all versions of the php package xaraya/skeleton. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download xaraya/skeleton
More information about xaraya/skeleton
Files in xaraya/skeleton
Package skeleton
Short Description Skeleton for a new Xaraya module
License GPL-2.0-or-later
Homepage https://github.com/xaraya-modules/skeleton
Informations about the package skeleton
Skeleton
Skeleton for a new Xaraya module
Version highlights
1.0.0 Initial version
This version aligns with Xaraya 2.5.0 and uses traditional user gui and user api functions in xaruser.php
and xaruserapi.php
.
The actual module code is in Xaraya\Modules\Skeleton
classes with DynamicData userapi and usergui traits to support DD out of the box.
This version also supports Twig templates if enabled in Xaraya html/index.php
:
2.5.3 Module classes via core
This version aligns with Xaraya 2.5.3 and uses xarMod::usergui()
resp. xarMod::userapi()
to load module classes from the core via the new module class in module.php
.
2.5.5 Align with trait namespaces
This version aligns with Xaraya 2.5.4 and uses the Xaraya\Modules
namespace for module traits.
2.6.0 Use module classes directly
This version aligns with Xaraya 2.5.5 and Xaraya core can call the module api, gui and installer class methods directly.
Procedural functions like skeleton_userapi_getitemtypes()
in xaruserapi.php, xaruser.php or xarinit.php files are not needed anymore. This changes from the traditional module structure used since Xaraya 1.x, and allows modules to be developped in a more object-oriented way.
Note that traditional function files are still supported and will take precedence if available.