{"id":16400334,"url":"https://github.com/geosot/filament-env-editor","last_synced_at":"2025-03-23T05:31:07.398Z","repository":{"id":232905919,"uuid":"785472253","full_name":"GeoSot/filament-env-editor","owner":"GeoSot","description":null,"archived":false,"fork":false,"pushed_at":"2024-04-17T07:23:03.000Z","size":18,"stargazers_count":7,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-05-01T14:31:42.108Z","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/GeoSot.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","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":["GeoSot"]}},"created_at":"2024-04-12T00:25:03.000Z","updated_at":"2024-05-22T08:00:08.093Z","dependencies_parsed_at":"2024-04-12T09:05:59.322Z","dependency_job_id":"4dc6027d-8c25-4fd5-8d88-5f78be8a755c","html_url":"https://github.com/GeoSot/filament-env-editor","commit_stats":null,"previous_names":["geosot/filament-env-editor","geosot/laravel-env-editor"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GeoSot%2Ffilament-env-editor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GeoSot%2Ffilament-env-editor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GeoSot%2Ffilament-env-editor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GeoSot%2Ffilament-env-editor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GeoSot","download_url":"https://codeload.github.com/GeoSot/filament-env-editor/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245061382,"owners_count":20554563,"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","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":"2024-10-11T05:27:20.428Z","updated_at":"2025-03-23T05:31:06.848Z","avatar_url":"https://github.com/GeoSot.png","language":"PHP","funding_links":["https://github.com/sponsors/GeoSot"],"categories":[],"sub_categories":[],"readme":"# Filament Env Editor\n\n[![Latest Version on Packagist](https://img.shields.io/packagist/v/geo-sot/filament-env-editor.svg?style=flat-square)](https://packagist.org/packages/geo-sot/filament-env-editor)\n[![Total Downloads](https://img.shields.io/packagist/dt/geo-sot/filament-env-editor.svg?style=flat-square)](https://packagist.org/packages/geo-sot/filament-env-editor)\n\n\u003cp align=\"center\"\u003e\n    \u003cimg src=\"https://github.com/GeoSot/filament-env-editor/assets/22406063/e53b56d9-3e2d-4943-b1bd-4b18b6d5fc15\" alt=\"Banner\" style=\"width: 100%; max-width: 800px; border-radius: 10px\" /\u003e\n\u003c/p\u003e\n\n A Simple .env file Viewer plugin for your Filament Panels.\n \n Provides features like, manage current .env variables, and a handy backup functionality page\n\n\n\u003cbr\u003e\n\n## Installation\n\nYou can install the package via composer:\n\n```bash\ncomposer require geo-sot/filament-env-editor\n```\n\n## Usage\n\nAdd the `GeoSot\\FilamentEnvEditor\\FilamentEnvEditorPlugin` to your panel config.\n\n```php\nuse GeoSot\\FilamentEnvEditor\\FilamentEnvEditorPlugin;\n\nclass AdminPanelProvider extends PanelProvider\n{\n    public function panel(Panel $panel): Panel\n    {\n        return $panel\n            // ...\n            -\u003eplugin(\n                FilamentEnvEditorPlugin::make()\n            );\n    }\n}\n```\n\n## Configuration\n\n### Customizing the navigation item\n\n```php\nFilamentEnvEditorPlugin::make()\n    -\u003enavigationGroup('System Tools')\n    -\u003enavigationLabel('My Env')\n    -\u003enavigationIcon('heroicon-o-cog-8-tooth')\n    -\u003enavigationSort(1)\n    -\u003eslug('env-editor')\n```\n\n### Hiding keys\n\nSome keys you may consider to be particularly sensitive and don't wish to expose them, even through this package. You can hide them through this interface:\n\n```php\nFilamentEnvEditorPlugin::make()\n    -\u003ehideKeys('APP_KEY', 'BCRYPT_ROUNDS')\n```\n\n### Authorization\n\nIf you would like to prevent certain users from accessing the logs page, you should add a `authorize` callback in the FilamentLEnvEditorPlugin chain.\n\n```php\nFilamentEnvEditorPlugin::make()\n  -\u003eauthorize(\n      fn () =\u003e auth()-\u003euser()-\u003eisAdmin()\n  )\n```\n\n### Customizing the log page\n\nTo customize the \"env-editor\" page, you can extend the `GeoSot\\FilamentEnvEditor\\Pages\\ViewEnv` page and override its methods.\n\n```php\nuse GeoSot\\FilamentEnvEditor\\Pages\\ViewEnv as BaseViewEnvEditor;\n\nclass ViewEnv extends BaseViewEnvEditor\n{\n    // Your implementation\n}\n```\n\n```php\nuse App\\Filament\\Pages\\ViewEnv;\n\nFilamentEnvEditorPlugin::make()\n  -\u003eviewPage(CustomEnvPage::class)\n```\n\n## Contributing\n\nPlease see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.\n\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%2Fgeosot%2Ffilament-env-editor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgeosot%2Ffilament-env-editor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeosot%2Ffilament-env-editor/lists"}