hotelmah/modelixe
Composer 安装命令:
composer require hotelmah/modelixe
包简介
ModeliXe v2 is a light-weight PHP template library that was originally used in 2001 for a vintage web-based guestbook. The library originated in France. This new version 2 works in PHP 8 and can be used for experimenting, personal small projects, or upgrading.
README 文档
README
ModeliXe v2 is a light-weight PHP template library that was originally used in 2001 for a guestbook. The template engine and guestbook application originated in France. This new version 2 works in PHP 8 and can be used for experimenting, personal small projects, or further upgrading. I wanted to resurrect my old guestbook. Thus, I put some time into repairing this ModeliXe template engine.
ModeliXe v1 was the templating engine featured in a vintage web-based guestbook named @lexGuestbook. Their website is still up and running. You can download the original code from their website located at this link: @lexGuestbook Original Code Download.
Directories and Files Not Included in Packagist Package
- CSS/
- Templates/
- .gitattributes
- Quad-Template-Test-1.php
- Table-Template-Test-1.php
Test Files
- Quad-Template-Test-1.php
- Table-Template-Test-1.php
- These test files demonstrate how the library works.
Library Features
- HTML Template Variable syntax:
<title>{text id="Title"}</title>
- HTML Bloc Template Variable syntax:
<div> {start id="BlocTop"} {end id="BlocTop"} </div>
- Using the Bloc feature, you can append, delete, replace, loop, and modify blocks of HTML.
- The modify option allows you to load another template reference into the HTML document.
- The Bloc feature also allows you to loop a template reference.
- For example, you can read dynamic data from a database, and render it using this library (for experimental purposes).
- See the Table Template Test 1 sample file for an illustration.
Installation - Composer
- run this command in your project root:
composer require hotelmah/modelixe
- There is no need to manually create/update a composer.json file in your project root since this command does it automatically.
- The package is listed on Packagist, but is hosted on GitHub where the source is pulled from.
Installation - Manual
- Copy the src directory contents to an appropriately named directory like includes/ in your LAMP web hosting provider.
- Refer to the 2x test files above.
Notes
- There is no further documentation for this library.
- The samples are not included in the Packagist package.
- The samples serve as the tool to learn how to use the library.
- Included in the samples are how to create a form select drop-down control.
- There are additional features of the library to be discovered by browsing the code.
- For example, the template engine can also create links, images links, radio buttons, etc.
- If you like to see me upload more samples, post a discussion or issue entry. Thanks!
- What's great about a template engine is separating server code from structure and styling languages.
Purpose
- Revisit the past.
- Experiment with an old template engine.
- Use it as a light weight engine for testing or small purposes.
- Upgrade the project.
Future Upgrades
- The caching feature is not working.
- The Error Manager could use improvement.
- Additional minor code improvements and refactoring.
Feedback
- Forks and Pull Requests are welcomed.
- Suggestions and comments for improvement are requested.
- Thank you for reading!
License
- GNU GENERAL PUBLIC LICENSE, Version 3.
hotelmah/modelixe 适用场景与选型建议
hotelmah/modelixe 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 25 次下载、GitHub Stars 达 0, 最近一次更新时间为 2024 年 12 月 01 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「php」 「template」 「lightweight」 「france」 「ModeliXe」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 hotelmah/modelixe 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 hotelmah/modelixe 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 hotelmah/modelixe 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Splot Framework. Lightweight, fully featured framework for rapid web development.
Simple ASCII output of array data
E2E Studios PHP Framework adaptation of leafsphp/blade package
Alfabank REST API integration
Ensolab template project
PHP View Library
统计信息
- 总下载量: 25
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 25
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0-only
- 更新时间: 2024-12-01