tempest/view-for-laravel 问题修复 & 功能扩展

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

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

tempest/view-for-laravel

Composer 安装命令:

composer require tempest/view-for-laravel

包简介

Laravel support for tempest/view

README 文档

README

Laravel support for tempest/view

Bringing tempest/view to Laravel.
Read the documentation to get started.

Installation

You can install the package via composer:

composer require tempest/view-for-laravel

Usage

From any controller, simply return an instance of \Tempest\ViewForLaravel\TempestView:

use Tempest\ViewForLaravel\GenericTempestView;

final readonly class HomeController
{
    public function __invoke()
    {
        return new GenericTempestView(__DIR__ . '/Views/home.view.php');
    }
}
<!-- home.view.php -->
<x-layout>
    <h1>Hello Laravel</h1>
</x-layout>

<!-- x-layout.view.php -->
<x-component name="x-layout">
    <html lang="en">
    <head>
        <title>Tempest View</title>
    </head>
    <body>
        <x-slot />
    </body>
    </html>
</x-component>

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-02-27