Websearch plugin screenshot
Dark mode ready
Multilingual support
Supports v5.x

Websearch

Community

Search the web from any Filament field.

Tags: Action Forms Form Field
Supported versions:
5.x 4.x
Problemli avatar Author: Problemli

Package health

Beta

Automated checks of this plugin's Composer package

97 / 100
Security 100
Maintenance 90
Ecosystem 100
15 checks
  • Passed: GitHub Actions pinned to SHA
  • Skipped: GitLab CI includes pinned to SHA
  • Passed: Open security advisories
  • Passed: Dependabot PR responsiveness — No stale Dependabot PRs.
  • Skipped: Renovate MR responsiveness
  • Passed: Dependabot or Renovate configured
  • Passed: Dependency update cooldown configured
  • Passed: Provides a security policy
  • Passed: Abandoned or archived — No consulted source marks the package abandoned (packagist, github).
  • Passed: Commit and release recency — Active: last commit 0 days ago; last release 0 days ago.
  • Failed: composer.lock not committed by library composer.lock is present in the released dist archive. View details on Plumb
  • Passed: Dist archive is lean
  • Passed: Current Laravel version supported — Package dependencies resolve together with current Laravel 13.0.
  • Passed: Current PHP version supported — Constraint ^8.2 supports current PHP 8.5.
  • Skipped: Current Symfony version supported
Third-party plugin. This is built by the community, not the Filament team. Filament does not review, endorse, or vet the security of plugins outside the filament/ namespace. Review the source and install at your own risk. Found malware or an unresolved security issue the author won't address? Report it .
Powered by Plumb Last scanned 12 hours ago

Documentation

Search the web from any Filament field.

websearch

Latest Version on Packagist GitHub Tests Action Status Total Downloads

A hint action that opens a search for the field's value on Google, DuckDuckGo, Bing, Brave, Swisscows, Ecosia, Startpage, Qwant, Yandex or Baidu, with harmonised filters (images, videos, news, shopping, license, transparency, size, layout, timespan, country). Users can pick their own engine. No migration needed.

#Installation

composer require blemli/websearch-for-filament
php artisan websearch-for-filament:install -n

Register the plugin in your panel provider: ->plugin(WebSearchPlugin::make()->userChoice())

#Usage

TextInput::make('name')->websearch(),                                   // "Search on Google" for the field's value
FileUpload::make('image')->imagesearch(['vendor', 'name']),             // image search for two fields joined
FileUpload::make('image')->imagesearch('name', fn (WebSearchAction $a) => $a->transparent()->license(License::CreativeCommons)),

WebSearchAction::make()->query('name')->engine(DuckDuckGo::class)->news()->within(Timespan::Week), // any action slot

Google::images('Fujifilm GFX')->transparent()->layout(Layout::Tall)->url(); // just the URL, no Filament needed

Results open in a new tab by default; ->openInSameTab(), ->openInPopup() and ->openInSlideOver() (Swisscows, Bing, Baidu) are available on the action and in the user's profile (restrict them with ->exceptOpenModes([OpenIn::Popup])) when Filament Breezy is installed. ->trackSearches() on the plugin fires a SearchOpened event and logs to spatie/laravel-activitylog when present. Ships in English and German.

#License

MIT © blemli