{"id":20423991,"url":"https://github.com/nhedger/laravel-envicon","last_synced_at":"2025-06-28T02:34:44.138Z","repository":{"id":51291652,"uuid":"271369309","full_name":"nhedger/laravel-envicon","owner":"nhedger","description":"Display a custom favicon that depends on your runtime environment. ","archived":false,"fork":false,"pushed_at":"2023-06-13T19:24:07.000Z","size":108,"stargazers_count":20,"open_issues_count":0,"forks_count":4,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-05-13T03:39:18.374Z","etag":null,"topics":["environment","favicon","favicon-dynamic","laravel","laravel-package"],"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/nhedger.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2020-06-10T19:40:35.000Z","updated_at":"2025-03-09T14:01:39.000Z","dependencies_parsed_at":"2025-04-12T18:43:10.853Z","dependency_job_id":"0442ffc8-c327-4029-98a5-6fd4b5ae2607","html_url":"https://github.com/nhedger/laravel-envicon","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/nhedger/laravel-envicon","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nhedger%2Flaravel-envicon","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nhedger%2Flaravel-envicon/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nhedger%2Flaravel-envicon/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nhedger%2Flaravel-envicon/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nhedger","download_url":"https://codeload.github.com/nhedger/laravel-envicon/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nhedger%2Flaravel-envicon/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261192931,"owners_count":23122891,"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":["environment","favicon","favicon-dynamic","laravel","laravel-package"],"created_at":"2024-11-15T07:08:24.567Z","updated_at":"2025-06-28T02:34:44.093Z","avatar_url":"https://github.com/nhedger.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Laravel Envicon\n\n\u003cp align=\"center\"\u003e\n    \u003cimg src=\".github/screenshot.png\"\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n\u003cimg src=\"https://img.shields.io/badge/laravel-%209.x%20|%2010.x-FF2D20.svg?style=flat-square\" alt=\"Support Laravel versions\"\u003e\n\u003ca href=\"https://packagist.org/packages/hedger/laravel-envicon\"\u003e\u003cimg src=\"https://img.shields.io/packagist/v/hedger/laravel-envicon.svg?style=flat-square\" alt=\"Latest Version on Packagist\"\u003e\u003c/a\u003e\n\u003ca href=\"LICENSE.md\"\u003e\u003cimg src=\"https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square\" alt=\"Software License\"\u003e\u003c/a\u003e\n\u003cimg alt=\"GitHub Workflow Status\" src=\"https://img.shields.io/github/actions/workflow/status/nhedger/laravel-envicon/integrate.yml?style=flat-square\"\u003e\n\u003c/p\u003e\n\nThis package allows you to display a custom favicon depending on your\nruntime environment. This makes it easy to identify immediately on which\nenvironment you're browsing.\n\n## Install\n\nVia [Composer](https://getcomposer.org/)\n\n```shell script\ncomposer require hedger/laravel-envicon\n```\n\nOnce the package is installed, you'll need to **publish the configuration**\nto link your environments to custom favicons.\n\n```shell script\nphp artisan vendor:publish --tag=envicon-config\n```\n\nIf you want to use the default envicons provided by this package, run\nthe following command that will copy them in your `public/favicons`\nfolder.\n\n```shell script\nphp artisan vendor:publish --tag=envicon-favicons\n```\n\n## Usage\n\nSimply use the provided helper in place of your favicon's URL. This will\nreturn the favicon that matches your current **runtime environment**.\n\n```blade\n\u003c!doctype html\u003e\n\u003chtml lang=\"en\"\u003e\n    \u003chead\u003e\n        \u003clink rel=\"icon\" href=\"{{ Envicon::url() }}\"\u003e\n    \u003c/head\u003e\n\u003c/html\u003e\n```\n\nIf you need the URL of a favicon for a **specific environment**, use the\nfollowing statement instead. You'll need to pass the environment's name\nas the first parameter.\n\n```blade\n\u003c!doctype html\u003e\n\u003chtml lang=\"en\"\u003e\n    \u003chead\u003e\n        \u003clink rel=\"icon\" href=\"{{ Envicon::for('production') }}\"\u003e\n    \u003c/head\u003e\n\u003c/html\u003e\n```\n\n## Testing\nTests can be run using the following composer script.\n```shell script\ncomposer test\n```\n\n## License\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n\n[ico-version]: https://img.shields.io/packagist/v/hedger/laravel-envicon.svg?style=flat-square\n[ico-license]: https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square\n[ico-build]: https://img.shields.io/github/workflow/status/nhedger/laravel-envicon/Test/master?style=flat-square\n[screenshot]: .github/screenshot.png\n\n[link-packagist]: https://packagist.org/packages/hedger/laravel-envicon\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnhedger%2Flaravel-envicon","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnhedger%2Flaravel-envicon","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnhedger%2Flaravel-envicon/lists"}