{"id":22774356,"url":"https://github.com/yr72dpi/class_form","last_synced_at":"2025-10-15T19:33:12.625Z","repository":{"id":171558930,"uuid":"460161134","full_name":"YR72dpi/class_Form","owner":"YR72dpi","description":"¤ A php class to generate html form only with php","archived":false,"fork":false,"pushed_at":"2022-02-17T12:34:41.000Z","size":5,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-05T14:42:52.879Z","etag":null,"topics":["form","generator","html-form"],"latest_commit_sha":null,"homepage":"","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/YR72dpi.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-02-16T20:09:12.000Z","updated_at":"2023-10-23T13:36:36.000Z","dependencies_parsed_at":null,"dependency_job_id":"190e94f8-fec5-4663-9d6e-ff683adad870","html_url":"https://github.com/YR72dpi/class_Form","commit_stats":null,"previous_names":["yr72dpi/class_form"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YR72dpi%2Fclass_Form","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YR72dpi%2Fclass_Form/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YR72dpi%2Fclass_Form/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YR72dpi%2Fclass_Form/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/YR72dpi","download_url":"https://codeload.github.com/YR72dpi/class_Form/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246320194,"owners_count":20758410,"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","generator","html-form"],"created_at":"2024-12-11T18:14:22.086Z","updated_at":"2025-10-15T19:33:07.585Z","avatar_url":"https://github.com/YR72dpi.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Class Form php\n\nThis class was made to create a form with label and some others options easier, with php.\n\n```php\n$form = new Form([\n            \"pseudo\"=\u003e[\n                \"type\" =\u003e \"text\",\n                \"value\" =\u003e \"\",\n                \"placeholder\" =\u003e \"Pseudo\",\n                \"label\" =\u003e \"Votre pseudo : \",\n                \"required\" =\u003e true\n            ],\n            \"mdp\"=\u003e[\n                \"type\" =\u003e \"password\",\n                \"value\" =\u003e \"\",\n                \"placeholder\" =\u003e \"Mot de passe\",\n                \"label\" =\u003e \"Votre mot de passe :\",\n                \"required\" =\u003e true\n            ],\n            \"text\"=\u003e[\n                \"type\" =\u003e \"textarea\",\n                \"value\" =\u003e \"\",\n                \"placeholder\" =\u003e \"texte\",\n                \"label\" =\u003e \"Commentaire\"\n            ],\n            \"check\"=\u003e[\n                \"type\" =\u003e \"checkbox\",\n                \"value\" =\u003e \"1\",\n                \"placeholder\" =\u003e \"texte\",\n                \"label\" =\u003e \"CGU : \",\n                \"required\" =\u003e true\n            ],\n            \"music\"=\u003e[\n                \"type\" =\u003e \"file\",\n                \"label\" =\u003e \"Fichier : \",\n                \"others\" =\u003e \"multiple\"\n            ],\n            \"\"=\u003e[\n                \"type\" =\u003e \"submit\",\n                \"value\" =\u003e \"Envoyer\",\n                \"placeholder\" =\u003e \"\",\n                \"label\" =\u003e \"\"\n            ]\n        ]);\n        \n        $form-\u003egetForm();\n```\n\nAnd you can get the form values in an array with\n```php\n$form-\u003egetValue()\n```\n\n## setAutoClose() \u0026 getCloser()\nIf you want, you can let the form tag open (\"\u003c /form \u003e\" not print), write you own code and close it after.\n\nBut by default, getForm() auto close the form tag. To prevent it, you have to write :\n```php\n$form-\u003esetAutoClose(false);\n```\nAfter, generate your form :\n```php\n$form = new Form([\n            // your form param\n        ]);\n        \n$form-\u003egetForm();\n```\nWrite your own code in the form : \n```html\n    \u003c!-- your own code --\u003e\n```\nTo finish, close the form tag:\n```php\n$form-\u003egetCloser();\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyr72dpi%2Fclass_form","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyr72dpi%2Fclass_form","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyr72dpi%2Fclass_form/lists"}