xaraya/skeleton 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

xaraya/skeleton

最新稳定版本:2.9.4

Composer 安装命令:

composer require xaraya/skeleton

包简介

Skeleton for a new Xaraya module

README 文档

README

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:

/** un-comment the next line to activate Twig templates */
$context['twig'] = true;

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.

统计信息

  • 总下载量: 41
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 1
  • 推荐数: 1

GitHub 信息

  • Stars: 0
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-2.0-or-later
  • 更新时间: 2024-04-08