{"id":22398749,"url":"https://github.com/tappnetwork/filament-value-range-filter","last_synced_at":"2025-07-31T13:32:11.757Z","repository":{"id":245255134,"uuid":"817546387","full_name":"TappNetwork/filament-value-range-filter","owner":"TappNetwork","description":"A value range filter for Laravel Filament.","archived":false,"fork":false,"pushed_at":"2025-07-06T17:04:29.000Z","size":866,"stargazers_count":20,"open_issues_count":0,"forks_count":8,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-07-22T01:52:24.222Z","etag":null,"topics":["filament","filamentphp","filter","laravel","plugin","range","value"],"latest_commit_sha":null,"homepage":"","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/TappNetwork.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},"funding":{"github":"TappNetwork"}},"created_at":"2024-06-20T00:40:30.000Z","updated_at":"2025-07-06T17:04:32.000Z","dependencies_parsed_at":"2024-12-02T22:26:44.761Z","dependency_job_id":"85eba7c6-412a-4a45-a6f6-17675740ba8e","html_url":"https://github.com/TappNetwork/filament-value-range-filter","commit_stats":null,"previous_names":["tappnetwork/filament-value-range-filter"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/TappNetwork/filament-value-range-filter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TappNetwork%2Ffilament-value-range-filter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TappNetwork%2Ffilament-value-range-filter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TappNetwork%2Ffilament-value-range-filter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TappNetwork%2Ffilament-value-range-filter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TappNetwork","download_url":"https://codeload.github.com/TappNetwork/filament-value-range-filter/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TappNetwork%2Ffilament-value-range-filter/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268047864,"owners_count":24187207,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-31T02:00:08.723Z","response_time":66,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["filament","filamentphp","filter","laravel","plugin","range","value"],"created_at":"2024-12-05T07:12:03.675Z","updated_at":"2025-07-31T13:32:11.749Z","avatar_url":"https://github.com/TappNetwork.png","language":"PHP","funding_links":["https://github.com/sponsors/TappNetwork"],"categories":[],"sub_categories":[],"readme":"# Filament Value Range Filter\n\n[![Latest Version on Packagist](https://img.shields.io/packagist/v/tapp/filament-value-range-filter.svg?style=flat-square)](https://packagist.org/packages/tapp/filament-value-range-filter)\n![GitHub Tests Action Status](https://github.com/TappNetwork/filament-value-range-filter/actions/workflows/run-tests.yml/badge.svg)\n![Code Style Action Status](https://github.com/TappNetwork/filament-value-range-filter/actions/workflows/pint.yml/badge.svg)\n[![Total Downloads](https://img.shields.io/packagist/dt/tapp/filament-value-range-filter.svg?style=flat-square)](https://packagist.org/packages/tapp/filament-value-range-filter)\n\nA value range filter for Filament table builder.\n\n## Version Compatibility\n\n Filament | Filament Value Range Filter\n:---------|:---------------------------\n 3.x      | 1.x\n 4.x      | 2.x\n\n## Installation\n\nYou can install the package via composer:\n\n### For Filament 3\n\n```bash\ncomposer require tapp/filament-value-range-filter:\"^1.0\"\n```\n\n### For Filament 4\n\n```bash\ncomposer require tapp/filament-value-range-filter:\"^2.0\"\n```\n\nOptionally, you can publish the translations files with:\n\n```bash\nphp artisan vendor:publish --tag=\"filament-value-range-filter-translations\"\n```\n\n## Appareance\n\n![Filament Value Range Filters](https://raw.githubusercontent.com/TappNetwork/filament-value-range-filter/main/docs/filters.png)\n\n\u003cimg align=\"left\" alt=\"Filament Value Range Filter Options\" title=\"Filament Value Range Filter Options\" src=\"https://raw.githubusercontent.com/TappNetwork/filament-value-range-filter/main/docs/filter_range_options.png\" width=\"45%\" /\u003e\n\n\u003cimg alt=\"Filament Value Range Filter Greater Than Option\" title=\"Filament Value Range Filter Greater Than Option\" src=\"https://raw.githubusercontent.com/TappNetwork/filament-value-range-filter/main/docs/filter_greater_than.png\" width=\"45%\" /\u003e\n\n\u003cbr clear=\"left\"/\u003e\n\n\u003cbr /\u003e\n\n**Filter Indicators**\n\n\u003cimg alt=\"Filament Value Range Filter Between Indicator\" title=\"Filament Value Range Filter Between Indicator\" src=\"https://raw.githubusercontent.com/TappNetwork/filament-value-range-filter/main/docs/filter_indicator.png\" width=\"45%\" /\u003e\n\n\u003cimg alt=\"Filament Value Range Filter Greater Than Indicator\" title=\"Filament Value Range Filter Greater Than Indicator\" src=\"https://raw.githubusercontent.com/TappNetwork/filament-value-range-filter/main/docs/greater_than_indicator.png\" width=\"100%\" /\u003e\n\n\n## Usage\n\n### Filter\n\nAdd to your Filament resource:\n\n```php\nuse Tapp\\FilamentValueRangeFilter\\Filters\\ValueRangeFilter;\n\npublic static function table(Table $table): Table\n{\n    return $table\n        //...\n        -\u003efilters([\n            ValueRangeFilter::make('project_value')\n                    -\u003ecurrency(),\n            ValueRangeFilter::make('estimated_hours'),\n            // ...\n        ])\n}\n```\n\n### Options\n\n#### Currency\n\nYou may use the `-\u003ecurrency()` method to format the values on placeholder and filter indicator as currency. The default currency format is `USD`.\n\n```php\nValueRangeFilter::make('project_value')\n    -\u003ecurrency(),\n```\n\n**Change the currency format**\n\nThe `-\u003ecurrencyCode()` and `-\u003elocale()` methods can be used to change the currency format.\nYou can pass one of the [ISO 4217 currency codes](https://www.iban.com/currency-codes) to the `-\u003ecurrencyCode()` method.\n\n```php\nValueRangeFilter::make('project_value')\n    -\u003ecurrency()\n    -\u003ecurrencyCode('EUR')\n    -\u003elocale('fr'),\n```\n\n\u003cimg align=\"left\" alt=\"Filament Value Range Filter Between currency in EUR Indicator\" title=\"Filament Value Range Filter Between currency in EUR Indicator\" src=\"https://raw.githubusercontent.com/TappNetwork/filament-value-range-filter/main/docs/between_eur.png\" width=\"40%\" /\u003e\n\n\u003cimg alt=\"Filament Value Range Filter Between currency in EUR\" title=\"Filament Value Range Filter Between currency in EUR\" src=\"https://raw.githubusercontent.com/TappNetwork/filament-value-range-filter/main/docs/filter_indicator_eur.png\" width=\"45%\" /\u003e\n\n\u003cbr clear=\"left\" /\u003e\n\n**Currency value**\n\nWhen using currency values, the filter assumes that the value stored on database that will be compared with the provided value on filter is in the smallest unit of the currency (e.g., cents for USD). Therefore, the value provided in the filter is by default multiplied by 100 to be compared with the value stored in the database.\n\nIf the values stored in your database are not in the currency's smallest unit and you do not need the value provided in the filter to be multiplied by 100, pass 'false' to the `-\u003ecurrencyInSmallestUnit()` method:\n\n```php\nValueRangeFilter::make('project_value')\n    -\u003ecurrency()\n    -\u003ecurrencyInSmallestUnit(false),\n```\n\n## Testing\n\n```bash\ncomposer test\n```\n\n## Changelog\n\nPlease see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.\n\n## Contributing\n\nPlease see [CONTRIBUTING](CONTRIBUTING.md) for details.\n\n## Security Vulnerabilities\n\nIf you discover any security-related issues, please email `security@tappnetwork.com`.\n\n## Credits\n\n-  [Tapp Network](https://github.com/TappNetwork)\n-  [All Contributors](../../contributors)\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftappnetwork%2Ffilament-value-range-filter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftappnetwork%2Ffilament-value-range-filter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftappnetwork%2Ffilament-value-range-filter/lists"}