{"id":18555607,"url":"https://github.com/n2ref/coreui-form-field-select2-php","last_synced_at":"2026-01-20T06:01:40.152Z","repository":{"id":245496478,"uuid":"811036463","full_name":"n2ref/coreui-form-field-select2-php","owner":"n2ref","description":null,"archived":false,"fork":false,"pushed_at":"2024-06-22T13:01:42.000Z","size":18,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-13T23:35:28.605Z","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":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/n2ref.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}},"created_at":"2024-06-05T20:22:38.000Z","updated_at":"2024-06-22T13:01:45.000Z","dependencies_parsed_at":"2024-06-23T08:47:12.069Z","dependency_job_id":null,"html_url":"https://github.com/n2ref/coreui-form-field-select2-php","commit_stats":null,"previous_names":["n2ref/coreui-form-field-select2-php"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/n2ref/coreui-form-field-select2-php","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/n2ref%2Fcoreui-form-field-select2-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/n2ref%2Fcoreui-form-field-select2-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/n2ref%2Fcoreui-form-field-select2-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/n2ref%2Fcoreui-form-field-select2-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/n2ref","download_url":"https://codeload.github.com/n2ref/coreui-form-field-select2-php/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/n2ref%2Fcoreui-form-field-select2-php/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28597087,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T02:08:49.799Z","status":"ssl_error","status_checked_at":"2026-01-20T02:08:44.148Z","response_time":117,"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":[],"created_at":"2024-11-06T21:27:18.737Z","updated_at":"2026-01-20T06:01:40.136Z","avatar_url":"https://github.com/n2ref.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Coreui form field select2\n\n[Online documentation](https://n2ref.github.io/coreui-form-field-select2)\n\n[js repository](https://n2ref.github.io/coreui-form-field)\n\n### Install\n\n```shell\ncomposer install n2ref/coreui-form-field-select2-php\n```\n\n\n### Select2 options\n\n[select2.org](https://select2.org)\n\n\n### Example usage\n\n```php\n$form = new Form();\n\n$form-\u003esetRecord([\n    'field' =\u003e 'Reactive',\n]);\n\n$options = [\n    'Reactive',\n    'Solution',\n    'Conglomeration',\n    'Algoritm',\n    'Holistic',\n];\n\n$form-\u003esetFields([\n    (new Field\\Select2('field', 'title')))-\u003esetWidth(300)-\u003esetOptions($options)\n        -\u003esetSelect2([\n            \"placeholder\"     =\u003e 'Write your value',\n            \"tags\"            =\u003e true,\n            \"tokenSeparators\" =\u003e [',', ' ']\n        ]),\n]);\n\necho json_encode($form-\u003etoArray());\n```\n\nOutput\n```json\n{\n    \"component\": \"coreui.form\",\n    \"record\"  : {\n      \"field\": \"Reactive\"\n    },\n    \"fields\"  : [\n      \n      {\n        \"type\": \"select2\", \n        \"name\": \"field\", \n        \"label\": \"title\", \n        \"width\": 300, \n        \"options\": [\n          \"Reactive\", \"Solution\", \"Conglomeration\", \"Algoritm\", \"Holistic\"\n        ], \n        \"select2\": {\n            \"placeholder\": \"Write your value\",\n            \"tags\": true,\n            \"tokenSeparators\": [\",\", \" \"]\n          }\n      }\n      \n    ]\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fn2ref%2Fcoreui-form-field-select2-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fn2ref%2Fcoreui-form-field-select2-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fn2ref%2Fcoreui-form-field-select2-php/lists"}