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:dev-master

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';
Viewi\App::handle();

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

viewi-app/
or
src/ViewiApp/

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.