aldarien / form
Form building for frontend
Installs: 18
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/aldarien/form
Requires
- aldarien/contract: ^1.0
Requires (Dev)
- phpunit/phpunit: ^6.5
This package is auto-updated.
Last update: 2025-10-12 06:37:46 UTC
README
Form building for frontend
Version
Versioning is done according to SemVer
Current version: 1.0.0
Motivation
As with any programmer, I wanted a DRY form building. With that in mind, I created this frontend assistant for form building. In this version only form components are included and there is still some repeating, but simplified.
Installation
Requirements
Dev
Optional
Installation
Install using composer:
composer require aldarien/form
Usage
In the frontend of your choice echo the form function.
Basic html
<?php echo form('create', ['action' => 'form_parse.php']); ?>
or:
<?= form('text', ['name' => 'text_field']); ?>
Laravel Blade
{{ form('submit', ['value' => 'Submit Form']) }}
Testing
Testing was done with PHPUnit in the testing branch.
Contribute
For contributing, I use GIT and GitFlow
So clone from GitHUB, checkout a feature branch from the develop branch.
When done rebase and test with PHPUnit. When everything is done and ready create a pull request for the develop branch.
License
The license is MIT.
Permissions
- Commercial use
- Distribution
- Modification
- Private use
Conditions
- License and copyright notice
Limitations
- Liability
- Warranty