PHPackages                             log1x/sage-html-forms - 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. log1x/sage-html-forms

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

log1x/sage-html-forms
=====================

Create forms using HTMLForms.io and Sage 10 Blade components

v1.1.0(8mo ago)5636.1k↓11.3%8[2 issues](https://github.com/Log1x/sage-html-forms/issues)[2 PRs](https://github.com/Log1x/sage-html-forms/pulls)MITPHPPHP ^8.0CI passing

Since May 17Pushed 8mo ago4 watchersCompare

[ Source](https://github.com/Log1x/sage-html-forms)[ Packagist](https://packagist.org/packages/log1x/sage-html-forms)[ GitHub Sponsors](https://github.com/Log1x)[ RSS](/packages/log1x-sage-html-forms/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (8)Dependencies (1)Versions (9)Used By (0)

Sage HTML Forms
===============

[](#sage-html-forms)

[![Latest Stable Version](https://camo.githubusercontent.com/7ddbcd27b386302e0026cd08ad3fb7ff260c54d4d5dea97ff4f0639dbeb55c68/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c6f6731782f736167652d68746d6c2d666f726d733f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/7ddbcd27b386302e0026cd08ad3fb7ff260c54d4d5dea97ff4f0639dbeb55c68/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c6f6731782f736167652d68746d6c2d666f726d733f7374796c653d666c61742d737175617265)[![Total Downloads](https://camo.githubusercontent.com/31b76801d5b5d4c4e558c2784a4df93c193d5fe611803cf249d21c67ae33b6fe/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c6f6731782f736167652d68746d6c2d666f726d733f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/31b76801d5b5d4c4e558c2784a4df93c193d5fe611803cf249d21c67ae33b6fe/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c6f6731782f736167652d68746d6c2d666f726d733f7374796c653d666c61742d737175617265)[![Build Status](https://camo.githubusercontent.com/0ae1e82beccae5150be401dfbf8e3822718ff15df5f0aee548fe23e4149cd6ef/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6c6f6731782f736167652d68746d6c2d666f726d732f6d61696e2e796d6c3f6272616e63683d6d6173746572267374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/0ae1e82beccae5150be401dfbf8e3822718ff15df5f0aee548fe23e4149cd6ef/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6c6f6731782f736167652d68746d6c2d666f726d732f6d61696e2e796d6c3f6272616e63683d6d6173746572267374796c653d666c61742d737175617265)

This is a simple package for the [HTML Forms](https://wordpress.org/plugins/html-forms/) plugin that allows you to easily render forms using a corresponding Blade view (if one is present) with Sage 10.

A few additional opinionated tweaks include:

- Moving the HTML Forms admin menu item to the Options submenu.
- Hide the ads shown in the sidebar of the admin page.

Requirements
------------

[](#requirements)

- [Sage](https://github.com/roots/sage) &gt;= 10.0
- [HTML Forms](https://wordpress.org/plugins/html-forms/)
- [PHP](https://secure.php.net/manual/en/install.php) &gt;= 7.3
- [Composer](https://getcomposer.org/download/)

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

[](#installation)

Install via Composer:

```
$ composer require log1x/sage-html-forms
```

Usage
-----

[](#usage)

### Getting Started

[](#getting-started)

Start by creating a form in the HTML Forms admin menu page if you do not already have one.

You can leave the "Form code" blank as it will not be used if a corresponding Blade view exists.

### Creating a View

[](#creating-a-view)

Once your form is created, simply generate a view using the slug assigned to your form:

```
$ wp acorn make:form contact-us
```

You will find the generated form view in `resources/views/forms/contact-us.blade.php` containing a simple form component:

```

```

When HTML Forms processes "Form Actions" – it simply fetches each input name to create the usable variables.

That being said, the default view would provide `[name]` and `[emailAddress]`.

#### Error Messages

[](#error-messages)

Outside of defining your error messages on the options page, you can optionally provide them to the `` component directly:

```

```

### Prevent moving Dashboard menu item

[](#prevent-moving-dashboard-menu-item)

By default the HTML Forms menu items is moved to the Options submenu. Prevent that by using the `hf_hide_admin_menu` hook:

```
add_filter('hf_hide_admin_menu', '__return_false');
```

Bug Reports
-----------

[](#bug-reports)

If you discover a bug in Sage HTML Forms, please [open an issue](https://github.com/log1x/sage-html-forms/issues).

Contributing
------------

[](#contributing)

Contributing whether it be through PRs, reporting an issue, or suggesting an idea is encouraged and appreciated.

License
-------

[](#license)

Sage HTML Forms is provided under the [MIT License](https://github.com/log1x/sage-html-forms/blob/master/LICENSE.md).

###  Health Score

50

—

FairBetter than 96% of packages

Maintenance61

Regular maintenance activity

Popularity42

Moderate usage in the ecosystem

Community18

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 73.9% 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 ~278 days

Recently: every ~418 days

Total

8

Last Release

242d ago

PHP version history (3 changes)v1.0.0PHP &gt;=7.2

v1.0.3PHP ^7.3|^8.0

v1.1.0PHP ^8.0

### Community

Maintainers

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

---

Top Contributors

[![Log1x](https://avatars.githubusercontent.com/u/5745907?v=4)](https://github.com/Log1x "Log1x (17 commits)")[![ouun](https://avatars.githubusercontent.com/u/32090713?v=4)](https://github.com/ouun "ouun (2 commits)")[![csorrentino](https://avatars.githubusercontent.com/u/24258825?v=4)](https://github.com/csorrentino "csorrentino (1 commits)")[![hybridvision](https://avatars.githubusercontent.com/u/11492432?v=4)](https://github.com/hybridvision "hybridvision (1 commits)")[![johanmolen](https://avatars.githubusercontent.com/u/8382746?v=4)](https://github.com/johanmolen "johanmolen (1 commits)")[![netserwisIT](https://avatars.githubusercontent.com/u/26527065?v=4)](https://github.com/netserwisIT "netserwisIT (1 commits)")

---

Tags

bladehtmlformssage10wordpresswordpressrootssagehtmlforms

###  Code Quality

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/log1x-sage-html-forms/health.svg)

```
[![Health](https://phpackages.com/badges/log1x-sage-html-forms/health.svg)](https://phpackages.com/packages/log1x-sage-html-forms)
```

###  Alternatives

[log1x/sage-directives

A set of Blade directives for use with Roots Sage.

297709.3k5](/packages/log1x-sage-directives)[timber/timber

Create WordPress themes with beautiful OOP code and the Twig Template Engine

5.7k3.4M111](/packages/timber-timber)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[roots/sage

WordPress starter theme with a modern development workflow

13.2k337.2k2](/packages/roots-sage)[log1x/blade-svg-sage

Composer package to add support for Blade SVG by Adam Wathan to Roots Sage.

7577.3k](/packages/log1x-blade-svg-sage)[brain/hierarchy

No-dependencies package that embodies WordPress template hierarchy

842.3M14](/packages/brain-hierarchy)

PHPackages © 2026

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