Documentation

Requirements

Viewi UI is a package for Viewi PHP, so we assume you already have your Viewi application created. If not, you can easily create one as described here: viewi.net/docs.

Installation

composer require viewi/viewi-ui

Include Viewi UI package

<?php

use Viewi\App;

$config = require 'config.php';
$publicConfig = require 'publicConfig.php';
include __DIR__ . '/routes.php';
App::init($config, $publicConfig);
// include ViewiUI here
App::use(ViewiUI\Package::class);

Include Viewi UI bundle tag

<!DOCTYPE html>
<html lang="en">
<head>
    <title>
        $title | Viewi UI
    </title>
...
    <ViewiUI />
...
Browse Components