PHPackages                             soatok/cupcake - 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. soatok/cupcake

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

soatok/cupcake
==============

PHP utility for building and processing forms

v0.1.0(3y ago)30351[4 issues](https://github.com/soatok/cupcake/issues)ISCPHPPHP ^8

Since Jul 6Pushed 3y ago1 watchersCompare

[ Source](https://github.com/soatok/cupcake)[ Packagist](https://packagist.org/packages/soatok/cupcake)[ RSS](/packages/soatok-cupcake/feed)WikiDiscussions master Synced 4d ago

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

[![Cupcake](docs/headers/cupcake.png)](docs/headers/cupcake.png)
================================================================

[](#)

[![Build Status](https://github.com/soatok/cupcake/actions/workflows/ci.yml/badge.svg)](https://github.com/soatok/cupcake/actions)[![Latest Stable Version](https://camo.githubusercontent.com/1d5f4ebb2054e92fb84daaf41778b4a7536b13d8f68a6d211f661951c978a2a1/68747470733a2f2f706f7365722e707567782e6f72672f736f61746f6b2f63757063616b652f762f737461626c65)](https://packagist.org/packages/soatok/cupcake)[![Latest Unstable Version](https://camo.githubusercontent.com/49d515f813bca3722e1bce744a04d1f1f430eadd388238d6de6f055f7d7b471d/68747470733a2f2f706f7365722e707567782e6f72672f736f61746f6b2f63757063616b652f762f756e737461626c65)](https://packagist.org/packages/soatok/cupcake)[![License](https://camo.githubusercontent.com/3f702be78c69910d7cdbd4c30e9b572c754523ea7a288ab35ff7c62e48e7f26a/68747470733a2f2f706f7365722e707567782e6f72672f736f61746f6b2f63757063616b652f6c6963656e7365)](https://packagist.org/packages/soatok/cupcake)

Sweet and fast form processing for PHP projects.

**Requires PHP 8 or newer.**

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

[](#installation)

Use Composer to install this library:

```
composer require soatok/cupcake

```

To learn how to use Cupcake, please see the **[Documentation](docs)** online.

Questions and Answers
---------------------

[](#questions-and-answers)

### Why "Cupcake"?

[](#why-cupcake)

Wordplay! The German word for a cupcake mold is förmchen.

### What Does Cupcake Do That Other Form Libraries Don't?

[](#what-does-cupcake-do-that-other-form-libraries-dont)

Three things: Security, simplicity, and ease-of-use.

First, I designed Cupcake with [security as its first principle](docs#-tenets-of-cupcake).

This doesn't *just* mean the bare basics like preventing cross-site scripting vulnerabilities and cross-site request forgery. Secure form processing means ensuring that [input validation isn't only performed client-side](https://soatok.blog/2020/04/27/why-server-side-input-validation-matters/). To that end, Cupcake uses [Ionizer](https://github.com/paragonie/ionizer) for input filtering.

Second, Cupcake's interface is deliberately simple and intuitive. Piece o' cake!

Finally, Cupcake is easy to integrate with other platforms and frameworks, by design. Cupcake has minimal dependencies and is unlikely to conflict with your existing framework dependencies or explode the code size to an unreasonable level.

(In the future, I will also provide shims for popular frameworks and ORMs.)

### How Do I Use Cupcake?

[](#how-do-i-use-cupcake)

See the [Documentation](docs) directory.

If the documentation isn't helpful, please [file an issue on Github](https://github.com/soatok/cupcake/issues/new).

### What's With the Cupcake Mascot?

[](#whats-with-the-cupcake-mascot)

Their name is **[Neophyte](docs/Neophyte)**! (They/them pronouns.)

Neophyte is a character owned by [Soatok](https://soatok.blog)(the creator of Cupcake) to represent people who read his blog or use his open source software.

### Is Cupcake a Furry Project?

[](#is-cupcake-a-furry-project)

[![Yes!](docs/Soatok/Soatok-Yes.png)](docs/Soatok/Soatok-Yes.png)

The author, Soatok, is a furry. [The mascot](docs/Neophyte)is a protogen (a fictitious species created within the furry fandom, for the furry fandom to enjoy).

You can learn more about the Furry Fandom [here](https://soatok.blog/2020/04/23/never-underestimate-the-furry-fandom/).

### Is Cupcake API-Stable?

[](#is-cupcake-api-stable)

No, not until version 1.0.0 has been tagged.

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance17

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 Bus Factor1

Top contributor holds 94.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

Unknown

Total

1

Last Release

1410d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/62964206396b67fb3a8985b19dc274f74b1a9232374e189577c0f1388fdc73f2?d=identicon)[soatok](/maintainers/soatok)

---

Top Contributors

[![soatok](https://avatars.githubusercontent.com/u/8157726?v=4)](https://github.com/soatok "soatok (37 commits)")[![webbird](https://avatars.githubusercontent.com/u/147354?v=4)](https://github.com/webbird "webbird (2 commits)")

---

Tags

formsfurryfurry-fandomhtml5php8secure-by-defaultsecure-by-design

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Type Coverage Yes

### Embed Badge

![Health badge](/badges/soatok-cupcake/health.svg)

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

###  Alternatives

[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

728272.9k20](/packages/civicrm-civicrm-core)[caxy/php-htmldiff

A library for comparing two HTML files/snippets and highlighting the differences using simple HTML.

21520.9M15](/packages/caxy-php-htmldiff)[getdkan/dkan

DKAN Open Data Catalog

385135.4k2](/packages/getdkan-dkan)[verbb/formie

The most user-friendly forms plugin for Craft.

101372.9k40](/packages/verbb-formie)[paragonie/random-lib

A Library For Generating Secure Random Numbers

703.3M26](/packages/paragonie-random-lib)[stevebauman/hypertext

The best HTML to text transformer

171472.6k2](/packages/stevebauman-hypertext)

PHPackages © 2026

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