{"id":20779241,"url":"https://github.com/bolt/forms-extra-recipients","last_synced_at":"2025-03-11T22:19:08.322Z","repository":{"id":53882004,"uuid":"301754343","full_name":"bolt/forms-extra-recipients","owner":"bolt","description":"An extension of bolt/forms that allows you to add extra recipients to forms, with conditions.","archived":false,"fork":false,"pushed_at":"2020-10-27T10:59:36.000Z","size":12,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-02-18T16:49:31.295Z","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/bolt.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":"2020-10-06T14:27:41.000Z","updated_at":"2023-09-25T06:27:11.000Z","dependencies_parsed_at":"2022-09-05T07:10:50.827Z","dependency_job_id":null,"html_url":"https://github.com/bolt/forms-extra-recipients","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bolt%2Fforms-extra-recipients","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bolt%2Fforms-extra-recipients/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bolt%2Fforms-extra-recipients/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bolt%2Fforms-extra-recipients/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bolt","download_url":"https://codeload.github.com/bolt/forms-extra-recipients/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243119639,"owners_count":20239339,"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-11-17T13:26:49.712Z","updated_at":"2025-03-11T22:19:08.297Z","avatar_url":"https://github.com/bolt.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bolt Forms Extra Recipients Extension\n\nAn extension of bolt/forms that allows you to add extra recipients to forms.\n\nInstallation:\n\n```bash\ncomposer require bolt/forms-extra-recipients\n```\n\n## Setting up\n\nSuppose your `contact` form has a `department` field like so:\n\n```yaml\n        department:\n            type: choice\n            options:\n                required: true\n                choices: { 'sales' : 'sales', 'accounts': 'accounts' }\n```\n\nDepending on what the user selects, different people will receive this form.\n\nTo do this, go to `config/extensions/bolt-boltformsextrarecipients.yaml` and put the following in your configuration:\n\n# Reference extension configuration file\n\nactions:\n  send_contact_submissions:\n    form: contact\n    to:\n      field:\n        name: department\n        values:\n          sales: [ dan@arb.com, casey@arb.com, bob@twokings.nl, sammar@twokings.nl ]\n          accounts: [ james@arb.com, anne@arb.com ]\n\nBased on the value of the `department` field, the form will go _either_ to the people from Sales, or Accounts.\n\n## Running PHPStan and Easy Codings Standard\n\nFirst, make sure dependencies are installed:\n\n```\nCOMPOSER_MEMORY_LIMIT=-1 composer update\n```\n\nAnd then run ECS:\n\n```\nvendor/bin/ecs check src\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbolt%2Fforms-extra-recipients","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbolt%2Fforms-extra-recipients","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbolt%2Fforms-extra-recipients/lists"}