nullaidev/vista 问题修复 & 功能扩展

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

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

nullaidev/vista

最新稳定版本:v1.6.1

Composer 安装命令:

composer require nullaidev/vista

包简介

Vista view render engine.

README 文档

README

A brand new, blazing-fast, and ultra-lightweight PHP view engine designed for modern PHP 8.4+ applications.

Read Full Documentation

Overview

Vista is a minimalist PHP view engine that focuses on performance and simplicity. It provides powerful tools to manage layouts, partials/includes, and dynamic content rendering, making it an ideal choice for modern PHP projects. Unlike traditional template engines like Blade or Twig, Vista does not rely on compiling or caching template files. This makes it an excellent option for developers who prioritize performance and need a straightforward solution for managing views.

Key Features

Vista is only five files and very capable:

  • No Compilation Required: Renders views directly which makes debugging simple.
  • Lightning Fast: Optimized for speed, with minimal overhead.
  • Extremely Lightweight: Small footprint, easy to integrate with any PHP application.
  • Modern Syntax: Intuitive, clean, and developer-friendly APIs.
  • Layout Management: Easily create reusable layouts and templates.
  • Partial Rendering: Modularize your views with include and section methods.
  • Scoped Data Passing: Pass variables to views with isolated scopes for security and clarity.
  • Extensible: Works seamlessly with other PHP frameworks or custom solutions.

Installation

To get started with Vista, you need to have PHP 8.4 installed on your system. You can install Vista via Composer. Run the following command in your terminal:

composer require nullaidev/vista

https://packagist.org/packages/nullaidev/vista

Read Full Documentation

AI Skill

Vista ships with an agentskills.io-compliant skill that teaches your assistant how the view engine works — path resolution, layouts, sections, includes, $parent, and the exception taxonomy. It works with Claude Code, OpenAI Codex, Cursor, Gemini CLI, OpenHands, Goose, and any other tool that reads the SKILL.md convention.

Install it for every tool in one command:

vendor/bin/vista install-skill

Pass --scope=user to install into your home directory so every project picks it up. See vendor/bin/vista --help for finer-grained targets and flags.

Using the skill

Start (or restart) your agent session after installing so it picks up the new skill. Most tools auto-load the skill once your prompt or the files you're editing match its description — if you'd rather trigger it explicitly, paste this at the top of your conversation:

Use the vista skill to help me work with the Nullai Vista PHP view engine
(new View(...), ViewRenderEngine, $this->layout(), $this->section(),
$this->include(), and templates under the views/ folder).

In Claude Code you can also just type /vista to invoke it directly.

Security Vulnerabilities

If you discover a security vulnerability within Vista, please submit an issue on GitHub. All security vulnerabilities will be promptly addressed.

License

The Vista PHP view rendering utility is open-sourced software licensed under the MIT license.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-11-19

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固