{"id":20208637,"url":"https://github.com/orchidsoftware/blade-icons","last_synced_at":"2026-04-01T22:22:55.999Z","repository":{"id":44503253,"uuid":"274772221","full_name":"orchidsoftware/blade-icons","owner":"orchidsoftware","description":"Effortlessly integrate SVG images into your Blade templates with this convenient package, offering a seamless way to work with inline icons.","archived":false,"fork":false,"pushed_at":"2026-03-21T22:36:54.000Z","size":71,"stargazers_count":22,"open_issues_count":0,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2026-03-22T11:08:43.630Z","etag":null,"topics":["blade","blade-templates","icon","icons","inline-svg-images"],"latest_commit_sha":null,"homepage":"https://orchid.software","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/orchidsoftware.png","metadata":{"funding":{"github":"orchidsoftware","patreon":null,"open_collective":"orchid","ko_fi":null,"tidelift":null,"custom":null},"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-24T21:22:45.000Z","updated_at":"2026-03-21T22:33:45.000Z","dependencies_parsed_at":"2023-12-16T20:07:12.702Z","dependency_job_id":"0efcdd55-f3f4-416d-8c03-ff8a42094232","html_url":"https://github.com/orchidsoftware/blade-icons","commit_stats":{"total_commits":51,"total_committers":5,"mean_commits":10.2,"dds":0.07843137254901966,"last_synced_commit":"61d2720f36aafa0afb34fa37caded5708519679c"},"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"purl":"pkg:github/orchidsoftware/blade-icons","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orchidsoftware%2Fblade-icons","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orchidsoftware%2Fblade-icons/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orchidsoftware%2Fblade-icons/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orchidsoftware%2Fblade-icons/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/orchidsoftware","download_url":"https://codeload.github.com/orchidsoftware/blade-icons/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orchidsoftware%2Fblade-icons/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31292639,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-01T21:15:39.731Z","status":"ssl_error","status_checked_at":"2026-04-01T21:15:34.046Z","response_time":53,"last_error":"SSL_read: 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":["blade","blade-templates","icon","icons","inline-svg-images"],"created_at":"2024-11-14T05:36:26.661Z","updated_at":"2026-04-01T22:22:55.977Z","avatar_url":"https://github.com/orchidsoftware.png","language":"PHP","funding_links":["https://github.com/sponsors/orchidsoftware","https://opencollective.com/orchid"],"categories":[],"sub_categories":[],"readme":"# Inline SVG Icons for Laravel Blade\n\n\n\u003ca href=\"https://github.com/orchidsoftware/blade-icons/actions\"\u003e\u003cimg src=\"https://github.com/orchidsoftware/blade-icons/workflows/Tests/badge.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://packagist.org/packages/orchid/blade-icons\"\u003e\u003cimg alt=\"Packagist\" src=\"https://img.shields.io/packagist/dt/orchid/blade-icons.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://packagist.org/packages/orchid/blade-icons\"\u003e\u003cimg alt=\"Packagist Version\" src=\"https://img.shields.io/packagist/v/orchid/blade-icons.svg\"\u003e\u003c/a\u003e\n\n\nThis package for the Laravel framework allows you to use Blade components to insert inline SVG images.\n\n## Installation\n\nTo install this package, run the following command in your command line:\n\n```php\n$ composer require orchid/blade-icons\n```\n\n## Basic Usage\n\nTo register a directory with your files in the service provider, use the following code:\n\n```php\nnamespace App\\Providers;\n\nuse Orchid\\Icons\\IconFinder;\nuse Illuminate\\Support\\ServiceProvider;\n\nclass AppServiceProvider extends ServiceProvider\n{\n    public function boot(IconFinder $iconFinder) : void\n    {\n        $iconFinder-\u003eregisterIconDirectory('fa', storage_path('app/fontawesome'));\n    }\n}\n```\n\nWhen calling the directory method with the first argument, we pass the prefix to call our icons and the second argument is the directory where they are located.\n\nAfter that, we can call the component in our blade templates:\n\n```blade\n\u003cx-orchid-icon path=\"fa.home\" /\u003e\n```\n\nIf you use one or two sets of icons that do not repeat, then it is not necessary to specify a prefix in the component:\n\n```blade\n\u003cx-orchid-icon path=\"home\" /\u003e\n```\n\nYou can also list some attributes that should be applied to your icon:\n\n```blade\n\u003cx-orchid-icon \n    path=\"home\" \n    class=\"icon-big\" \n    width=\"2em\" \n    height=\"2em\" /\u003e\n```\n\nStatic call from a PHP class:\n\n```php\nIconComponent::make(\n    path: 'fa.home',\n    id: 101,\n    class: 'red',\n);\n```\n\n### Default Sizes\n\nIf you are using icons from the same set, it makes sense to specify a default size value:\n\n```php\nnamespace App\\Providers;\n\nuse Orchid\\Icons\\IconFinder;\nuse Illuminate\\Support\\ServiceProvider;\n\nclass AppServiceProvider extends ServiceProvider\n{\n    public function boot(IconFinder $iconFinder): void\n    {\n        $iconFinder\n            -\u003eregisterIconDirectory('fa', storage_path('app/fontawesome'))\n            -\u003esetSize('54px', '54px');\n    }\n}\n```\n\nIf you use different sets, for example, in the public part of the application and in the admin panel, then you can dynamically change the value in the middleware:\n\n```php\nnamespace App\\Http\\Middleware;\n\nuse Closure;\nuse Illuminate\\Http\\Request;\nuse Orchid\\Icons\\IconFinder;\n\nclass ExampleMiddleware\n{\n    public function __construct(\n        private IconFinder $iconFinder\n    ) {}\n\n    /**\n     * Handle an incoming request.\n     */\n    public function handle(Request $request, Closure $next): mixed\n    {\n        $this-\u003eiconFinder-\u003esetSize('54px', '54px');\n\n        return $next($request);\n    }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forchidsoftware%2Fblade-icons","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Forchidsoftware%2Fblade-icons","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forchidsoftware%2Fblade-icons/lists"}