{"id":24501078,"url":"https://github.com/thomasdev-de/bs-phone-input","last_synced_at":"2026-02-01T03:37:55.493Z","repository":{"id":227275223,"uuid":"770360285","full_name":"ThomasDev-de/bs-phone-input","owner":"ThomasDev-de","description":null,"archived":false,"fork":false,"pushed_at":"2025-07-02T12:50:08.000Z","size":2033,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-04T21:18:39.453Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","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/ThomasDev-de.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":"2024-03-11T12:20:21.000Z","updated_at":"2025-08-04T20:50:09.000Z","dependencies_parsed_at":null,"dependency_job_id":"2d61a436-4aec-4176-8106-23f46346364e","html_url":"https://github.com/ThomasDev-de/bs-phone-input","commit_stats":null,"previous_names":["thomasdev-de/bs-phone-input"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ThomasDev-de/bs-phone-input","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThomasDev-de%2Fbs-phone-input","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThomasDev-de%2Fbs-phone-input/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThomasDev-de%2Fbs-phone-input/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThomasDev-de%2Fbs-phone-input/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ThomasDev-de","download_url":"https://codeload.github.com/ThomasDev-de/bs-phone-input/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThomasDev-de%2Fbs-phone-input/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28966797,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-01T02:14:24.993Z","status":"ssl_error","status_checked_at":"2026-02-01T02:13:55.706Z","response_time":56,"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":"2025-01-21T22:23:14.411Z","updated_at":"2026-02-01T03:37:55.467Z","avatar_url":"https://github.com/ThomasDev-de.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Phone Input\n\nThis plugin creates an input group preceded by a dropdown of all countries.\n\n## Installation\n\n### manual\n\nDownload and include the script at the end of the body tag.\n\n```html\n\u003c!--suppress HtmlUnknownTarget --\u003e\n\u003cscript src=\"path/to/jquery.bsPhone.min.js\" type=\"text/javascript\"\u003e\n```\n\n### composer\n\nvia command\n\n```shell\ncomposer require webcito/bs-phone-input:dev-main\n```\n\nvia composer.json\n\n```json\n{\n  \"require\": {\n    \"webcito/bs-phone-input\": \"dev-main\"\n  }\n}\n```\n\n## Usage\n\nAll inputs with the attribute `[data-bs-toggle=\"phone\"]` are initialized automatically.\n\n```html\n\u003cinput type=\"tel\" value=\"+49123456789\" data-bs-toggle=\"phone\" id=\"example\"\u003e\n\n\u003c!-- load jQuery and Bootstrap before --\u003e\n\u003cscript src=\"dist/jquery.bsPhone.min.js\" type=\"text/javascript\"\u003e\n\u003cscript\u003e\n    $('#example').bsPhone();\n\u003c/script\u003e\n```\n\n## Options\n\n| property          | data-attribute              | type       | default                        | desc                                                                                                              |\n|-------------------|-----------------------------|------------|--------------------------------|-------------------------------------------------------------------------------------------------------------------|\n| default           | [data-default]              | `string`   | `de`                           | *The ISO code of the country to be preselected*                                                                   |\n| limitedCountries  | [data-limited-countries]    | `array`    | `[]`                           | *If only certain countries should appear in the drop-down list, the country codes could be entered here*          |\n| inputGroupClasses | [data-input-group-classes]  | `string`   | `mb-3`                         | *The CSS classes are set to the parent element (.input-group)*                                                    |\n| dropDownClasses   | [data-drop-down-classes]    | `string`   | `btn btn-outline-secondary`    | *The CSS classes are set to the DropDown button*                                                                  |\n| dropDownMaxHeight | [data-drop-down-max-height] | `string`   | `50vh`                         | *CSS property for the height of the scrollable area in the DropDown menu*                                         |\n| inputClasses      | [data-input-classes]        | `string`   | `border-secondary rounded-end` | *Additional CSS classes for the input field*                                                                      |\n| formatValue       |                             | `function` |                                | *The formatting for the result in the original input field. 2 parameters are provided: (phoneCode, value) =\u003e {}*  |\n| formatView        |                             | `function` |                                | *The formatting for the result in the displayed input field. 2 parameters are provided: (phoneCode, value) =\u003e {}* |\n\n## Methods\n\nMethods are called as follows\n\n```js\n$('input').bsPhone('method', param);\n```\n\n| method            | example                                                   | description                 |\n|-------------------|-----------------------------------------------------------|-----------------------------|\n| `'val'`           | `$('#example').bsPhone('val', '+49123456789');`             | Sets the value of the input |\n| `'val'`           | `$('#example').bsPhone('val');` or `$('#example').val();` | Get the value of the input  |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthomasdev-de%2Fbs-phone-input","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthomasdev-de%2Fbs-phone-input","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthomasdev-de%2Fbs-phone-input/lists"}