This site is built with Viewi itself. It is experimental and still in development. If you see any bugs please do not hesitate and open an issue or DM me on Twitter.

Quick Start

Install Viewi

> composer require viewi/viewi

Create a new Viewi project

> vendor/bin/viewi new

This will generate for you the Starter application with some demo components. Also it will insert the default code for using Viewi as a standalone application into your /index.php or /public/index.php. If it didn't happen for some reason just go and include this code by yourself:

include __DIR__ . '/viewi-app/viewi.php';

Depending on the folder structure of your application, Viewi components will be located in one of these folders:


Also make sure you didn't forget about the autoload:

require __DIR__ . '/vendor/autoload.php';

After that just run your server or use a built in PHP development server:

> php -S localhost:8000

and open your browser at http://localhost:8000/. If everything was done correctly you should be able to see the Starter application.

Your Viewi logic will be exposed to the browser. Treat it as you would treat any other javascript code. And remember not to use any secret(s) as it will become publicly visible. Isolate your frontend application!