PHPackages                             piggly/php-form-fields - 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. piggly/php-form-fields

ActiveLibrary

piggly/php-form-fields
======================

A library to easily create form fields.

00PHP

Since Mar 28Pushed 3y agoCompare

[ Source](https://github.com/piggly-dev/php-form-fields)[ Packagist](https://packagist.org/packages/piggly/php-form-fields)[ RSS](/packages/piggly-php-form-fields/feed)WikiDiscussions dev Synced 1mo ago

READMEChangelogDependenciesVersions (3)Used By (0)

PHP Form Fields (for WordPress)
===============================

[](#php-form-fields-for-wordpress)

[![Current Branch](https://camo.githubusercontent.com/6858de188d7d24cb62f12b3747c4d4b651a218560aa36c28c6cca8c3a6508025/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f76657273696f6e2d302e312e782d677265656e3f7374796c653d666f722d7468652d6261646765)](https://camo.githubusercontent.com/6858de188d7d24cb62f12b3747c4d4b651a218560aa36c28c6cca8c3a6508025/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f76657273696f6e2d302e312e782d677265656e3f7374796c653d666f722d7468652d6261646765) [![Latest Version on Packagist](https://camo.githubusercontent.com/f75fb3ca5e91e930b5732e616811c4f15228302fdedc37c12a5313f9e6b65da6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f706967676c792f7068702d666f726d2d6669656c64732e7376673f7374796c653d666f722d7468652d6261646765)](https://packagist.org/packages/piggly/php-form-fields) [![Software License](https://camo.githubusercontent.com/9897f4467850972a38c7db9a4d38280b8fcdac0ada00e9c8c0a72ecfa8551653/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666f722d7468652d6261646765)](LICENSE) [![PHP](https://camo.githubusercontent.com/7aa64fd314a9ec82aafbdae54d3991f1134ce87ed4b1db20013cc07887238e38/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f706967676c792f7068702d666f726d2d6669656c64733f7374796c653d666f722d7468652d6261646765)](https://camo.githubusercontent.com/7aa64fd314a9ec82aafbdae54d3991f1134ce87ed4b1db20013cc07887238e38/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f706967676c792f7068702d666f726d2d6669656c64733f7374796c653d666f722d7468652d6261646765)

The PHP Form Field (for WordPress) is a versatile and intuitive PHP library that empowers developers to quickly and easily render HTML form fields using object-oriented programming.

Developed with the goal of enhancing the configuration screens of WordPress plugins, this library provides a wide range of powerful form field types designed to work seamlessly with the [pgly-wps-settings](https://www.npmjs.com/package/@piggly/pgly-wps-settings) javascript/css library.

Released under the permissive MIT license, `php-form-fields` is the perfect boilerplate for any developer seeking to optimize their workflow. With PHPUnit-powered unit tests and a simple, dependable interface, `php-form-fields` is the ultimate choice for anyone looking to streamline their development process.

⚠️ Please be advised that while `php-form-fields` is a powerful and versatile library, it is still in the experimental stage and may undergo unexpected changes. We are continually working to optimize and improve the library, and a stable release will be made available in the near future. In the meantime, we encourage you to explore the library and offer any feedback or suggestions you may have. Together, we can make `php-form-fields` the ultimate tool for streamlined development.

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

[](#installation)

### Composer

[](#composer)

The recommended way to install `php-form-fields` is through [Composer](https://getcomposer.org/). Run the following command in your terminal:

```
composer require piggly/php-form-fields
```

Don't forget to add Composer's autoload file at your code base `require_once('vendor/autoload.php);`.

### Manual installation

[](#manual-installation)

You can also install `php-form-fields` manually by downloading the latest release from the GitHub repository and including the library files in your project.

1. Download the release version or clone with repository with git clone `https://github.com/piggly-dev/php-form-fields.git`;
2. After, goes to folder you have downloaded `cd /path/to/piggly/php-form-fields`;
3. Install all Composer's dependencies with `composer install`;
4. Add project's autoload file at your code base `require_once('/path/to/piggly/php-form-fields/vendor/autoload.php);`.

Dependencies
------------

[](#dependencies)

The library has the following external dependencies:

- PHP 7.2+.

Changelog
---------

[](#changelog)

See the [CHANGELOG](CHANGELOG.md) file for information about all code changes.

Testing the code
----------------

[](#testing-the-code)

This library uses the PHPUnit. We carry out tests of all the main classes of this application. To run the tests, run the following command in your terminal from the root directory of the library:

```
vendor/bin/phpunit
```

> You must always run tests with PHP 7.2 and greater.

Contributions
-------------

[](#contributions)

See the [CONTRIBUTING](CONTRIBUTING.md) file for information before submitting your contribution.

Credits
-------

[](#credits)

- [Caique Araujo](https://github.com/caiquearaujo)
- [All contributors](../../contributors)

Support the project
-------------------

[](#support-the-project)

Piggly Studio is an agency located in Rio de Janeiro, Brazil. If you like this library and want to support this job, be free to donate any value to BTC wallet `3DNssbspq7dURaVQH6yBoYwW3PhsNs8dnK` ❤.

License
-------

[](#license)

MIT License (MIT). See [LICENSE](LICENSE).

###  Health Score

14

—

LowBetter than 2% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity26

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/8e37ceaff3cd04951d33004f062082f01b41c9b2adf5b2c241429bbf12362a5b?d=identicon)[piggly](/maintainers/piggly)

---

Top Contributors

[![caiquearaujo](https://avatars.githubusercontent.com/u/23598990?v=4)](https://github.com/caiquearaujo "caiquearaujo (18 commits)")

### Embed Badge

![Health badge](/badges/piggly-php-form-fields/health.svg)

```
[![Health](https://phpackages.com/badges/piggly-php-form-fields/health.svg)](https://phpackages.com/packages/piggly-php-form-fields)
```

PHPackages © 2026

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