PHPackages                             jibundeyare/raw-php-view - 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. [Templating &amp; Views](/categories/templating)
4. /
5. jibundeyare/raw-php-view

ActiveLibrary[Templating &amp; Views](/categories/templating)

jibundeyare/raw-php-view
========================

A minimal php view service for raw php

1.2.0(6y ago)32811MITPHP

Since Jan 24Pushed 6y ago1 watchersCompare

[ Source](https://github.com/jibundeyare/raw-php-view)[ Packagist](https://packagist.org/packages/jibundeyare/raw-php-view)[ Docs](https://github.com/jibundeyare/php-view)[ RSS](/packages/jibundeyare-raw-php-view/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (5)Used By (1)

RawPhpView
==========

[](#rawphpview)

A minimal php view service for raw php

install
-------

[](#install)

Open a terminal, go to your project directory and type:

```
composer require jibundeyare/raw-php-view

```

views directory
---------------

[](#views-directory)

It is recommended to create a separate directory to store the views.

In the examples, we use the following directory structure:

```
project/
  public/
    index.php
  templates/
    hello.php
  vendor/

```

usage
-----

[](#usage)

Create a PHP template file `templates/hello.php` :

```

```

Create a PHP script file `public/index.php` :

```
