sundflux/libvaloa
Composer 安装命令:
composer require sundflux/libvaloa
包简介
Libvaloa is a small utility library for generating HTML user interfaces using XML+XSL.
README 文档
README
Libvaloa is a small utility library for generating HTML user interfaces using XML+XSL, mainly developed for Webvaloa.
In addition to reference XSL+XML implementation, the UI Interface can be hooked to alternative template engines.
Installation
Install the latest version with composer require sundflux/libvaloa
or include libvaloa in your composer.json
{
"require": {
"sundflux/libvaloa": "^3.0.0"
}
}
Requirements
- PHP 7.2 or newer.
- XSL support enabled (php7.2-xsl)
Features
- XSL/XML/DOM/SimpleXML/PHP Object conversion library.
- Generic UI interface for hooking template engines.
- Reference UI interface implementation using XSL+XML.
- Debugging helpers, including DOM debugger.
- Standards-compatible: PRS-1, PRS-2, PRS-4, verified and fixed with php-cs-fixer.
Copyright and license
Copyright (C) 2019 Tarmo Alexander Sundström & contributors.
Libvaloa is licensed under the MIT License - see the LICENSE file for details.
Contact
Change Log
All notable changes to this project will be documented in this file.
This project adheres to Semantic Versioning.
Changes are grouped by added, fixed or changed feature.
[3.0.2] - 2019-08-25
- Set minimum PHP requirement to 7.2.19
[3.0.1] - 2019-04-19
- More refactoring and fixes to Ui\Xml.
[3.0.0] - 2019-04-13
- Bumped version requirement to PHP 7.2.
- Db package is now separated to its own component, Libvaloa-db. Libvaloa will only concentrate on XSL UI and related utilities.
- Remove I18n package completely. There are better translation libs out there, so it doesn't really bring any value to Libvaloa.
- Move all debug classes under Debug package. Effectively: Debug -> Debug\Debug, Debugtimer -> Debug\Debugtimer, Xml\DomDebug -> Debug\DomDebug.
- Deprecate and remove Xml\Xml and fully concentrate on maintaining Xml\Conversion. Conversion is little more resource heavy than Xml\Xml, but basically Xml\Xml is redurant and doesn't do anything Conversion doesn't do.
- Add return type declarations where acceptable.
[2.0.0] - 2018-06-04
Added
- Rename Db\Object as Db\Item, this is necessary for PHP 7.2 compatibility (Object is now reserved word).
[1.3.0] - 2018-03-22
Added
- Set and bind in Db\ResultSet now allow PDO type constants to be passed as a parameter.
[1.2.3] - 2018-03-21
Fixed
- Readme fix.
[1.2.2] - 2018-03-21
Fixed
- Gettext now returns original string if translation is not found.
[1.2.1] - 2018-03-13
Fixed
- Gettext was always forced as default translator backend, oops.
[1.2.0] - 2018-02-27
Added
- Gettext translation support, \I18n\Translate\Gettext.
- Composer dependency to Gettext/gettext.
- More inline documentation.
Changed
- Separated Db\ResultSet to its own file.
[1.1.2] - 2018-02-23
- Fixes illegal string offset/missing array initializing in Db/Object.
[1.1.1] - 2017-09-05
- Fixes Array to string crash in Xml/Conversion.php.
[1.1.0] - 2017-07-05
Fixed
- Updated project urls.
- Code cleanups for Xml/Conversion.
Added
- Xml/Conversion now exposes more private methods as public.
- Xml/Xsl now uses Xml/Conversion instead of doing direct transformation
- Xml/Xml now uses Xml/Conversion when including view data with addObject.
- Attributes are now possible from the UI since we use Xml/Conversion
- Updated PHP requirement to 5.6 to simplify maintainance.
- Memory requirements are slightly higher after Xml/Conversion migration.
[1.0.1] - 2015-05-14
Fixed
- Libvaloa\Debug: Debug prints should output only when error level is E_ALL.
- Libvaloa\Ui\Xml: Fix session_status() check in addMessage().
[1.0.0] - 2015-05-12
Added
- Initial release with stable API.
sundflux/libvaloa 适用场景与选型建议
sundflux/libvaloa 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 254 次下载、GitHub Stars 达 1, 最近一次更新时间为 2015 年 05 月 12 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「xml」 「xsl」 「libvaloa」 「webvaloa」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 sundflux/libvaloa 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 sundflux/libvaloa 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 sundflux/libvaloa 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Symfony 2 / 3 Apache FOP Bundle
Load DOM document safety
xslt template engine for laravel
Added a method to Laravel response for handling xml response and also converting Eloquent return to XML.
Uses reflection to map XML to PHP objects.
Xml Template Engine
统计信息
- 总下载量: 254
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 17
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-05-12
