{"id":49893586,"url":"https://github.com/slimani-dev/filament-cookie-consent","last_synced_at":"2026-05-15T22:44:37.979Z","repository":{"id":354973145,"uuid":"1226264988","full_name":"slimani-dev/filament-cookie-consent","owner":"slimani-dev","description":null,"archived":false,"fork":false,"pushed_at":"2026-05-01T08:05:30.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-01T09:17:16.770Z","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/slimani-dev.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","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}},"created_at":"2026-05-01T07:05:51.000Z","updated_at":"2026-05-01T08:05:33.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/slimani-dev/filament-cookie-consent","commit_stats":null,"previous_names":["slimani-dev/filament-cookie-consent"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/slimani-dev/filament-cookie-consent","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slimani-dev%2Ffilament-cookie-consent","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slimani-dev%2Ffilament-cookie-consent/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slimani-dev%2Ffilament-cookie-consent/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slimani-dev%2Ffilament-cookie-consent/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/slimani-dev","download_url":"https://codeload.github.com/slimani-dev/filament-cookie-consent/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slimani-dev%2Ffilament-cookie-consent/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33082283,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-15T20:25:35.270Z","status":"ssl_error","status_checked_at":"2026-05-15T20:25:34.732Z","response_time":103,"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-05-15T22:44:37.483Z","updated_at":"2026-05-15T22:44:37.974Z","avatar_url":"https://github.com/slimani-dev.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Filament Cookie Consent\n\n[![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/slimani-dev/filament-cookie-consent/run-tests.yml?branch=main\u0026label=tests\u0026style=flat-square)](https://github.com/slimani-dev/filament-cookie-consent/actions/workflows/run-tests.yml)\n[![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/slimani-dev/filament-cookie-consent/phpstan.yml?branch=main\u0026label=phpstan\u0026style=flat-square)](https://github.com/slimani-dev/filament-cookie-consent/actions/workflows/phpstan.yml)\n[![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/slimani-dev/filament-cookie-consent/fix-php-code-style-issues.yml?branch=main\u0026label=code%20style\u0026style=flat-square)](https://github.com/slimani-dev/filament-cookie-consent/actions/workflows/fix-php-code-style-issues.yml)\n[![Total Downloads](https://img.shields.io/packagist/dt/slimani/filament-cookie-consent.svg?style=flat-square)](https://packagist.org/packages/slimani/filament-cookie-consent)\n[![License](https://img.shields.io/packagist/l/slimani/filament-cookie-consent.svg?style=flat-square)](https://github.com/slimani-dev/filament-cookie-consent/blob/main/LICENSE)\n\nA customizable cookie consent plugin for Filament panels. It displays a modal to users to accept or refuse cookies, and provides a middleware to enforce consent if required.\n\n## Features\n\n- **Customizable Schema**: Define your own content and fields for the cookie consent modal.\n- **Middleware Support**: Automatically redirect users to the dashboard or show the modal if consent is not yet given.\n- **Notifications**: Show success notifications upon acceptance or rejection.\n- **Easy Integration**: Simple registration via Filament Panel provider.\n- **Flexible Configuration**: Control modal heading, description, icon, buttons, and more.\n\n## Installation\n\nYou can install the package via composer:\n\n```bash\ncomposer require slimani/filament-cookie-consent\n```\n\n## Usage\n\n### Registering the Plugin\n\nRegister the plugin in your Panel Provider:\n\n```php\nuse Slimani\\CookieConsent\\CookieConsentPlugin;\n\npublic function panel(Panel $panel): Panel\n{\n    return $panel\n        -\u003eplugin(CookieConsentPlugin::make());\n}\n```\n\n### Customizing the Plugin\n\nYou can customize the plugin's behavior using the following methods:\n\n```php\nCookieConsentPlugin::make()\n    -\u003emodalHeading('We value your privacy')\n    -\u003emodalDescription('We use cookies to enhance your browsing experience.')\n    -\u003emodalSubmitActionLabel('Accept All')\n    -\u003emodalCancelActionLabel('Reject All')\n    -\u003emodalWidth('4xl')\n    -\u003ecookiesRequired() // Enforce consent via middleware\n    -\u003eshowAcceptedNotification(false)\n    -\u003eschema([\n        // Your custom Filament schema components here\n    ])\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\nPlease review [our security policy](SECURITY.md) on how to report security vulnerabilities.\n\n## Credits\n\n- [Mohamed Slimani](https://github.com/slimani-dev)\n- [All Contributors](../../contributors)\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fslimani-dev%2Ffilament-cookie-consent","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fslimani-dev%2Ffilament-cookie-consent","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fslimani-dev%2Ffilament-cookie-consent/lists"}