https://github.com/tempestphp/view-for-laravel
Laravel support for tempest/view
https://github.com/tempestphp/view-for-laravel
engine php tempest template
Last synced: 11 months ago
JSON representation
Laravel support for tempest/view
- Host: GitHub
- URL: https://github.com/tempestphp/view-for-laravel
- Owner: tempestphp
- License: mit
- Created: 2025-02-27T12:46:18.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2025-02-27T18:58:16.000Z (11 months ago)
- Last Synced: 2025-02-27T19:14:03.231Z (11 months ago)
- Topics: engine, php, tempest, template
- Language: PHP
- Homepage: https://tempestphp.com/view/
- Size: 17.6 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: .github/CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE.md
Awesome Lists containing this project
README
Laravel support for tempest/view
## Installation
You can install the package via composer:
```bash
composer require tempest/view-for-laravel
```
## Usage
From any controller, simply return an instance of `\Tempest\ViewForLaravel\TempestView`:
```php
use Tempest\ViewForLaravel\GenericTempestView;
final readonly class HomeController
{
public function __invoke()
{
return new GenericTempestView(__DIR__ . '/Views/home.view.php');
}
}
```
```html
Hello Laravel
Tempest View
```