{"id":19658752,"url":"https://github.com/flo0807/flagpack_elixir","last_synced_at":"2025-04-28T20:31:30.325Z","repository":{"id":65350169,"uuid":"585287548","full_name":"Flo0807/flagpack_elixir","owner":"Flo0807","description":"Flagpack provides 4x3 country flags as Phoenix component.","archived":false,"fork":false,"pushed_at":"2025-04-16T19:15:03.000Z","size":863,"stargazers_count":18,"open_issues_count":3,"forks_count":5,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-17T04:20:19.350Z","etag":null,"topics":["elixir","elixir-lang","phoenix-framework"],"latest_commit_sha":null,"homepage":"https://hex.pm/packages/flagpack","language":"Elixir","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/Flo0807.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}},"created_at":"2023-01-04T19:43:43.000Z","updated_at":"2025-04-16T19:14:41.000Z","dependencies_parsed_at":null,"dependency_job_id":"474e47e9-e053-46d6-a029-a441fb183e76","html_url":"https://github.com/Flo0807/flagpack_elixir","commit_stats":{"total_commits":32,"total_committers":2,"mean_commits":16.0,"dds":0.28125,"last_synced_commit":"c5ca13fe3b63058135adf3eb342e78c883b1b15e"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Flo0807%2Fflagpack_elixir","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Flo0807%2Fflagpack_elixir/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Flo0807%2Fflagpack_elixir/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Flo0807%2Fflagpack_elixir/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Flo0807","download_url":"https://codeload.github.com/Flo0807/flagpack_elixir/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251383722,"owners_count":21580926,"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":["elixir","elixir-lang","phoenix-framework"],"created_at":"2024-11-11T15:38:50.119Z","updated_at":"2025-04-28T20:31:30.318Z","avatar_url":"https://github.com/Flo0807.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Flagpack\n\n[![CI](https://github.com/Flo0807/flagpack_elixir/actions/workflows/ci.yml/badge.svg)](https://github.com/Flo0807/flagpack_elixir/actions/workflows/ci.yml)\n[![Hex](https://img.shields.io/hexpm/v/flagpack.svg)](https://hex.pm/packages/flagpack)\n[![Hex Docs](https://img.shields.io/badge/hex-docs-green)](https://hexdocs.pm/flagpack/Flagpack.html)\n\nFlagpack provides 4x3 country flags as `Phoenix.Component`. Based on [flagpack.xyz](https://flagpack.xyz/).\n\nThe generation of the flags is inspired by [heroicons_elixir](https://github.com/mveytsman/heroicons_elixir).\n\n## Installation\n\nThe package can be installed by adding `flagpack` to your list of dependencies in `mix.exs`:\n\n```elixir\ndef deps do\n  [\n    {:flagpack, \"~\u003e 0.5.0\"}\n  ]\nend\n```\n\n## Usage\n\nEach component accepts an optional class attribute in order to be able to add extra classes to the component.\n\n```eex\n\u003cFlagpack.usa /\u003e\n\u003cFlagpack.usa class=\"w-5 h-5\" /\u003e\n```\n\nYou may use the `Flagpack.flag/1` function and pass a flag name. This can be useful when you want to generate the flag name dynamically.\n\n```eex\n\u003cFlagpack.flag name={:usa}/\u003e\n\u003cFlagpack.flag name={:usa} class=\"w-5 h-5\" /\u003e\n```\n\nFor additional information and list of all flags see [the docs](https://hexdocs.pm/flagpack/Flagpack.html).\n\n## Naming\n\nThe name of a function for a flag is the country's three letter code (ISO 3166-1 alpha-3) in lowercase. You may search for flags here https://flagpack.xyz/docs/flag-index/.\n\nFor Andorra we use the country's two letter code (ISO 3166-1 alpha-2) `ad`, because we are not able to name the function `and`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflo0807%2Fflagpack_elixir","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflo0807%2Fflagpack_elixir","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflo0807%2Fflagpack_elixir/lists"}