g737a6b / php-form
PHP form library.
Installs: 346
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/g737a6b/php-form
Requires
- php: >=8.3
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.92
- phpunit/phpunit: ^12.5
This package is auto-updated.
Last update: 2026-01-02 01:15:55 UTC
README
A PHP library for building and handling web forms.
Usage Examples
See demo/.
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.
{
"require": {
"g737a6b/php-form": "*"
}
}
Development
Install dependencies
docker run -it --rm -v $(pwd):/app composer:2.9.2 install
Run tests
docker run -it --rm -v $(pwd):/app -w /app php:8.5 ./vendor/bin/phpunit ./tests
Format code
docker run -it --rm -v $(pwd):/app -w /app php:8.3 ./vendor/bin/php-cs-fixer fix ./src
License
Copyright (c) 2016-2026 Hiroyuki Suzuki