{"id":18482865,"url":"https://github.com/spaze/svg-icons-latte","last_synced_at":"2026-03-10T05:03:44.278Z","repository":{"id":62004325,"uuid":"557009049","full_name":"spaze/svg-icons-latte","owner":"spaze","description":"SVG Icons Custom Tag for Latte Templating System","archived":false,"fork":false,"pushed_at":"2025-11-24T00:30:43.000Z","size":28,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-24T02:28:02.160Z","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/spaze.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-10-24T23:29:14.000Z","updated_at":"2025-11-24T00:29:57.000Z","dependencies_parsed_at":"2025-08-18T13:13:09.442Z","dependency_job_id":"79062a1b-3178-4cd6-bc82-9a9a7abf284e","html_url":"https://github.com/spaze/svg-icons-latte","commit_stats":{"total_commits":6,"total_committers":1,"mean_commits":6.0,"dds":0.0,"last_synced_commit":"4db0f2318c9b0ec6e3bc9ed0c3a791489cec38c5"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/spaze/svg-icons-latte","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spaze%2Fsvg-icons-latte","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spaze%2Fsvg-icons-latte/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spaze%2Fsvg-icons-latte/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spaze%2Fsvg-icons-latte/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/spaze","download_url":"https://codeload.github.com/spaze/svg-icons-latte/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spaze%2Fsvg-icons-latte/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30325601,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T01:36:58.598Z","status":"online","status_checked_at":"2026-03-10T02:00:06.579Z","response_time":106,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-11-06T12:31:26.929Z","updated_at":"2026-03-10T05:03:44.258Z","avatar_url":"https://github.com/spaze.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SVG Icons Custom Tag for Latte Templating System\n\nThe custom `{icon}` tag will embed an SVG icon loaded from an external file.\n\n## Installation\n```\ncomposer require spaze/svg-icons-latte\n```\nRequires PHP 8.1+\n\nRegister the Nette extension, e.g.:\n```neon\nextensions:\n\tsvgIcons: Spaze\\SvgIcons\\NetteExtension\n```\nThis will also auto-register the Latte extension itself.\n\n## Configuration\n\n```neon\nsvgIcons:\n\ticonsDir: '../../node_modules/humbleicons/icons'\n\tcssClass: 'humbleicons'\n```\n- `iconsDir` is a path to a directory with SVG icon files, for example [Humbleicons](https://humbleicons.com/) by [@Zraly](https://twitter.com/zraly) (required)\n- `cssClass` defines a CSS class that will be added to the root `\u003csvg\u003e` element (optional)\n\n## Usage\n`{icon wifi}` will be replaced with a contents loaded from `wifi.svg` located in `iconsDir`.\n\nYou can also add extra CSS classes:\n`{icon wifi class =\u003e foo, class =\u003e bar}` will add additional CSS classes `foo` and `bar` to the root `\u003csvg\u003e` element.\n\nGiven the configuration above, the resulting tag would look like `\u003csvg class=\"humbleicons foo bar\" ...\u003e`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspaze%2Fsvg-icons-latte","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspaze%2Fsvg-icons-latte","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspaze%2Fsvg-icons-latte/lists"}