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

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

soliphp/view
============

Smarty and Twig View Parser package

v1.1.0(7y ago)17612MITPHPPHP &gt;=7.0

Since Mar 22Pushed 7y ago1 watchersCompare

[ Source](https://github.com/soliphp/view)[ Packagist](https://packagist.org/packages/soliphp/view)[ Docs](https://github.com/soliphp/view)[ RSS](/packages/soliphp-view/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (3)DependenciesVersions (4)Used By (2)

Soli View
---------

[](#soli-view)

此项目对常用模版引擎进行封装，便于集成到开发者所熟悉的框架。 目前支持以下模版引擎：

- Twig
- Smarty

安装
--

[](#安装)

使用 `composer` 安装到你的项目：

```
composer require soliphp/view

```

使用
--

[](#使用)

[examples](examples) 目录下提供了 Soli View 的相关示例。

### Twig

[](#twig)

安装 Twig 模版引擎：

```
composer require twig/twig

```

运行示例：

```
php examples/twig.php

```

### Smarty

[](#smarty)

安装 Smarty 模版引擎：

```
composer require smarty/smarty

```

运行示例：

```
php examples/smarty.php

```

License
-------

[](#license)

MIT Public License

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity60

Established project with proven stability

 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 ~370 days

Total

3

Last Release

2648d ago

PHP version history (2 changes)v1.0.0PHP &gt;=5.5.0

v1.1.0PHP &gt;=7.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/318253?v=4)[ueaner](/maintainers/ueaner)[@ueaner](https://github.com/ueaner)

---

Top Contributors

[![ueaner](https://avatars.githubusercontent.com/u/318253?v=4)](https://github.com/ueaner "ueaner (12 commits)")

---

Tags

phpsolisoliphptemplatingviewtemplatingviewsoliphp

### Embed Badge

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

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

###  Alternatives

[eftec/bladeone

The standalone version Blade Template Engine from Laravel in a single php file

8259.3M103](/packages/eftec-bladeone)[laminas/laminas-view

Fast and type safe HTML templating library with a flexible plugin system supporting multistep template composition

7527.7M261](/packages/laminas-laminas-view)[zombor/kostache

Logic-less View/Mustache Module for the Kohana Framework

1382.1k2](/packages/zombor-kostache)[eftec/bladeonehtml

The standalone version Blade Template Engine from Laravel in a single php file

1021.6k6](/packages/eftec-bladeonehtml)[latrell/smarty

This package lets you run Smarty3 on Laravel5 elegantly.

127.0k](/packages/latrell-smarty)

PHPackages © 2026

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