{"id":21467445,"url":"https://github.com/elusivecodes/fyreformbuilder","last_synced_at":"2025-07-15T05:31:36.508Z","repository":{"id":62508421,"uuid":"476686971","full_name":"elusivecodes/FyreFormBuilder","owner":"elusivecodes","description":"FyreFormBuilder is a free, open-source form builder library for PHP.","archived":false,"fork":false,"pushed_at":"2024-06-29T06:29:26.000Z","size":106,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-09-03T02:40:16.073Z","etag":null,"topics":["builder","form","php"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/elusivecodes.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-04-01T11:09:12.000Z","updated_at":"2024-07-25T16:13:22.000Z","dependencies_parsed_at":"2024-06-29T07:36:05.397Z","dependency_job_id":null,"html_url":"https://github.com/elusivecodes/FyreFormBuilder","commit_stats":null,"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elusivecodes%2FFyreFormBuilder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elusivecodes%2FFyreFormBuilder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elusivecodes%2FFyreFormBuilder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elusivecodes%2FFyreFormBuilder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/elusivecodes","download_url":"https://codeload.github.com/elusivecodes/FyreFormBuilder/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":226017583,"owners_count":17560539,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["builder","form","php"],"created_at":"2024-11-23T08:18:07.936Z","updated_at":"2024-11-23T08:18:09.196Z","avatar_url":"https://github.com/elusivecodes.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FyreFormBuilder\r\n\r\n**FyreFormBuilder** is a free, open-source form builder library for *PHP*.\r\n\r\n\r\n## Table Of Contents\r\n- [Installation](#installation)\r\n- [Basic Usage](#basic-usage)\r\n- [Methods](#methods)\r\n\r\n\r\n\r\n## Installation\r\n\r\n**Using Composer**\r\n\r\n```\r\ncomposer require fyre/formbuilder\r\n```\r\n\r\nIn PHP:\r\n\r\n```php\r\nuse Fyre\\Form\\FormBuilder;\r\n```\r\n\r\n\r\n## Basic Usage\r\n\r\n- `$html` is a [*HtmlHelper*](https://github.com/elusivecodes/FyreHTMLHelper).\r\n\r\n```php\r\n$form = new FormBuilder($html);\r\n```\r\n\r\n\r\n## Methods\r\n\r\n**Button**\r\n\r\nRender a button element.\r\n\r\n- `$content` is a string representing the button content.\r\n- `$options` is an array of options for rendering the button.\r\n\r\n```php\r\n$button = $form-\u003ebutton($content, $options);\r\n```\r\n\r\nBy default, the button content will be HTML escaped. To disable this, set the `escape` value to *false* in the `options` array.\r\n\r\nAll other `options` will be created as attributes on the button element.\r\n\r\n**Close**\r\n\r\nRender a form close tag.\r\n\r\n```php\r\n$close = $form-\u003eclose();\r\n```\r\n\r\n**Fieldset Close**\r\n\r\nRender a fieldset close tag.\r\n\r\n```php\r\n$fieldsetClose = $form-\u003efieldsetClose();\r\n```\r\n\r\n**Fieldset Open**\r\n\r\nRender a fieldset open tag.\r\n\r\n- `$options` is an array of options for rendering the fieldset.\r\n\r\n```php\r\n$fieldset = $form-\u003efieldsetOpen($options);\r\n```\r\n\r\nAll `options` will be created as attributes on the fieldset element.\r\n\r\n**Input**\r\n\r\nRender an input element.\r\n\r\n- `$name` is a string representing the input name.\r\n- `$options` is an array of options for rendering the input.\r\n\r\n```php\r\n$input = $form-\u003einput($name, $options);\r\n```\r\n\r\nAll `options` will be created as attributes on the input element.\r\n\r\nBy default, the input will be created as a text type. You can use the following helper methods to generate other input type fields.\r\n\r\n```php\r\n$input = $form-\u003echeckbox($name, $options);\r\n$input = $form-\u003ecolor($name, $options);\r\n$input = $form-\u003edate($name, $options);\r\n$input = $form-\u003edatetime($name, $options);\r\n$input = $form-\u003eemail($name, $options);\r\n$input = $form-\u003efile($name, $options);\r\n$input = $form-\u003ehidden($name, $options);\r\n$input = $form-\u003eimage($name, $options);\r\n$input = $form-\u003emonth($name, $options);\r\n$input = $form-\u003enumber($name, $options);\r\n$input = $form-\u003epassword($name, $options);\r\n$input = $form-\u003eradio($name, $options);\r\n$input = $form-\u003erange($name, $options);\r\n$input = $form-\u003ereset($name, $options);\r\n$input = $form-\u003esearch($name, $options);\r\n$input = $form-\u003esubmit($name, $options);\r\n$input = $form-\u003etel($name, $options);\r\n$input = $form-\u003etext($name, $options);\r\n$input = $form-\u003etime($name, $options);\r\n$input = $form-\u003eurl($name, $options);\r\n$input = $form-\u003eweek($name, $options);\r\n```\r\n\r\n**Label**\r\n\r\nRender a label element.\r\n\r\n- `$content` is a string representing the label content.\r\n- `$options` is an array of options for rendering the label.\r\n\r\n```php\r\n$label = $form-\u003elabel($content, $options);\r\n```\r\n\r\nBy default, the label content will be HTML escaped. To disable this, set the `escape` value to *false* in the `options` array.\r\n\r\nAll other `options` will be created as attributes on the label element.\r\n\r\n**Legend**\r\n\r\nRender a legend element.\r\n\r\n- `$content` is a string representing the legend content.\r\n- `$options` is an array of options for rendering the legend.\r\n\r\n```php\r\n$legend = $form-\u003elegend($content, $options);\r\n```\r\n\r\nBy default, the legend content will be HTML escaped. To disable this, set the `escape` value to *false* in the `options` array.\r\n\r\nAll other `options` will be created as attributes on the legend element.\r\n\r\n**Open**\r\n\r\nRender a form open tag.\r\n\r\n- `$action` is a string representing the form action.\r\n- `$options` is an array of options for rendering the form.\r\n\r\n```php\r\n$open = $form-\u003eopen($action, $options);\r\n```\r\n\r\nAll `options` will be created as attributes on the form element.\r\n\r\n**Open Multipart**\r\n\r\nRender a multipart form open tag.\r\n\r\n- `$action` is a string representing the form action.\r\n- `$options` is an array of options for rendering the form.\r\n\r\n```php\r\n$open = $form-\u003eopenMultipart($action, $options);\r\n```\r\n\r\nAll `options` will be created as attributes on the form element.\r\n\r\n**Select**\r\n\r\nRender a select element.\r\n\r\n- `$name` is a string representing the select name.\r\n- `$options` is an array of options for rendering the select.\r\n\r\n```php\r\n$select = $form-\u003eselect($name, $options);\r\n```\r\n\r\nOption elements can be created by specifying an `options` value in the `options` array. Selected options can be specified using the `selected` value in the `options` array.\r\n\r\nAll other `options` will be created as attributes on the select element.\r\n\r\n**Select Multiple**\r\n\r\nRender a multiple select element.\r\n\r\n- `$name` is a string representing the select name.\r\n- `$options` is an array of options for rendering the select.\r\n\r\n```php\r\n$select = $form-\u003eselectMulti($name, $options);\r\n```\r\n\r\nOption elements can be created by specifying an `options` value in the `options` array. Selected options can be specified using the `selected` value in the `options` array.\r\n\r\nAll other `options` will be created as attributes on the select element.\r\n\r\n**Textarea**\r\n\r\nRender a textarea element.\r\n\r\n- `$name` is a string representing the textarea name.\r\n- `$options` is an array of options for rendering the textarea.\r\n\r\n```php\r\n$textarea = $form-\u003etextarea($name, $options);\r\n```\r\n\r\nAll `options` will be created as attributes on the textarea element.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felusivecodes%2Ffyreformbuilder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Felusivecodes%2Ffyreformbuilder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felusivecodes%2Ffyreformbuilder/lists"}