{"id":16465593,"url":"https://github.com/peterfox/hieroglyph","last_synced_at":"2025-06-16T16:09:56.255Z","repository":{"id":57038160,"uuid":"57128271","full_name":"peterfox/hieroglyph","owner":"peterfox","description":"A package to simplify changing between different icon sets","archived":false,"fork":false,"pushed_at":"2016-05-03T14:49:30.000Z","size":7,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-27T18:35:56.567Z","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/peterfox.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-04-26T12:58:38.000Z","updated_at":"2016-06-07T22:48:17.000Z","dependencies_parsed_at":"2022-08-23T23:30:52.408Z","dependency_job_id":null,"html_url":"https://github.com/peterfox/hieroglyph","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/peterfox/hieroglyph","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterfox%2Fhieroglyph","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterfox%2Fhieroglyph/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterfox%2Fhieroglyph/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterfox%2Fhieroglyph/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/peterfox","download_url":"https://codeload.github.com/peterfox/hieroglyph/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterfox%2Fhieroglyph/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260194624,"owners_count":22972637,"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-10-11T11:34:33.635Z","updated_at":"2025-06-16T16:09:56.233Z","avatar_url":"https://github.com/peterfox.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Hieroglyph\n==========\n\nA simple package for PHP making it easier to switch around the icon sets you use in your markup. There's currently a \nlot of different icon sets and changing between them can be a pain. The idea of Hieroglyph is that you can map the \ncorrect icons in your application to the different sets and even apply modifiers without fixing your mark up to using \none icon set.\n\nInstall\n-------\n\nYou can install via composer\n\n```\ncomposer require peterfox/hieroglyph\n```\n\n\nUsing Hieroglyph with Laravel\n-----\n\nAdd the Service Provider\n\n```\nHieroglyph\\Laravel\\HieroglyphServiceProvider::class,\n```\n\nAdd the Facade\n\n```\n'Hiero' =\u003e Hieroglyph\\Laravel\\HieroglyphFacade::class,\n```\n\nPublish the config using artisan\n\n```\nphp artisan vendor:publish\n```\n\nEdit the hierogplyph config\n\n```\n\u003c?php\n\nreturn [\n\n    'default' =\u003e 'font-awesome',\n\n    'font-awesome' =\u003e [\n        'template' =\u003e '\u003ci class=\"fa %s\" aria-hidden=\"true\"\u003e\u003c/i\u003e',\n        'prefix' =\u003e 'fa-',\n        'icons' =\u003e [\n            // Add icons here .e.g. 'create' =\u003e 'pencil' or 'loading' =\u003e 'spinner'\n        ],\n        'modifiers' =\u003e [\n            'spin' =\u003e 'spin',\n            'large' =\u003e 'lg',\n            'twoX' =\u003e '2x',\n            'threeX' =\u003e '3x',\n            'fourX' =\u003e '4x',\n            'fiveX' =\u003e '5x',\n            'fixedWidth'    =\u003e 'fw',\n            'button'        =\u003e 'btn',\n        ]\n    ],\n];\n```\n\nUsing the Facade\n\n```\nHiero::glyph('twitter');\nHiero::glyph('instagram')-\u003elarge();\nHiero::glyph('loading')-\u003elarge()-\u003espin();\nHiero::glyph('loading')-\u003ebutton()-\u003espin();\nHiero::glyphDecision(true, 'ok', 'wrong')-\u003elarge();\n```\n\nUsing the Facade in Blade\n\n```\n{!! Hiero::glyph('facebook') !!}\n{!! Hiero::glyphDecision(true, 'ok', 'wrong')-\u003elarge() !!}\n```\n\nContribute\n----------\n\nCurrently I've only supported what I've personally needed. I'd love to make a twig extension and a Symphony bundle but \ncurrently it's no a requirement for me. I can't really take any requests or suggestions but if you want to do the work \nand make a pull request I'll do my best to add it.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeterfox%2Fhieroglyph","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpeterfox%2Fhieroglyph","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeterfox%2Fhieroglyph/lists"}