{"id":40638161,"url":"https://github.com/joy2fun/filament-ext","last_synced_at":"2026-01-21T07:58:55.074Z","repository":{"id":251880079,"uuid":"833949135","full_name":"joy2fun/filament-ext","owner":"joy2fun","description":null,"archived":false,"fork":false,"pushed_at":"2026-01-12T13:10:11.000Z","size":76,"stargazers_count":0,"open_issues_count":2,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-12T19:57:44.539Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/joy2fun.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.md","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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":"joy2fun"}},"created_at":"2024-07-26T05:29:01.000Z","updated_at":"2026-01-12T13:10:08.000Z","dependencies_parsed_at":"2025-01-27T13:31:48.360Z","dependency_job_id":"5daff704-8945-41ee-a1c9-8cd58580a917","html_url":"https://github.com/joy2fun/filament-ext","commit_stats":null,"previous_names":["joy2fun/filament-ext"],"tags_count":0,"template":false,"template_full_name":"spatie/package-skeleton-laravel","purl":"pkg:github/joy2fun/filament-ext","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joy2fun%2Ffilament-ext","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joy2fun%2Ffilament-ext/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joy2fun%2Ffilament-ext/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joy2fun%2Ffilament-ext/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/joy2fun","download_url":"https://codeload.github.com/joy2fun/filament-ext/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joy2fun%2Ffilament-ext/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28629922,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-21T04:47:28.174Z","status":"ssl_error","status_checked_at":"2026-01-21T04:47:22.943Z","response_time":86,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":"2026-01-21T07:58:53.705Z","updated_at":"2026-01-21T07:58:55.065Z","avatar_url":"https://github.com/joy2fun.png","language":"PHP","funding_links":["https://github.com/sponsors/joy2fun"],"categories":[],"sub_categories":[],"readme":"## sms code\n\nuse trait in livewire component:\n```php\nuse Joy2fun\\FilamentExt\\Forms\\Concerns\\InteractsWithSmsCode;\n\n// setup a sender\npublic function getSmsCodeSender(): Closure\n{\n    return function(string $mobile, string $code) {\n        // send sms \n        Log::debug(\"sms sent\", func_get_args());\n    };\n}\n```\n\nuse input in filament form\n```php\n[\n    TextInput::make('phone')\n        -\u003eregex('/^\\d{10,15}$/')\n        -\u003erules(['required'])\n        -\u003elabel('手机号'),\n    SmsCodeInput::make('code')\n        -\u003emobileField('phone')\n        -\u003edehydrated(false)\n        -\u003eregex('/^\\d{4,6}$/')\n        -\u003elabel('验证码')\n        -\u003erules([\n            'required',\n            fn(Get $get): \\Closure =\u003e function (string $attribute, $value, \\Closure $fail) use ($get) {\n                SmsCode::attempt($get('phone') ?? '', $value) or $fail('验证码无效');\n            },\n        ]),\n]\n```\n\n## popup captcha\n\n```php\nuse Joy2fun\\FilamentExt\\Forms\\Concerns\\InteractsWithCaptcha;\n```\n\ninclude blade view\n```blade\n@include('filament-ext::components.captcha')\n```\n\npopup captcha modal and halt\n```php\nif (!$this-\u003ecaptchaShouldPass()) {\n    $this-\u003epopupCaptcha();\n    return ;\n}\n```\n\ncaptcha free minutes if passed validation\n```php\nconfig([\n    'filament-ext.captcha_free_minutes' =\u003e 10,\n])\n```\n\n## modal alert message\n\ninclude blade view\n```blade\n@include('filament-ext::components.alert')\n```\n\nfrom server:\n```php\n$this-\u003edispatch('alert', message: 'something wrong');\n```\n\nfrom alpine js:\n```js\n$dispatch('alert', {message: 'something wrong'})\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoy2fun%2Ffilament-ext","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoy2fun%2Ffilament-ext","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoy2fun%2Ffilament-ext/lists"}