定制 sikessem/view 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

sikessem/view

Composer 安装命令:

composer require sikessem/view

包简介

A modern, minimalist and powerful template engine to write HTML, CSS, and JS together in .vw files. Inspired by Blade, JSX and others. Built for Sikessem, but usable with any PHP project.

README 文档

README

View is a modern, elegant, and powerful template engine. Inspired by Blade, JSX, Twig, and other popular engines, it smartly merges HTML, CSS, and JavaScript/TypeScript into .vw files, enabling structured, dynamic, and maintainable code generation.

Designed for the Sikessem ecosystem yet completely standalone, View can be integrated into any project — whether it's built with PHP, JavaScript, Python, or another language. It stands as a serious alternative to JSX/TSX or Blade/Twig, offering a clean, modular, and intuitive syntax that seamlessly bridges frontend and backend development.

php-icon packagist-version-icon packagist-download-icon license-icon actions-icon twitter-icon

Read the documentation to learn more.

An example to see how the code works :

  • The View code
<html>
[lang="fr"]
{color:red;}
(
    <head>
    (
        <meta>[charset="UTF-8"]
        <title>(View source)
    )
    <body>
    (
        <p>[id="main-content"]{color:blue}(Welcome to View !)
    )
)
  • The equivalent HTML5 code
<!DOCTYPE html>
<html lang="fr">
    <head>
        <meta charset="UTF-8"/>
        <title>View source</title>
        <style>
        html
        {
            color: red;
        }
        p#main-content
        {
            color: blue;
        }
        </style>
    </head>
    <body>
        <p id="main-content">Welcome to View !</p>
    </body>
</html>

The equivalent PHP5 code

<?php

use Sikessem\View\Document;

$document = new Document('html', 5);
$document->setAttribute('lang', 'fr');
$document->setProperty('color', 'red');
$document->head->meta->charset = 'UTF-8';
$document->title = 'Welcome to View !';
$p = $document->createElement('p');
$p->setAttribute('id', 'main-content');
$p->setProperty('color', 'red');
$p->setContent('Welcome to View !');
$document->prepend($p, $body);
$document->save();

📖 Documentation

The full documentation for the Sikessem View can be found here.

👏 Contribution

The main purpose of this repository is to continue evolving Sikessem. We want to make contributing to this project as easy and transparent as possible, and we are grateful to the community for contributing bug fixes and improvements. Read below to learn how you can take part in improving Sikessem.

👷 Code of Conduct

Sikessem has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

👥 Contributing Guide

Read our Contributing Guide to learn about our development process, how to propose bugfixes and improvements, and how to build and test your changes to Sikessem.

🔒️ Good First Issues

We have a list of good first issues that contain bugs which have a relatively limited scope. This is a great place to get started, gain experience, and get familiar with our contribution process.

💬 Discussions

Larger discussions and proposals are discussed in Sikessem's GitHub discussions.

🔐 Security Reports

If you discover a security vulnerability within any of Sikessem's projects, please email SIGUI Kessé Emmanuel at contact@sigui.ci. All security vulnerabilities will be promptly addressed.

📄 License

View is licensed under the MIT License - see the LICENSE file for details.

Made with ❤︎ by @siguici.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-04-11

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固