PHPackages                             canvass/canvass-paint - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. canvass/canvass-paint

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

canvass/canvass-paint
=====================

A form rendering library

v1.02.00(5y ago)0103[1 PRs](https://github.com/canvass/canvass-paint/pulls)2MITPHPCI passing

Since Oct 3Pushed 3w ago1 watchersCompare

[ Source](https://github.com/canvass/canvass-paint)[ Packagist](https://packagist.org/packages/canvass/canvass-paint)[ RSS](/packages/canvass-canvass-paint/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (3)Versions (15)Used By (2)

Canvass Paint
=============

[](#canvass-paint)

A form rendering abstraction for Canvass.

*Note: This library should be paired with a concrete implementation library such as [CanvassPaint\\Twig](https://github.com/canvass/canvass-paint-twig) or [CanvassPaint\\Blade](https://github.com/canvass/canvass-paint-blade).*

Installation
------------

[](#installation)

This can be installed via composer:

```
composer require canvass/canvass-paint
```

Creating a Different Implementation
-----------------------------------

[](#creating-a-different-implementation)

Create an implementation of `\CanvassPaint\Contract\RenderFunction` that incorporates an html rendering library.

Below is the CanvassPaint\\Twig implementation:

```
namespace CanvassPaint\Twig;

class RenderFunction implements \CanvassPaint\Contract\RenderFunction
{
    /** @var \Twig\Environment */
    private $twig;

    public function __construct(\Twig\Environment $twig)
    {
        $this->twig = $twig;
    }

    public function render($data)
    {
        return $this->twig->render(
            '/form/form.twig',
            $data
        );
    }

    public function getTwigEnvironment(): Environment
    {
        return $this->twig;
    }
}
```

### Views

[](#views)

The Blade and Twig libraries can help guide you on how to set up the various field views.

### RenderFunction

[](#renderfunction)

Then pass the `RenderFunction` to the `RenderForm` action:

```
$action = new RenderForm(new RenderFunction());

$html = $action->render($form_id);
```

###  Health Score

39

—

LowBetter than 86% of packages

Maintenance62

Regular maintenance activity

Popularity9

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity65

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

Recently: every ~103 days

Total

11

Last Release

1973d ago

Major Versions

v0.5 → v1.00.002020-11-11

### Community

Maintainers

![](https://www.gravatar.com/avatar/302bae806db7fc65d2d087457eea9b0de93f91818ced70910c4bad6887df46f0?d=identicon)[puritandesigns](/maintainers/puritandesigns)

---

Top Contributors

[![puritandesigns](https://avatars.githubusercontent.com/u/1065613?v=4)](https://github.com/puritandesigns "puritandesigns (13 commits)")

---

Tags

canvassform-rendererphp

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/canvass-canvass-paint/health.svg)

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

PHPackages © 2026

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