https://github.com/g737a6b/php-form
A PHP library for building and handling web forms.
https://github.com/g737a6b/php-form
composer forms library php
Last synced: 5 months ago
JSON representation
A PHP library for building and handling web forms.
- Host: GitHub
- URL: https://github.com/g737a6b/php-form
- Owner: g737a6b
- License: mit
- Created: 2016-09-10T06:48:35.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2026-01-02T01:19:27.000Z (6 months ago)
- Last Synced: 2026-01-06T18:12:52.674Z (6 months ago)
- Topics: composer, forms, library, php
- Language: PHP
- Homepage:
- Size: 148 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# MofgForm 
A PHP library for building and handling web forms.
## Usage Examples
See `demo/`.
```sh
docker run -it --rm -p 8080:80 -v $(pwd):/var/www/html php:8.5-apache
# http://localhost:8080/demo/
```
## Features
MofgForm is designed for building a wide range of web forms.
- All basic input types (text, select, radio, checkbox, textarea and password)
- Unlimited pages
- Validation
- Filtering
- HTML generation
- Email sending
- Form submission summary
- Lightweight
- Installation using Composer
- MIT License
## Installation
### Composer
Add a dependency to your project's `composer.json` file.
```json
{
"require": {
"g737a6b/php-form": "*"
}
}
```
## Development
### Install dependencies
```sh
docker run -it --rm -v $(pwd):/app composer:2.9.2 install
```
### Run tests
```sh
docker run -it --rm -v $(pwd):/app -w /app php:8.5 ./vendor/bin/phpunit ./tests
```
### Format code
```sh
docker run -it --rm -v $(pwd):/app -w /app php:8.3 ./vendor/bin/php-cs-fixer fix ./src
```
## License
[The MIT License](http://opensource.org/licenses/MIT)
Copyright (c) 2016-2026 [Hiroyuki Suzuki](https://mofg-in-progress.com)