{"id":14965437,"url":"https://github.com/mskocik/forms","last_synced_at":"2026-02-21T22:33:33.297Z","repository":{"id":65463467,"uuid":"590364211","full_name":"mskocik/forms","owner":"mskocik","description":"Nette representation of svelecte custom element","archived":false,"fork":false,"pushed_at":"2024-05-10T17:11:15.000Z","size":28,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-28T07:21:52.408Z","etag":null,"topics":["autocomplete","datepicker","nette","nette-forms","svelecte"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/mskocik.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":"2023-01-18T08:41:23.000Z","updated_at":"2024-05-10T17:11:04.000Z","dependencies_parsed_at":"2024-04-29T16:59:33.516Z","dependency_job_id":"6569add2-9d88-4508-876b-07063038d481","html_url":"https://github.com/mskocik/forms","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/mskocik/forms","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mskocik%2Fforms","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mskocik%2Fforms/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mskocik%2Fforms/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mskocik%2Fforms/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mskocik","download_url":"https://codeload.github.com/mskocik/forms/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mskocik%2Fforms/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29695781,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-21T18:18:25.093Z","status":"ssl_error","status_checked_at":"2026-02-21T18:18:22.435Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["autocomplete","datepicker","nette","nette-forms","svelecte"],"created_at":"2024-09-24T13:34:45.484Z","updated_at":"2026-02-21T22:33:33.281Z","avatar_url":"https://github.com/mskocik.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Form custom elements\n\nProvide backend implementation of some svelte custom elements ([svelecte](https://github.com/mskocik/svelecte) and [svelty-picker](https://github.com/mskocik/svelty-picker))\n\n## Install\n\n```bash\ncomposer require mskocik/forms\n```\n\n## Register extension\n\n```neon\nextensions:\n    ext.forms: Mskocik\\Forms\\Bridges\\NetteDI\\FormsExtension\n```\n\nIf you are using [nette/forms](https://github.com/nette/forms) standalone, call control registration manually:\n\n```php\n\\Mskocik\\Forms\\Bridges\\NetteDI\\FormsExtension::init()\n```\n\n## Extend nette form for IDE autocomplete\n\nExtend `Nette\\Application\\UI\\Form` (or `Nette\\Forms\\Form` if using standalone forms) and also `Nette\\Forms\\Container` with extended PHPDoc block:\n\n```php\n\u003c?php declare(strict_types=1);\n\nuse Nette\\Application\\UI\\Form;\nuse Nette\\Forms\\Container;\n\n/**\n * @method SveltyPicker \t\t\taddDatePicker(string $name, ?string $label = null, ?string $format = null)\n * @method SvelecteSelect\t\t\taddSvelecteSelect(string $name, ?string $label = null, ?array $items = null)\n * @method SvelecteMultiSelect  \taddSvelecteMultiSelect(string $name, ?string $label = null, ?array $items = null)\n */\nclass AppForm extends Form\n{}\n\n/**\n * @method SveltyPicker \t\t\taddDatePicker(string $name, ?string $label = null, ?string $format = null)\n * @method SvelecteSelect\t\t\taddSvelecteSelect(string $name, ?string $label = null, ?array $items = null)\n * @method SvelecteMultiSelect  \taddSvelecteMultiSelect(string $name, ?string $label = null, ?array $items = null)\n */\nclass AppFormContainer extends Container\n{}\n```\n## Use as needed!\n\n```php\n$form = new Form();\n$form-\u003eaddSvelecteSelect('select', 'My Select', [/** item array */])\n    -\u003esetFetch($presenter-\u003elink('Api:fetch', ['id' =\u003e '[query]']))\n    -\u003esetRequired();\n// ...\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmskocik%2Fforms","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmskocik%2Fforms","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmskocik%2Fforms/lists"}