patryknamyslak / patform
There is no license information available for the latest version (v1.3) of this package.
A form builder that fetches a tables structure and creates suitable fields, ideal for admin panels or to ease up the way of populating a table!
v1.3
2026-03-04 17:32 UTC
Requires
- nesbot/carbon: ^3.11
- patryknamyslak/html-element-builder: ^1.0
- patryknamyslak/patbase: ^2.2
README
$databaseConnection = new Patbase(database_name: "bite_sized_projects", username: "root", password: "root"); $form = new Form(databaseConnection: $databaseConnection, table: "patform_example"); $form->action("/")->method("POST")->wrapFields()->htmx()->prepareFields(); // Here is a code snippet on how you can handle same page submissions match($_SERVER['REQUEST_METHOD']){ "GET" => $form->render(), // You can use this if you want to make same page submissions "POST" => $form->submit(formData: $_POST), };