{"id":20677370,"url":"https://github.com/manuelgeek/phxtestbed","last_synced_at":"2026-06-23T08:31:06.316Z","repository":{"id":43975634,"uuid":"247818678","full_name":"manuelgeek/PhxTestBed","owner":"manuelgeek","description":"This is a repo to test different packages implementations, including my own packages.","archived":false,"fork":false,"pushed_at":"2023-02-10T08:41:56.000Z","size":6101,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-10T18:55:02.017Z","etag":null,"topics":["africastalking-api","daraja-api","mpes","phoenix","sms","ussd"],"latest_commit_sha":null,"homepage":null,"language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/manuelgeek.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2020-03-16T21:20:31.000Z","updated_at":"2020-04-28T11:48:36.000Z","dependencies_parsed_at":"2025-01-17T15:04:07.243Z","dependency_job_id":null,"html_url":"https://github.com/manuelgeek/PhxTestBed","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/manuelgeek/PhxTestBed","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manuelgeek%2FPhxTestBed","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manuelgeek%2FPhxTestBed/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manuelgeek%2FPhxTestBed/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manuelgeek%2FPhxTestBed/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/manuelgeek","download_url":"https://codeload.github.com/manuelgeek/PhxTestBed/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manuelgeek%2FPhxTestBed/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34682622,"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-23T02:00:07.161Z","response_time":65,"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":["africastalking-api","daraja-api","mpes","phoenix","sms","ussd"],"created_at":"2024-11-16T21:15:23.265Z","updated_at":"2026-06-23T08:31:06.293Z","avatar_url":"https://github.com/manuelgeek.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\u003cimg src=\"https://magak.me/assets/images/Geek-logo.png\" width=\"150\"\u003e\u003c/p\u003e\n\n# Phoenix TestBed\nThis is a Application to show how to use various Phoenix packages from My Packages and the Elixir Kenya community\n\n## Configutation\nTo start your Phoenix server:\n\n  * Install dependencies with `mix deps.get`\n  * Create and migrate your database with `mix ecto.setup`\n  * Install Node.js dependencies with `cd assets \u0026\u0026 npm install`\n  * Start Phoenix endpoint with `mix phx.server`\n\nNow you can visit [`localhost:4000`](http://localhost:4000) from your browser.\n\n# Included packages\n1. PhxIzitoast\n2. AtEx - Africastalking\n    - SMS \n    - USSD\n3. Mpesa Elixir\n\n\n# Packages \n## 1. [PhxIzitoast](https://github.com/manuelgeek/phx_izitoast)\nThis is a Phoenix Elixir IziToast Notification wrapper. https://izitoast.marcelodolza.com, A JavaScript Notifications Toast Library.\n\n[Package documentation](https://hex.pm/packages/phx_izitoast)\n\n### Usage\nNavigate to [localhost](http://localhost:4000) to view the toasts\nCode sample found at `/controllers/page_controller.ex` \n``` elixir \n  def index(conn, _params) do\n    conn\n    |\u003e PhxIzitoast.success(\"Success\", \"This is a Success message\", position: \"center\")\n    |\u003e PhxIzitoast.warning(\"Warning\", \"This is a warning Message\", position: \"bottomRight\")\n    |\u003e PhxIzitoast.error(\"Error\", \"This is an Error\", position: \"bottomLeft\")\n    |\u003e PhxIzitoast.info(\"Notice\", \"This is a Notice\", position: \"topRight\")\n    |\u003e PhxIzitoast.message(\"I am a  Message, Peace\")\n    |\u003e render(\"index.html\")\n  end\n  ```\n----------\n\n## 2. [AtEx - dev](https://github.com/beamkenya/africastalking-elixir)\nAn API Wrapper for the Africas Talking API \nThe wrapper is still under dev, \n\n[Contribute](https://github.com/beamkenya/africastalking-elixir)\n\n### SMS \n#### Sending SMS \n\n``` elixir\niex\u003e AtEx.send_sms(%{to: \"+254724540039\",     message: \"Yes Bana\"})\n{:ok,\n        %{\n          \"SMSMessageData\" =\u003e %{\n          \"Message\" =\u003e \"Sent to 1/1 Total Cost: ZAR 0.1124\",\n          \"Recipients\" =\u003e [\n          %{\n           \"cost\" =\u003e \"KES 0.8000\",\n           \"messageId\" =\u003e \"ATXid_96e52a761a82c1bad58e885109224aad\",\n           \"number\" =\u003e \"+254724540039\",\n           \"status\" =\u003e \"Success\",\n           \"statusCode\" =\u003e 101\n          }\n          ]\n        }\n      }}\n\n```\n----------\n\n### USSD \nTo generate the response, you can use the function `AtEx.USSD.build_response/1` or `AtEx.USSD.build_response/2`.\n``` elixir \n iex\u003e AtEx.USSD.build_response(\"What do you want to order\", [\"Chips \u0026 Sausage\", \"Burger \u0026 Chips\", \"Rice \u0026 beans\"])\n{:ok, \"CON What do you want to order\\n1. Chips \u0026 Sausage\\n2. Burger \u0026 Chips\\n3. Rice \u0026 beans\" }\n```\nLook at `/controllers/api/ussd_controller.ex` for a sample USSD app\n[link](https://github.com/manuelgeek/PhxTestBed/blob/master/lib/toast_web/controllers/api/ussd_controller.ex)\n\n----------\n\n## 3. [Mpesa Elixir](https://github.com/manuelgeek/mpesa_elixir)\nThis is wrapper for Daraja Mpesa STK implementation(Lipa na Mpesa Online)\n\n[Online Documentation](https://www.hex.pm/packages/mpesa)\n\n### Usage\n\n``` elixir \n    iex\u003e Mpesa.make_request(10, \"254724540039\", \"reference\", \"description\")\n      {:ok,\n        %{\n        \"CheckoutRequestID\" =\u003e \"ws_CO_010320202011179845\",\n        \"CustomerMessage\" =\u003e \"Success. Request accepted for processing\",\n        \"MerchantRequestID\" =\u003e \"25558-10595705-4\",\n        \"ResponseCode\" =\u003e \"0\",\n        \"ResponseDescription\" =\u003e \"Success. Request accepted for processing\"\n        }}\n\n        {:error, \"Invalid Access Token\"}\n```\n\n----------\n\n## About Me\n\n[Magak Emmanuel](https://magak.me)\n\n----------\n\n## License\n\n[![license](https://img.shields.io/github/license/mashape/apistatus.svg?style=for-the-badge)](#)\n\n[![Open Source Love](https://badges.frapsoft.com/os/v2/open-source-200x33.png?v=103)](#)\n\n\nHappy coding, Star before Fork 😊💪💯\n\n----------\n\n\n## Learn more\n\n  * Official website: http://www.phoenixframework.org/\n  * Guides: https://hexdocs.pm/phoenix/overview.html\n  * Docs: https://hexdocs.pm/phoenix\n  * Mailing list: http://groups.google.com/group/phoenix-talk\n  * Source: https://github.com/phoenixframework/phoenix\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanuelgeek%2Fphxtestbed","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmanuelgeek%2Fphxtestbed","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanuelgeek%2Fphxtestbed/lists"}