PHPackages                             wepesi/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. wepesi/view

ActiveLibrary

wepesi/view
===========

simple view engine to share data acros a pages

v1.1(3y ago)28apache-2.0PHPPHP &gt;=7.4

Since Aug 20Pushed 3y ago1 watchersCompare

[ Source](https://github.com/bim-g/wepesi-view)[ Packagist](https://packagist.org/packages/wepesi/view)[ RSS](/packages/wepesi-view/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)DependenciesVersions (7)Used By (0)

wepesi-view
===========

[](#wepesi-view)

Simple view engine, and share data across pages

Introduction
============

[](#introduction)

Create directory where all the view file will loaded. eg: `views`the class has few method to be used in order to make your view work as expected.

- `assign` : help assign a value to the variable. It has two parameters, the first is the name of the variable and the second parameter is the value of the variable.
- `render` : helps display the contents of your file. Is like a parameter, and it's the name of the file. Note: All files must be defined in the root directory of the view.
- `setLayout` : help set the layout of the pages.

Installation
============

[](#installation)

```
composer require wepesi/view
```

Usage
=====

[](#usage)

Without layout
--------------

[](#without-layout)

```
$view_dir = __DIR__."/views";
$view = new \Wepesi\App\View($view_dir);
$view->assign("title","Welcom to the main pages");

$view->render("/art");
```

With layout
-----------

[](#with-layout)

In case you are want to set the layout, you should define the `$contentpages` variable into your layout file where the view content will be applyed.

```
$view_dir = __DIR__."/views";
$view = new \Wepesi\App\View($view_dir);
$view->assign("title","Home page");

view->setLayout("/layout");
$view->render("/home");
```

No need to specify the extension in case it is a php file.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~71 days

Total

4

Last Release

1152d ago

Major Versions

v0.3.0 → v1.12023-03-23

### Community

Maintainers

![](https://www.gravatar.com/avatar/3b7536aed6138da14cfe4d2a295017fd44f2997ee86c689e8aa6276080164cfd?d=identicon)[ibmussa](/maintainers/ibmussa)

---

Top Contributors

[![bim-g](https://avatars.githubusercontent.com/u/16068170?v=4)](https://github.com/bim-g "bim-g (10 commits)")

### Embed Badge

![Health badge](/badges/wepesi-view/health.svg)

```
[![Health](https://phpackages.com/badges/wepesi-view/health.svg)](https://phpackages.com/packages/wepesi-view)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
