{"id":19204206,"url":"https://github.com/jshmrtn/plug-dynamic","last_synced_at":"2025-05-12T15:45:24.130Z","repository":{"id":57534536,"uuid":"148490121","full_name":"jshmrtn/plug-dynamic","owner":"jshmrtn","description":":unlock: Allows registration of every Plug with dynamic configuration.","archived":false,"fork":false,"pushed_at":"2018-09-12T15:29:08.000Z","size":11,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-08T06:28:42.633Z","etag":null,"topics":["elixir","phoenix-framework","plug"],"latest_commit_sha":null,"homepage":null,"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/jshmrtn.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":"2018-09-12T14:04:48.000Z","updated_at":"2020-03-05T11:50:06.000Z","dependencies_parsed_at":"2022-09-26T18:21:34.095Z","dependency_job_id":null,"html_url":"https://github.com/jshmrtn/plug-dynamic","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jshmrtn%2Fplug-dynamic","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jshmrtn%2Fplug-dynamic/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jshmrtn%2Fplug-dynamic/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jshmrtn%2Fplug-dynamic/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jshmrtn","download_url":"https://codeload.github.com/jshmrtn/plug-dynamic/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253767590,"owners_count":21961139,"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","phoenix-framework","plug"],"created_at":"2024-11-09T13:06:36.821Z","updated_at":"2025-05-12T15:45:24.103Z","avatar_url":"https://github.com/jshmrtn.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Plug Dynamic\n\n[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/jshmrtn/plug-dynamic/master/LICENSE)\n[![Build Status](https://travis-ci.com/jshmrtn/plug-dynamic.svg?branch=master)](https://travis-ci.com/jshmrtn/plug-dynamic)\n[![Hex.pm Version](https://img.shields.io/hexpm/v/plug_dynamic.svg?style=flat)](https://hex.pm/packages/plug_dynamic)\n\u003c!-- [![InchCI](https://inch-ci.org/github/jshmrtn/plug-dynamic.svg?branch=master)](https://inch-ci.org/github/jshmrtn/plug-dynamic) --\u003e\n[![Coverage Status](https://coveralls.io/repos/github/jshmrtn/plug-dynamic/badge.svg?branch=master)](https://coveralls.io/github/jshmrtn/plug-dynamic?branch=master)\n\n\nAllows registration of every Plug with dynamic configuration.\n\n## Installation\n\nThe package can be installed by adding `plug_dynamic` to your list of\ndependencies in `mix.exs`:\n\n```elixir\ndef deps do\n  [\n    {:plug_dynamic, \"~\u003e 1.0\"}\n  ]\nend\n```\n\nDocumentation can be generated with [ExDoc](https://github.com/elixir-lang/ex_doc)\nand published on [HexDocs](https://hexdocs.pm). The docs can be found at\n[https://hexdocs.pm/plug_dynamic](https://hexdocs.pm/plug_dynamic).\n\n## Usage Example\n\nFor detailed instructions check the [documentation](https://hexdocs.pm/plug_dynamic).\n\n```elixir\ndefmodule Acme.Endpoint do\n  use Plug.Builder\n  use PlugDynamic\n\n  dynamic_plug Plug.IpWhitelist.IpWhitelistEnforcer, [reevaluate: :first_usage] do\n    Application.fetch_env!(:acme, Plug.IpWhitelist.IpWhitelistEnforcer)\n  end\nend\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjshmrtn%2Fplug-dynamic","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjshmrtn%2Fplug-dynamic","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjshmrtn%2Fplug-dynamic/lists"}