{"id":15028793,"url":"https://github.com/dekyfin/php-array-forms","last_synced_at":"2026-03-16T16:03:41.876Z","repository":{"id":56965016,"uuid":"118131677","full_name":"dekyfin/php-array-forms","owner":"dekyfin","description":null,"archived":false,"fork":false,"pushed_at":"2018-01-25T10:23:23.000Z","size":10,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-19T21:48:33.163Z","etag":null,"topics":["form-builder","php","php-array"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dekyfin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-01-19T13:59:47.000Z","updated_at":"2020-12-20T00:49:18.000Z","dependencies_parsed_at":"2022-08-21T09:20:36.282Z","dependency_job_id":null,"html_url":"https://github.com/dekyfin/php-array-forms","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dekyfin%2Fphp-array-forms","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dekyfin%2Fphp-array-forms/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dekyfin%2Fphp-array-forms/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dekyfin%2Fphp-array-forms/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dekyfin","download_url":"https://codeload.github.com/dekyfin/php-array-forms/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243338373,"owners_count":20275491,"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":["form-builder","php","php-array"],"created_at":"2024-09-24T20:09:05.878Z","updated_at":"2025-12-28T16:37:39.484Z","avatar_url":"https://github.com/dekyfin.png","language":"PHP","readme":"# PHP ARRAY FORMS\nA library that allows you to create HTML forms using PHP Arrays. The project was inspired by Titan Framework and uses the same format for generating elements\n## INSTALLATION\n\n### Composer\n`composer require dekyfin/php-array-forms`\n\n### Direct Install\n\n##USAGE\n-Include the `DF\\ArrayForm` class\n--Composer: `require_once \"vendor/autoload.php\"`\n--Direct Install: `require_once \"path/to/ArrayForm.php\"`\n\n### Example\n```\n#Attributes to be used for the form\n$formData = [\n\t\"action\" =\u003e \"/path/to/form/processor.php\",\n\t\"method\" =\u003e \"post\",\n\t\"class\" =\u003e \"my-special-form\",\n\t\"id\" =\u003e \"myForm\",\n\t\"display\" =\u003e \"table\"\n];\n$elements = [\n\t[\n\t\t\"id\" =\u003e \"email\",\n\t\t\"name\" =\u003e \"Email\",\n\t\t\"type\" =\u003e \"email\"\n\t\t\"required\" =\u003e true,\n\t],\n\t[\n\t\t\"id\" =\u003e \"pass\",\n\t\t\"name\" =\u003e \"Password\",\n\t\t\"type\" =\u003e \"password\",\n\t\t\"required\" =\u003e true,\n\t],\n\t[\n\t\t\"id\" =\u003e \"amount\",\n\t\t\"name\" =\u003e \"Amount\",\n\t\t\"type\" =\u003e \"number\",\n\t\t\"step\" =\u003e \"0.01\",\n\t\t\"min\" =\u003e \"3\",\n\t],\n\t[\n\t\t\"id\" =\u003e \"payment[method]\",\n\t\t\"name\" =\u003e \"Payment Method\",\n\t\t\"type\" =\u003e \"select\",\n\t\t\"options\" =\u003e [\"true\", \"false\"],\n\t]\n];\n\n\n$form = DF\\ArrayForm( $formData, $elements );\n$html = $form-\u003e$build();\n\necho $html\n```\n## OPTIONS\n\n## formData\n\n## elements\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdekyfin%2Fphp-array-forms","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdekyfin%2Fphp-array-forms","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdekyfin%2Fphp-array-forms/lists"}