PHPackages                             huzemin/slim-views - 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. huzemin/slim-views

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

huzemin/slim-views
==================

Smarty template enigine for Slim Framework 3.x

05PHP

Since Jul 9Pushed 9y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

slim-views
----------

[](#slim-views)

用于Slim Framework 3.x 的Smarty View组件

安装
--

[](#安装)

可直接从github上直接下载，放置在项目中， 然后配置composer自动导入。

使用
--

[](#使用)

```

$smarty_config = array(
    'templateDir' => 'templateDir',
    'compileDir' => 'compileDir'',
    'cachedDir' => 'cachedDir',
    'configDir' => 'configDir',
    'pluginsDir' => array(
        ...
    )
);

use \Slim\Views\SmartyView as View;

// Setup Slim Framework
$app = new App();
$container = $app->getContainer();
$container['view'] = function($c) {
    $smarty_config = load_config('smarty');
    $view = new View($smarty_config);
    $view->addExtionsions($c,$smarty_config['pluginsDir']);
    return $view;
};

```

说明
--

[](#说明)

程序借鉴了[slimphp/Twig-View](https://github.com/slimphp/Twig-View)的实现方式。 程序可以自由修改！！

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

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

---

Top Contributors

[![huzemin](https://avatars.githubusercontent.com/u/1042009?v=4)](https://github.com/huzemin "huzemin (8 commits)")

### Embed Badge

![Health badge](/badges/huzemin-slim-views/health.svg)

```
[![Health](https://phpackages.com/badges/huzemin-slim-views/health.svg)](https://phpackages.com/packages/huzemin-slim-views)
```

###  Alternatives

[limenius/react-bundle

Client and Server-side react rendering in a Symfony Bundle

3861.2M](/packages/limenius-react-bundle)[area17/laravel-auto-head-tags

Laravel Auto Head Tags helps you build the list of head elements for your app

4616.0k](/packages/area17-laravel-auto-head-tags)[jelix/wikirenderer

WikiRenderer is a library to generate HTML or anything else from wiki content.

1712.2k1](/packages/jelix-wikirenderer)[webkinder/sproutset

A Composer package for handling responsive images in Roots Bedrock + Sage + Blade projects.

281.8k](/packages/webkinder-sproutset)

PHPackages © 2026

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