{"id":51287862,"url":"https://github.com/dennym/phosphor_icons_ex","last_synced_at":"2026-06-30T07:32:07.592Z","repository":{"id":362174630,"uuid":"1127756997","full_name":"dennym/phosphor_icons_ex","owner":"dennym","description":"Phoenix components for Phosphor icons!","archived":false,"fork":false,"pushed_at":"2026-01-06T19:07:48.000Z","size":2984,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-03T03:07:50.738Z","etag":null,"topics":["elixir","phosphor-icons","phosphoricons"],"latest_commit_sha":null,"homepage":"","language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dennym.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":"2026-01-04T14:37:46.000Z","updated_at":"2026-04-30T00:51:31.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/dennym/phosphor_icons_ex","commit_stats":null,"previous_names":["dennym/phosphor_icons_ex"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/dennym/phosphor_icons_ex","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dennym%2Fphosphor_icons_ex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dennym%2Fphosphor_icons_ex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dennym%2Fphosphor_icons_ex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dennym%2Fphosphor_icons_ex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dennym","download_url":"https://codeload.github.com/dennym/phosphor_icons_ex/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dennym%2Fphosphor_icons_ex/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34957626,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-30T02:00:05.919Z","response_time":92,"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":["elixir","phosphor-icons","phosphoricons"],"created_at":"2026-06-30T07:32:06.897Z","updated_at":"2026-06-30T07:32:07.586Z","avatar_url":"https://github.com/dennym.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PhosphorIconsEx\n\n[![hex.pm](https://img.shields.io/hexpm/v/phosphor_icons_ex.svg)](https://hex.pm/packages/phosphor_icons_ex)\n[![docs](https://img.shields.io/badge/hex-docs-blue.svg)](https://hexdocs.pm/phosphor_icons_ex)\n[![ci](https://github.com/dennym/phosphor_icons_ex/actions/workflows/ci.yml/badge.svg)](https://github.com/dennym/phosphor_icons_ex/actions/workflows/ci.yml)\n[![Hex Downloads](https://img.shields.io/hexpm/dt/phosphor_icons_ex)](https://hex.pm/packages/phosphor_icons_ex)\n\nThis package provides an easy way to use [Phosphor](https://phosphoricons.com/) icons in your Phoenix.LiveView applications. Many existing Elixir packages are either outdated or take an opinionated, component-based approach; this package instead returns the SVGs from functions so you can use them in your own custom components or directly in EEx/HEEx templates.\n\n\u003e Phosphor is a flexible icon family for interfaces, diagrams, presentations — whatever, really.\n\u003e * 1,248 icons and counting\n\u003e * 6 weights: Thin, Light, Regular, Bold, Fill, and Duotone\n\u003e * Designed at 16 x 16px to read well small and scale up big\n\u003e * Raw stroke information retained to fine-tune the style\n\nYou can find the original repo [here](https://github.com/phosphor-icons/homepage#phosphor-icons).\n\n\u003e Note: As this lib is dealing with over 9000 icons the compile time may be longer than usual.\n\n## Installation\n\n\u003e **Warning:** This library only supports phoenix_live_view v1.0+\n\nAdd `phosphor_icons_ex` to the list of dependencies in `mix.exs`:\n\n```elixir\ndef deps do\n  [\n    {:phosphor_icons_ex, \"~\u003e 2.0\"}\n  ]\nend\n```\n\nThen run `mix deps.get`.\n\n## Usage\n\n### With Heex\n\n```elixir\n\u003cPhosphorIconsEx.armchair class=\"h-4 w-4\" aria-hidden /\u003e\n\n\u003cPhosphorIconsEx.armchair_thin class=\"h-4 w-4\" aria-hidden /\u003e\n\u003cPhosphorIconsEx.armchair_light class=\"h-4 w-4\" aria-hidden /\u003e\n\u003cPhosphorIconsEx.armchair_bold class=\"h-4 w-4\" aria-hidden /\u003e\n\u003cPhosphorIconsEx.armchair_fill class=\"h-4 w-4\" aria-hidden /\u003e\n\u003cPhosphorIconsEx.armchair_duotone class=\"h-4 w-4\" aria-hidden /\u003e\n```\n\nwhere `armchair` refers to a specific icon name and the `_bold` for the specific type.\n\n\u003e Icon names can be retrieved from `PhosphorIconsEx.icon_names/0`\n\u003e Icons can be searched with `PhosphorIconsEx.search_icons/1`\n\n### In your own custom components\n\n```elixir\n\ndefmodule YourIconComponent do\n  use Phoenix.Component\n\n  attr :class, :string, default: \"\"\n  attr :icon, :string\n\n  def icon(%{icon: icon} = assigns) do\n    assigns = Map.delete(assigns, :icon)\n\n    ~H\"\"\"\n    {apply(PhosphorIconsEx, String.to_atom(@name), [assigns])}\n    \"\"\"\n  end\nend\n\n\u003c.icon name=\"armchair\" class=\"\" /\u003e\n```\n\n## Thanks\n* phosphor for the icons licensed under [MIT](https://github.com/phosphor-icons/homepage/blob/master/LICENSE)\n* [@zoedsoupe](https://github.com/zoedsoupe) which heavily inspired this package with [lucide_icons](https://github.com/zoedsoupe/lucide_icons/) licensed under [BSD](https://github.com/zoedsoupe/lucide_icons/blob/main/LICENSE)\n\n## Disclaimer\nThis package is not affiliated with Phosphor Icons.\n\nThe package version is always in parity with the @phosphor-icons/core version.\n\nThis repo is using the Phosphor Icons Core repository as a source: @phosphor-icons/core \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdennym%2Fphosphor_icons_ex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdennym%2Fphosphor_icons_ex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdennym%2Fphosphor_icons_ex/lists"}