{"id":18696164,"url":"https://github.com/defstudio/env-alert","last_synced_at":"2025-07-13T20:34:29.405Z","repository":{"id":97262459,"uuid":"608590621","full_name":"defstudio/env-alert","owner":"defstudio","description":"Show a nice red alert ribbon when your user is in a production environment","archived":false,"fork":false,"pushed_at":"2025-06-16T10:03:27.000Z","size":85,"stargazers_count":10,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-17T02:44:07.612Z","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/defstudio.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"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}},"created_at":"2023-03-02T10:35:43.000Z","updated_at":"2025-06-16T10:03:24.000Z","dependencies_parsed_at":null,"dependency_job_id":"cc193006-3a95-4e11-a301-67b18110aafc","html_url":"https://github.com/defstudio/env-alert","commit_stats":{"total_commits":33,"total_committers":3,"mean_commits":11.0,"dds":"0.24242424242424243","last_synced_commit":"39e964e00645a4795686f86c9414b422da5f9355"},"previous_names":["defstudio/env-ribbon"],"tags_count":9,"template":false,"template_full_name":"spatie/package-skeleton-laravel","purl":"pkg:github/defstudio/env-alert","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/defstudio%2Fenv-alert","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/defstudio%2Fenv-alert/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/defstudio%2Fenv-alert/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/defstudio%2Fenv-alert/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/defstudio","download_url":"https://codeload.github.com/defstudio/env-alert/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/defstudio%2Fenv-alert/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265200105,"owners_count":23726771,"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-11-07T11:17:23.605Z","updated_at":"2025-07-13T20:34:29.354Z","avatar_url":"https://github.com/defstudio.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Environment Alert\n\n\u003ca href=\"https://packagist.org/packages/defstudio/env-alert\" target=\"_blank\"\u003e\n    \u003cimg style=\"display: inline-block; margin-top: 0.5em; margin-bottom: 0.5em\" src=\"https://img.shields.io/packagist/v/defstudio/env-alert.svg?style=flat\u0026cacheSeconds=3600\" alt=\"Latest Version on Packagist\"\u003e\n\u003c/a\u003e\n\n\u003ca href=\"https://github.com/defstudio/env-alert/actions?query=workflow%3Arun-tests+branch%3Amain\" target=\"_blank\"\u003e\n    \u003cimg style=\"display: inline-block; margin-top: 0.5em; margin-bottom: 0.5em\" src=\"https://img.shields.io/github/actions/workflow/status/defstudio/env-alert/run-tests.yml?branch=main\u0026label=tests\u0026cacheSeconds=3600\u0026logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAMAAABF0y+mAAABiVBMVEUAAAD/iPv9yP3Xm+j/mP//wfVj67Je6bP/h/pVx6p6175d57WQycf+iPn/iPrsnezArd3+t/qpvNJd6LP/jPpu6rv/lPr/kPpc57T/rvtc57Np6rj3oPl37cL/tfn/wv9d6brX//L/g/rYn+n/gvrWm+di6LX+jPrskfGWzMpt6bln4bdd57Jk6LWSycj+vPquwNVo6rde6bP7nvvYnup91b/+vfv/lvtc57OqvNTFs9//t/td57L9t/r/iPpd6LPapej/ovp26bxy67v9lfld6LJr4Ljwsvb/xv3/jv39zv1t6buG5cTDreH5ivlc5rJy676V4cxb57D/y/h50MOy4OCUxcVa77X/iPpe6LP/jP+pu9L8t///tvuQycfArNxp6LzArd151r7/i/9n4bb/j/9e6rT/ifr7ifrskvLYnuhi87tg8blg7bf/vv//lP+wxNtj9b3/qv//oP/+ivz/l/r8ifryn/fvlPTfpPDeofDKtujHtOWX1NF/4seC3cR82sFu7cBo5LiMwPMrAAAAWHRSTlMA/Wv8FAIC/dME/Wj+3tEG/Pv798G1oHRjS0k1LBsWDgsJ/v36+fTy8ezn4+Lh29XNzMzLysLAwLSwr66opJqakY+Ni4J7end0bGlpY11XU048KicmIR8fizl+vwAAAVdJREFUKM9tz2VXAlEQgOFBBURpkE67u7u7E1YFYQl1SbvrlztDiLvss+fc/fCemXMvAEhhKqU759P1rLoxUDUyEh9fPH0z7ALiVrEY+SSNtxNS2upouYv7hOL191aKVsZHUTgbnQPQgDkq4ctHdoQmTWmW4WFzlVUDVpNKXf2fWpWbZIwUq/hcmjWGYnSa1pZZjEoomrEdVAisD7CX6GEb40rqTODxCj21OjDOvjRV8l2jhudBDchg/FUbDIZCITzwQyH6a9+2AMDbm9GfltFnxgAdtQWUgQJl4VQq37uPcSnsfYZzav6Ew18fQ4fUYPM7Qn4uSiIdyx5saJ6T+/3+5KSltshicwI2UpfAKE/aoARTvnn7KMYMdlAUyWRSyHN2JeU42HlCi4TszTHcmuj3iMVdP5JzoyAWNzi6T3ZGrMFCliK3BAqRSC/B2+6IxvYYNcO+2Npfv+yFi10LfBUAAAAASUVORK5CYII=\" alt=\"Tests\"\u003e\n\u003c/a\u003e\n\n\u003ca href=\"https://github.com/defstudio/env-alert/actions?query=workflow%3Alint+branch%3Amain\" target=\"_blank\"\u003e\n    \u003cimg style=\"display: inline-block; margin-top: 0.5em; margin-bottom: 0.5em\" src=\"https://img.shields.io/github/actions/workflow/status/defstudio/env-alert/fix-php-code-style-issues.yml?branch=main\u0026label=code%20style\u0026cacheSeconds=3600\" alt=\"Code Style\"\u003e\n\u003c/a\u003e\n\n\u003ca href=\"https://github.com/defstudio/env-alert/actions?query=workflow%3Aphpstan+branch%3Amain\" target=\"_blank\"\u003e\n    \u003cimg style=\"display: inline-block; margin-top: 0.5em; margin-bottom: 0.5em\" src=\"https://img.shields.io/github/actions/workflow/status/defstudio/env-alert/phpstan.yml?branch=main\u0026label=phpstan\u0026cacheSeconds=3600\" alt=\"Static Analysis\"\u003e\n\u003c/a\u003e\n\n\u003ca href=\"https://packagist.org/packages/defstudio/env-alert\" target=\"_blank\"\u003e\n    \u003cimg style=\"display: inline-block; margin-top: 0.5em; margin-bottom: 0.5em\" src=\"https://img.shields.io/packagist/dt/defstudio/env-alert.svg?style=flat\u0026cacheSeconds=3600\" alt=\"Total Downloads\"\u003e\n\u003c/a\u003e\n\n\u003ca href=\"https://packagist.org/packages/defstudio/env-alert\" target=\"_blank\"\u003e\n    \u003cimg style=\"display: inline-block; margin-top: 0.5em; margin-bottom: 0.5em\" src=\"https://img.shields.io/packagist/l/defstudio/env-alert?style=flat\u0026cacheSeconds=3600\" alt=\"License\"\u003e\n\u003c/a\u003e\n\nShow a nice red alert ribbon when **you** (and only you) are in a production environment\n\n![image](https://user-images.githubusercontent.com/8792274/222460043-dc3e3297-2c59-4d78-9092-feb01efa22bf.png)\n\n\n## Installation\n\nYou can install the package via composer:\n\n```bash\ncomposer require defstudio/env-alert\n```\n\nYou should publish the config file with:\n\n```bash\nphp artisan vendor:publish --tag=\"env-alert-config\"\n```\n\nThis is the contents of the published config file:\n\n```php\nreturn [\n        'enabled' =\u003e (bool) env('ENV_ALERT_ENABLED', true),\n\n    /*\n     * Current environment, taken from APP_ENV or ENV_ALERT_ENV .env entries\n     */\n    'current_environment' =\u003e env('ENV_ALERT_ENV', env('APP_ENV', 'production')),\n\n    /*\n     * Environments where to show the ribbon alert\n     */\n    'environments' =\u003e [\n        'production' =\u003e [\n            /*\n             * When to display the ribbon alert.\n             */\n            'filters' =\u003e [\n                'email' =\u003e [\n                    // 'your.email@email.test',\n                    // '*@your.company.com'\n                ],\n                'ip' =\u003e [\n                    // '123.456.789.101'\n                ],\n            ],\n\n            /*\n             * The ribbon style\n             */\n            'style' =\u003e [\n                'position' =\u003e 'right',\n                'background_color' =\u003e '#f30b0b',\n                'text_color' =\u003e '#ffffff',\n            ],\n        ],\n    ],\n\n    'service_class' =\u003e \\DefStudio\\EnvAlert\\AlertService::class,\n];\n```\n\nThat's all, a red ribbon on the top right corner of the screen will warn when you are operating in a production environment!\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. [Follow Us](https://twitter.com/FabioIvona) on Twitter for more updates about this package.\n\n## Contributing\n\nPlease see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.\n\n## Security Vulnerabilities\n\nPlease review [our security policy](../../security/policy) on how to report security vulnerabilities.\n\n## Credits\n\n- [Fabio Ivona](https://github.com/defstudio)\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%2Fdefstudio%2Fenv-alert","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdefstudio%2Fenv-alert","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdefstudio%2Fenv-alert/lists"}