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.
Install the latest version with composer require sundflux/libvaloa
or include libvaloa in your composer.json
{
"require": {
"sundflux/libvaloa": "^3.0.0"
}
}
- PHP 7.2 or newer.
- XSL support enabled (php7.2-xsl)
- 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 (C) 2019 Tarmo Alexander Sundström & contributors.
Libvaloa is licensed under the MIT License - see the LICENSE file for details.
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.
- Set minimum PHP requirement to 7.2.19
- More refactoring and fixes to Ui\Xml.
- 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.
- Rename Db\Object as Db\Item, this is necessary for PHP 7.2 compatibility (Object is now reserved word).
- Set and bind in Db\ResultSet now allow PDO type constants to be passed as a parameter.
- Readme fix.
- Gettext now returns original string if translation is not found.
- Gettext was always forced as default translator backend, oops.
- Gettext translation support, \I18n\Translate\Gettext.
- Composer dependency to Gettext/gettext.
- More inline documentation.
- Separated Db\ResultSet to its own file.
- Fixes illegal string offset/missing array initializing in Db/Object.
- Fixes Array to string crash in Xml/Conversion.php.
- Updated project urls.
- Code cleanups for Xml/Conversion.
- 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.
- Libvaloa\Debug: Debug prints should output only when error level is E_ALL.
- Libvaloa\Ui\Xml: Fix session_status() check in addMessage().
- Initial release with stable API.