PHPackages                             leafs/viewi - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. leafs/viewi

ActiveLibrary[Framework](/categories/framework)

leafs/viewi
===========

Viewi integration for Leaf PHP

v0.2.0(1y ago)7158MITPHP

Since Aug 20Pushed 1y ago1 watchersCompare

[ Source](https://github.com/leafsphp/viewi)[ Packagist](https://packagist.org/packages/leafs/viewi)[ Docs](https://leafphp.dev/modules/)[ GitHub Sponsors](https://github.com/leafsphp)[ Fund](https://opencollective.com/leaf)[ RSS](/packages/leafs-viewi/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (2)Versions (3)Used By (0)

 [![](https://camo.githubusercontent.com/d98ee5e32c2ff016fdfdac6c42654a908f4cc34b229c7b00caacc5a717455ae8/68747470733a2f2f6c6561667068702e6465762f6c6f676f2d636972636c652e706e67)](https://camo.githubusercontent.com/d98ee5e32c2ff016fdfdac6c42654a908f4cc34b229c7b00caacc5a717455ae8/68747470733a2f2f6c6561667068702e6465762f6c6f676f2d636972636c652e706e67) [![](https://camo.githubusercontent.com/5006ac01b4c13b0a728b42db6071b2984c70734667a6ec302734a864e963c7ba/68747470733a2f2f76696577692e6e65742f6c6f676f2e737667)](https://camo.githubusercontent.com/5006ac01b4c13b0a728b42db6071b2984c70734667a6ec302734a864e963c7ba/68747470733a2f2f76696577692e6e65742f6c6f676f2e737667)

Leaf Viewi Module
=================

[](#leaf-viewi-module)

[![Latest Stable Version](https://camo.githubusercontent.com/660b3cdd083c5c3c26923c4f81e0bed6ed70de24ee30bb950480150bdf3f1825/68747470733a2f2f706f7365722e707567782e6f72672f6c656166732f76696577692f762f737461626c65)](https://packagist.org/packages/leafs/viewi)[![Total Downloads](https://camo.githubusercontent.com/fd2be9512c57989585929ef7ca62c3605019cccafd460498b30c063a7c8332c5/68747470733a2f2f706f7365722e707567782e6f72672f6c656166732f76696577692f646f776e6c6f616473)](https://packagist.org/packages/leafs/viewi)[![License](https://camo.githubusercontent.com/175791e9a92239b89533e3d7213e6ba2d9ede0022fbc7d12282fdac5a23769ad/68747470733a2f2f706f7365722e707567782e6f72672f6c656166732f76696577692f6c6963656e7365)](https://packagist.org/packages/leafs/viewi)

This module allows you to quickly and easily integrate Viewi into your Leaf apps without any pain at all.

Installation
------------

[](#installation)

You can easily install Leaf Viewi using the [Leaf CLI](https://cli.leafphp.dev):

```
leaf install viewi
```

Or with [Composer](https://getcomposer.org/).

```
composer require leafs/viewi
```

Basic Usage
-----------

[](#basic-usage)

After installing the module, you can setup a `viewi-app/components` folder as prescribed by the Viewi docs. In there you can create your Viewi components. Back in your Leaf entry point, all you need to do is initialize the Leaf Viewi module and add your viewi routes.

```
