{"id":14969790,"url":"https://github.com/josh-taylor/sage-svg","last_synced_at":"2025-10-26T09:31:03.239Z","repository":{"id":57001728,"uuid":"95571112","full_name":"josh-taylor/sage-svg","owner":"josh-taylor","description":"WordPress package to enable a blade directive to use SVG images inline with Sage 9","archived":false,"fork":false,"pushed_at":"2018-08-31T10:06:20.000Z","size":5,"stargazers_count":18,"open_issues_count":0,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-31T18:05:13.873Z","etag":null,"topics":["composer-package","sage","svg","svg-icons","wordpress","wordpress-packagist"],"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/josh-taylor.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-06-27T15:07:06.000Z","updated_at":"2023-04-03T17:34:26.000Z","dependencies_parsed_at":"2022-08-21T14:10:38.370Z","dependency_job_id":null,"html_url":"https://github.com/josh-taylor/sage-svg","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/josh-taylor%2Fsage-svg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/josh-taylor%2Fsage-svg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/josh-taylor%2Fsage-svg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/josh-taylor%2Fsage-svg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/josh-taylor","download_url":"https://codeload.github.com/josh-taylor/sage-svg/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238301266,"owners_count":19449407,"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":["composer-package","sage","svg","svg-icons","wordpress","wordpress-packagist"],"created_at":"2024-09-24T13:42:23.188Z","updated_at":"2025-10-26T09:30:57.940Z","avatar_url":"https://github.com/josh-taylor.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sage SVG\n\nEasily use SVG images in your [Sage 9](https://roots.io/sage) Blade templates.\n\nThis repository is a wrapper for Adam Wathan's [Blade SVG](https://github.com/adamwathan/blade-svg) for Laravel, so a \nlot of the concepts from that repository are the same.\n\n## Installation\n\nYou can install this package via Composer by running this command in the root of your Sage 9 installation.\n\n```\ncomposer require josh-taylor/sage-svg\n```\n\n## Getting Started\n\nThe package will automatically register a blade directive to inline your SVGs.\n\nPlace all your SVGs inside `resources/assets/icons` in your Sage 9 installation and you are good to go. **Recommend to run all your SVGs through [SVGO](https://jakearchibald.github.io/svgomg/) first!**\n\n```html\n\u003ca href=\"/settings\"\u003e\n    @svg('cog', 'icon-lg') Settings\n\u003c/a\u003e\n\n\u003c!-- Renders --\u003e\n\u003ca href=\"/settings\"\u003e\n    \u003csvg class=\"icon icon-lg\" viewBox=\"0 0 20 20\" xmlns=\"http://www.w3.org/2000/svg\"\u003e\n        \u003c!-- ... --\u003e\n    \u003c/svg\u003e\n\u003c/a\u003e\n```\n\nFor more advanced usage you can check out [Adam's](https://github.com/adamwathan/blade-svg) repository.\n\nThe only thing this libary does not support at the moment is non-inline SVG. But this is \n[better](https://css-tricks.com/pretty-good-svg-icon-system/) anyway right?\n\n## Credits\n\nMost of the work of this repository is down to Adam Wathan. This is just a wrapper to get it work with Sage 9 blade \ntemplates.\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjosh-taylor%2Fsage-svg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjosh-taylor%2Fsage-svg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjosh-taylor%2Fsage-svg/lists"}