{"id":29610433,"url":"https://github.com/cosmocode/formserver","last_synced_at":"2025-07-20T20:07:55.877Z","repository":{"id":35400739,"uuid":"213361353","full_name":"cosmocode/formserver","owner":"cosmocode","description":"Use YAML to create complex webforms","archived":false,"fork":false,"pushed_at":"2025-06-15T20:21:25.000Z","size":877,"stargazers_count":3,"open_issues_count":1,"forks_count":1,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-06-15T21:42:08.609Z","etag":null,"topics":["forms"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cosmocode.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,"zenodo":null}},"created_at":"2019-10-07T11:05:43.000Z","updated_at":"2025-06-15T20:21:28.000Z","dependencies_parsed_at":"2023-01-15T20:13:58.275Z","dependency_job_id":"63806b4a-a7c8-485a-a3a1-fce669bf7fb9","html_url":"https://github.com/cosmocode/formserver","commit_stats":null,"previous_names":[],"tags_count":47,"template":false,"template_full_name":null,"purl":"pkg:github/cosmocode/formserver","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cosmocode%2Fformserver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cosmocode%2Fformserver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cosmocode%2Fformserver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cosmocode%2Fformserver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cosmocode","download_url":"https://codeload.github.com/cosmocode/formserver/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cosmocode%2Fformserver/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266189677,"owners_count":23890065,"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":["forms"],"created_at":"2025-07-20T20:07:55.254Z","updated_at":"2025-07-20T20:07:55.871Z","avatar_url":"https://github.com/cosmocode.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Form server\n\nThis is a PHP app that generates HTML forms from YAML descriptions.\n\nIt can save and/or email the submitted data.\n\n## Use cases\n\n### Save data\n\nThis is the default behavior of the app. The goal is to gather user-specific data. The initial submissions may be incomplete and can be updated at a later time without the need for additional authentication mechanisms or databases.\n\nEach form is accessed via a direct link, which contains the form ID (form directory).\n\n### Do not persist, only send\n\nIf the save button is disabled in [form configuration](doc/meta.md), no data is persisted. Each submission  is completely independent of each other. Multiple users can safely access the same form.\n\n## Usage\n\nAll forms are served from subdirectories of `data/`.\n\nCreate a `config.yaml` file in a `\u003cdata-subdirectory\u003e`. The form will be available at: `https://your.server/\u003cdata-subdirectory\u003e`\n\nWhen the user submits the form, all input values are saved in the form directory as `values.yaml` If the user clicked on `send` and all the inputs are valid, an email is sent to configured addresses.\n\nThe [reference](doc/index.md) details all available options. A demo form is provided as `EXAMPLE` directory.\n\n## Requirements\n\n* PHP 8.2\n* mail server\n\n## Current limitations\n\n * The YAML files are not validated. You will see no warnings if your configuration cannot be translated into an HTML form.\n\n## Install\n\nEnd users can simply download the [current release](https://github.com/cosmocode/formserver/releases) `formserver.zip`.\n\nUnzip the file and point your PHP enabled webserver to the `public` directory. For Apache a rewrite configuration is provided in a `.htaccess` file. Users of other webservers may need to setup URL rewriting manually.\n\n## Changes in v2\n\nYou may need to adjust existing form configuration files to accommodate the following changes:\n\n* Field names may no longer include `-`. This was a recommemded word separator in previous versions. Now all mathematical symbols are not allowed in field names, as it will break conditional visibility logic.\n* `tablestyle` fieldsets are no longer supported. Use the new [table element](doc/formelements.md#table) instead.\n* `clone` property of fields is no longer supported. Use the new [clone container](doc/formelements.md#clone) to wrap cloneable fields.\n\nLong forms can now be split into [tabbed pages](doc/formelements.md#pages).\n\n## Development\n\nClone the repository, install dependencies and build:\n\n```bash\ncomposer install\nnpm install\nnpm run build\n```\n\nYou can test run on the built-in PHP server\n\n```bash\ncomposer start\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcosmocode%2Fformserver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcosmocode%2Fformserver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcosmocode%2Fformserver/lists"}