PHPackages                             owenr88/wufoo-html-wrapper - 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. [API Development](/categories/api)
4. /
5. owenr88/wufoo-html-wrapper

ActiveLibrary[API Development](/categories/api)

owenr88/wufoo-html-wrapper
==========================

Output Wufoo form HTML using the Wufoo API. Also manages answer validation and submissions.

v1.0.5(10y ago)016PHPPHP &gt;=5.3.0

Since Jan 25Pushed 10y ago1 watchersCompare

[ Source](https://github.com/owenr88/wufoo-html-wrapper)[ Packagist](https://packagist.org/packages/owenr88/wufoo-html-wrapper)[ RSS](/packages/owenr88-wufoo-html-wrapper/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependenciesVersions (4)Used By (0)

Wufoo HTML Wrapper
==================

[](#wufoo-html-wrapper)

The Wufoo HTML wrapper is a PHP class that outputs Wufoo fields using their API. There is also a built in [Bootstrap](http://getbootstrap.com/) option to use those classes and styles.

The class returns errors on incorrect submissions, shows required fields and even the instruction text. It also supports multiple forms on one page.

You can view a list of fields supported by the class below. This is still a work in progress, so pull requests are massively loved (make sure to use the `dev` branch!)

Having trouble? Get me on Twitter [@OwenTheTwit](https://twitter.com/owenthetwit).

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

[](#installation)

Either install this using composer or download and include the file in your project.

Don't forget to also create an account on [Wufoo](https://wufoo.com).

### Composer

[](#composer)

`composer require owenr88/wufoo-html-wrapper`

### Manually

[](#manually)

`include_once 'WufooHTMLWrapper.php';`

Using the class
---------------

[](#using-the-class)

There are a few things required before using the class:

1. [Get your API Key](http://help.wufoo.com/articles/en_US/SurveyMonkeyArticleType/Wufoo-REST-API-V3#Findingthekey)
2. Get your account subdomain - i.e. https://**biglemon**.wufoo.com

**The example.php file in the project root is a great place to start and covers all required functions and options.**

### Initialization

[](#initialization)

Initialize the class on your page to start off the wrapper

`$wrapper = new WufooHTMLWrapper();`

### Enable Bootstrap

[](#enable-bootstrap)

`$wrapper->enableBootstrap();`

### Build a form

[](#build-a-form)

This function accepts a form ID or the form url slug. The ID can be found by clicking 'Share Form' in Wufoo and taking the ID from the URL (i.e. 'z172ip8e07gen9n'), or the slug can be taken directly from the URL (i.e. 'test-form').

**This function RETURNS the HTML. Make sure to echo it to the page.**

`$wrapper->buildForm( 'z172ip8e07gen9n' );`

or

`$wrapper->buildForm( 'test-form' );`

### Submit form data

[](#submit-form-data)

`$wrapper->sendSubmission();`

Current Fields Supported
------------------------

[](#current-fields-supported)

### Standard

[](#standard)

- Single Line Text
- Paragraph Text
- Multiple Choice
- Number
- Checkboxes
- Dropdown

### Fancy Pants

[](#fancy-pants)

- Email

**Other formats MIGHT be supported, but they just use their type (i.e. number, email, etc) as the input field's type attribute**

Changelog
---------

[](#changelog)

### 1.0.5

[](#105)

- Removed default API key and subdomain in the class

### 1.0.4

[](#104)

- Composer formatting

### 1.0.3

[](#103)

- Updated readme... urgh

### 1.0.2

[](#102)

- Updated composer file

### 1.0.1

[](#101)

- Updated readme

### 1.0.0

[](#100)

- The very first version! Includes the class, an example and all reqired documentation.

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

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

Total

2

Last Release

3807d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/5495088?v=4)[Owen Richards](/maintainers/owenr88)[@owenr88](https://github.com/owenr88)

---

Top Contributors

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

---

Tags

phphtmlWufoo

### Embed Badge

![Health badge](/badges/owenr88-wufoo-html-wrapper/health.svg)

```
[![Health](https://phpackages.com/badges/owenr88-wufoo-html-wrapper/health.svg)](https://phpackages.com/packages/owenr88-wufoo-html-wrapper)
```

PHPackages © 2026

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