Download the PHP package assegaiphp/forms without Composer
On this page you can find all versions of the php package assegaiphp/forms. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download assegaiphp/forms
More information about assegaiphp/forms
Files in assegaiphp/forms
Package forms
Short Description A simple PHP library for dealing with HTML form submissions.
License MIT
Informations about the package forms
A progressive PHP framework for building effecient and scalable server-side applications.
Description
Assegai is a framework for building efficient, scalable PHP server-side applications. It uses modern PHP (PHP 8.4+) and combines elements of OOP (Object Oriented Programming) and FP (Functional Programming).
Overview
The AssegaiPHP Forms Library is a powerful and flexible tool for managing HTML forms submitted using POST, PUT, or PATCH requests. This library is designed to simplify the process of handling form data, validation, and submission in PHP web applications. It provides a clean and intuitive interface for creating, processing, and validating forms, making it easier for developers to build robust and secure web applications.
Contribution workflow
For commit and pull request conventions in this repo, see:
- docs/commit-and-pr-guidelines.md
Git hooks for this repository live in .githooks. Running composer install or composer update
will automatically configure core.hooksPath for this clone so the committed pre-push checks are used. If you
need to apply the hook configuration manually, run:
Features
- Form Creation: Easily create HTML forms programmatically using a simple and intuitive syntax.
- Form Fields: Support for various types of form fields such as text fields, numeric fields, and more.
- Data Binding: Automatically populate form fields with data from your models or arrays.
- Validation: Define validation rules for form fields and perform server-side validation effortlessly.
- Error Handling: Automatically retrieve validation errors for form fields.
- Customization: Highly customizable rendering and extending capabilities.
- Compatibility: Works well with modern PHP applications and follows best practices.
Installation
You can install the AssegaiPHP Forms Library using Composer:
Quick Start
-
Create a Form:
-
Add Form Fields:
-
Process Form Submission:
- Render the Form:
Advanced Usage
Adding Validation Rules
Getting Form Data
Working with Individual Fields
Form HTTP Methods
The form supports multiple HTTP methods:
Form Selector
The selector parameter can be used to set the form's ID, CSS class, or action URL:
For more detailed usage and customization options, please refer to the Documentation.
Contributing
We welcome contributions from the community! If you'd like to contribute to the AssegaiPHP Forms Library, please follow our Contribution Guidelines.
License
The AssegaiPHP Forms Library is open-source software licensed under the MIT License.
All versions of forms with dependencies
assegaiphp/validation Version ^0.9.0
assegaiphp/collections Version ^0.9.0
assegaiphp/util Version ^0.9.0
