mkrawczyk/mpts 问题修复 & 功能扩展

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

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

mkrawczyk/mpts

最新稳定版本:v1.5.10

Composer 安装命令:

composer require mkrawczyk/mpts

包简介

Multi Platform Template System is a template engine for PHP and other platforms.

README 文档

README

Official website: https://greencodestudio.github.io/mpts/

Usage in code

PHP

# Install the MPTS library using Composer
composer require mkrawczyk/mpts
// Import necessary classes from the MPTS library
use MKrawczyk\Mpts\Environment;
use MKrawczyk\Mpts\Parser\XMLParser;

// Parse the MPTS template file
$template = XMLParser::Parse(file_get_contents(__DIR__ . '/file.mpts'));

// Create a new environment and set variables
$env = new Environment();
$env->variables = ['foo' => 'bar'];

// Execute the template with the environment and output the result
echo $template->executeToString($env);

统计信息

  • 总下载量: 1.63k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-04-21

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固