PHPackages                             carbontwelve/slim-plates - 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. carbontwelve/slim-plates

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

carbontwelve/slim-plates
========================

A Pimple service provider for including php-plates into slim3

0.0.4(10y ago)1704[2 issues](https://github.com/carbontwelve/slim-plates/issues)1MITPHP

Since Feb 18Pushed 10y ago1 watchersCompare

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

READMEChangelog (4)Dependencies (2)Versions (5)Used By (1)

Slim3 Plates Service Provider
=============================

[](#slim3-plates-service-provider)

[![styleci](https://camo.githubusercontent.com/a5382b3870e560117beba8f94b8803683d21074dd2ff88c3616cc827f5838958/68747470733a2f2f7374796c6563692e696f2f7265706f732f35323030313535382f736869656c64)](https://styleci.io/repos/52001558)[![Latest Version](https://camo.githubusercontent.com/ab02cd38b1ac0679313b3da2c7a3de21dadee1b5c9b01dd63fe3b355c3ba8b95/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f636172626f6e7477656c76652f736c696d2d706c617465732e7376673f7374796c653d666c61742d737175617265)](https://github.com/carbontwelve/slim-plates/releases)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![ghit.me](https://camo.githubusercontent.com/9d76d3c4af084c683e4f8f75149097b697a349faf8fd26b73dae1949930703b7/68747470733a2f2f676869742e6d652f62616467652e7376673f7265706f3d636172626f6e7477656c76652f736c696d2d706c61746573)](https://ghit.me/repo/carbontwelve/slim-plates)

This package contains a [container interop](https://github.com/container-interop/container-interop) compatible service provider and a renderer for rendering [php plates](http://platesphp.com/) view scripts into a PSR-7 responsive object. It works well with version 3 of the [Slim framework](http://www.slimframework.com/).

Getting started
---------------

[](#getting-started)

The easiest method of getting started is to include this library via composer:

```
composer require carbontwelve/slim-plates

```

Example usage with Slim 3
-------------------------

[](#example-usage-with-slim-3)

```
use Carbontwelve\SlimPlates\PlatesViewProvider;

include "vendor/autoload.php";

$app = new Slim\App(
    new \Slim\Container([
        'renderer' => [
            'template_path' => realpath(__DIR__.'/views'),
            'template_ext' => 'phtml'
        ]
    ])
);
$container = $app->getContainer();
$container->register(new Carbontwelve\SlimPlates\PimplePlatesViewProvider());

$app->get('/hello/{name}', function ($request, $response, $args) {
    return $this->renderer->render($response, "/hello.phtml", $args);
});

$app->run();
```

Example usage with any PSR-7 project
------------------------------------

[](#example-usage-with-any-psr-7-project)

```
$yourData = [];
$platesRenderer = new Carbontwelve\SlimPlates\PlatesRenderer('./path/to/templates', 'phtml');
$response = $platesRenderer->render(new Response(), 'template', $yourData)
```

Not invented here
-----------------

[](#not-invented-here)

This project was something I put together to meet my own needs and as way of learning git. There are a couple of alternatives that you might want to investigate.

- [projek-xyz/slim-plates](https://github.com/projek-xyz/slim-plates)
- [media32/slim-view-plates](https://github.com/media32/slim-view-plates)
- [philipsharp/slim-view-plates](https://github.com/philipsharp/slim-view-plates)

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity56

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

Total

4

Last Release

3724d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/464699?v=4)[Simon Dann](/maintainers/carbontwelve)[@carbontwelve](https://github.com/carbontwelve)

---

Top Contributors

[![carbontwelve](https://avatars.githubusercontent.com/u/464699?v=4)](https://github.com/carbontwelve "carbontwelve (19 commits)")

---

Tags

slimtemplateviewplates

### Embed Badge

![Health badge](/badges/carbontwelve-slim-plates/health.svg)

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

###  Alternatives

[petebrowne/slim-layout-view

A Custom View supporting Layouts for the Slim Framework.

3518.0k](/packages/petebrowne-slim-layout-view)

PHPackages © 2026

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