PHPackages                             cloverphp/sketch - 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. cloverphp/sketch

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

cloverphp/sketch
================

Clover Sketch template engine

10PHP

Since Oct 3Pushed 7mo agoCompare

[ Source](https://github.com/cloverphp/sketch)[ Packagist](https://packagist.org/packages/cloverphp/sketch)[ RSS](/packages/cloverphp-sketch/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Clover Sketch: Template Engine
------------------------------

[](#clover-sketch-template-engine)

Clover Sketch: Template Engine; fully inspire by Vue.js and Laravel Blade. Built-in XSS attack prevention and @CSRF token generation.

[![Code Coverage](https://github.com/cloverphp/clover/actions/workflows/code-coverage.yml/badge.svg?branch=main)](https://github.com/cloverphp/clover/actions/workflows/code-coverage.yml)[![CodeQL](https://github.com/cloverphp/clover/actions/workflows/github-code-scanning/codeql/badge.svg?branch=main)](https://github.com/cloverphp/clover/actions/workflows/github-code-scanning/codeql)[![Tests](https://github.com/cloverphp/clover/actions/workflows/tests.yml/badge.svg)](https://github.com/cloverphp/clover/actions/workflows/tests.yml)[![Packagist Version](https://camo.githubusercontent.com/dea516e986c64bfdbc96d39f279b72bed2c2b5aaf2e0283d3248869f33b06bbf/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f636c6f7665727068702f736b657463683f7374796c653d666c6174266c6f676f3d636f6d706f736572266c6f676f436f6c6f723d253233666666)](https://camo.githubusercontent.com/dea516e986c64bfdbc96d39f279b72bed2c2b5aaf2e0283d3248869f33b06bbf/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f636c6f7665727068702f736b657463683f7374796c653d666c6174266c6f676f3d636f6d706f736572266c6f676f436f6c6f723d253233666666)[![Packagist Dependency Version](https://camo.githubusercontent.com/c16b221ff16f20fd7cc0f851fbd04fffa8ea9d052f09a1a3bab0cfbaec31d43f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646570656e64656e63792d762f636c6f7665727068702f736b657463682f7068703f7374796c653d666c6174266c6f676f3d706870266c6f676f436f6c6f723d626c7565266c6162656c3d50485026636f6c6f723d626c7565)](https://camo.githubusercontent.com/c16b221ff16f20fd7cc0f851fbd04fffa8ea9d052f09a1a3bab0cfbaec31d43f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646570656e64656e63792d762f636c6f7665727068702f736b657463682f7068703f7374796c653d666c6174266c6f676f3d706870266c6f676f436f6c6f723d626c7565266c6162656c3d50485026636f6c6f723d626c7565)[![Packagist License](https://camo.githubusercontent.com/ee3dad749651c29751fff54931face882f93fd6329fe1b431df187a0cc6c026b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f636c6f7665727068702f736b657463683f7374796c653d666c6174266c6162656c3d4c6963656e736526636f6c6f723d626c7565)](https://camo.githubusercontent.com/ee3dad749651c29751fff54931face882f93fd6329fe1b431df187a0cc6c026b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f636c6f7665727068702f736b657463683f7374796c653d666c6174266c6162656c3d4c6963656e736526636f6c6f723d626c7565)[![Packagist Downloads](https://camo.githubusercontent.com/afa871d92fc49c4c6585842c7f21295a92208d8d9a498b2efe1783b2ebe7edfe/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f636c6f7665727068702f736b657463683f7374796c653d666c6174266c6f676f3d7061636b6167697374266c6162656c3d446f776e6c6f61647326636f6c6f723d626c7565)](https://camo.githubusercontent.com/afa871d92fc49c4c6585842c7f21295a92208d8d9a498b2efe1783b2ebe7edfe/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f636c6f7665727068702f736b657463683f7374796c653d666c6174266c6f676f3d7061636b6167697374266c6162656c3d446f776e6c6f61647326636f6c6f723d626c7565)[![Packagist Stars](https://camo.githubusercontent.com/9b37099bb6ff4d6a8a538295e442c33a05c349c00dddf38cdad8a574157449d5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f73746172732f636c6f7665727068702f736b657463683f7374796c653d666c6174266c6f676f3d676974687562266c6f676f436f6c6f723d253233666666666666266c6162656c3d2546302539462538432539462532305374617273)](https://camo.githubusercontent.com/9b37099bb6ff4d6a8a538295e442c33a05c349c00dddf38cdad8a574157449d5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f73746172732f636c6f7665727068702f736b657463683f7374796c653d666c6174266c6f676f3d676974687562266c6f676f436f6c6f723d253233666666666666266c6162656c3d2546302539462538432539462532305374617273)

Example
-------

[](#example)

```
 {{ $name }}
```

Output:

```

```

Example 2
---------

[](#example-2)

```

    h2
    {
        color: red;
    }

```

output:

```

h2{
  color: red;
}

```

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance44

Moderate activity, may be stable

Popularity2

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity13

Early-stage or recently created project

 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://www.gravatar.com/avatar/14ee8bc204856d2c784a628778d5ae25e5ef14052cce198ca3a7943574832260?d=identicon)[CodeWithSushil](/maintainers/CodeWithSushil)

---

Top Contributors

[![CodeWithSushil](https://avatars.githubusercontent.com/u/94827178?v=4)](https://github.com/CodeWithSushil "CodeWithSushil (7 commits)")

---

Tags

clovephpclover-template-enginesketchsketch-templatesketch-template-engine

### Embed Badge

![Health badge](/badges/cloverphp-sketch/health.svg)

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

###  Alternatives

[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[whitecube/nova-flexible-content

Flexible Content &amp; Repeater Fields for Laravel Nova.

8053.0M25](/packages/whitecube-nova-flexible-content)[mopa/bootstrap-bundle

Easy integration of twitters bootstrap into symfony2

7042.9M33](/packages/mopa-bootstrap-bundle)[limenius/react-bundle

Client and Server-side react rendering in a Symfony Bundle

3871.2M](/packages/limenius-react-bundle)[nicmart/string-template

StringTemplate is a very simple string template engine for php. I've written it to have a thing like sprintf, but with named and nested substutions.

2101.7M30](/packages/nicmart-string-template)[symfony/ux-icons

Renders local and remote SVG icons in your Twig templates.

555.8M69](/packages/symfony-ux-icons)

PHPackages © 2026

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