{"id":28515972,"url":"https://github.com/thybag/formz","last_synced_at":"2025-09-01T19:37:00.219Z","repository":{"id":57069321,"uuid":"14870527","full_name":"thybag/FormZ","owner":"thybag","description":"A Simple Stand-alone PHP Form Helper","archived":false,"fork":false,"pushed_at":"2014-04-08T21:25:32.000Z","size":252,"stargazers_count":1,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-09T03:38:11.071Z","etag":null,"topics":[],"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/thybag.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":"2013-12-02T18:13:03.000Z","updated_at":"2017-03-06T16:13:25.000Z","dependencies_parsed_at":"2022-08-24T14:54:16.213Z","dependency_job_id":null,"html_url":"https://github.com/thybag/FormZ","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/thybag/FormZ","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thybag%2FFormZ","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thybag%2FFormZ/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thybag%2FFormZ/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thybag%2FFormZ/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thybag","download_url":"https://codeload.github.com/thybag/FormZ/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thybag%2FFormZ/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263778550,"owners_count":23510012,"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":[],"created_at":"2025-06-09T03:31:31.140Z","updated_at":"2025-07-05T17:31:47.620Z","avatar_url":"https://github.com/thybag.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FormZ\n\nA Simple Stand-alone PHP Form Helper\n\n## Installtion\n\nFormZ can be installed via composer using:\n\n    composer require thybag/formz:dev-master\n\nOnce composer has installed the library, simply include the standard composer autoloader in to your code.\n\n    require 'vendor/autoload.php'\n\n### Usage Examples\n\n\t// Make Form refers to formz/Form\n\tuse formz\\Form;\n\n\t//Open form\n\tForm::open(\"/somthing\")-\u003eattributes(array(\"class\"=\u003e\"test\"))-\u003erender(true);\n\n\t// Create a required text field with default value of \"bob\"**\n\tForm::text(\"name\")\n\t \t-\u003eattributes(array('required'=\u003e'required'))\n\t \t-\u003edefaultValue(\"Bob\")\n\t \t-\u003erender(true);\n \n\t// Select box with list of cows, css class cow_selector \n\t// and default selection of Dexter**\n\tForm::select(\"cow\")\n\t\t-\u003eoptions(array(\n\t\t\t'A' =\u003e 'Angus',\n\t\t\t'D' =\u003e 'Dexter',\n\t\t\t'J' =\u003e 'Jersey',\n\t\t\t'H' =\u003e 'Holstein'\n\t\t))\n\t\t-\u003eattributes(array('class'=\u003e 'cow_selector'))\n\t\t-\u003edefaultValue('D')\n\t\t-\u003erender(true);\n\n\tForm::close()-\u003erender(true);\n\nYou can have the form automatically populated from post data by calling the following before the form methods\n\n\tForm::populate($_POST);\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthybag%2Fformz","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthybag%2Fformz","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthybag%2Fformz/lists"}