{"id":20499808,"url":"https://github.com/sherlockode/user-confirmation-bundle","last_synced_at":"2025-08-21T16:26:15.291Z","repository":{"id":29244424,"uuid":"113031375","full_name":"sherlockode/user-confirmation-bundle","owner":"sherlockode","description":"Symfony Bundle for the confirmation process of a user registration","archived":false,"fork":false,"pushed_at":"2022-08-31T15:50:47.000Z","size":56,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-02-17T02:04:55.680Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/sherlockode.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":"2017-12-04T10:55:25.000Z","updated_at":"2024-07-10T12:08:00.000Z","dependencies_parsed_at":"2022-07-13T02:30:33.402Z","dependency_job_id":null,"html_url":"https://github.com/sherlockode/user-confirmation-bundle","commit_stats":null,"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sherlockode%2Fuser-confirmation-bundle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sherlockode%2Fuser-confirmation-bundle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sherlockode%2Fuser-confirmation-bundle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sherlockode%2Fuser-confirmation-bundle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sherlockode","download_url":"https://codeload.github.com/sherlockode/user-confirmation-bundle/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242090359,"owners_count":20070138,"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-15T18:18:32.950Z","updated_at":"2025-03-05T19:27:40.542Z","avatar_url":"https://github.com/sherlockode.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"SherlockodeUserConfirmationBundle\n=================================\n\nThe SherlockodeUserConfirmationBundle provides a way to create a user account that will stay disabled until the\nuser visits a confirmation link sent by email and sets a password.\n\n## Prerequisites\n\nThis version of the bundle requires Symfony 3.* or 4.* and FOSUserBundle\n\n## Installation\n\n### Step 1: Install SherlockodeUserConfirmationBundle\n\nInstall with [Composer](https://getcomposer.org/):\n\n```bash\n$ composer require sherlockode/user-confirmation-bundle\n```\n\nEnable the bundle in the Symfony kernel:\n\n```php\n\u003c?php\n// config/bundles.php\nreturn [\n    // ...\n    Sherlockode\\UserConfirmationBundle\\SherlockodeUserConfirmationBundle::class =\u003e ['all' =\u003e true],\n];\n```\n\n### Step 2: Configure the bundle\n\nImport the routing in `config/routes.yaml`\n\n```yaml\nsherlockode_user_confirmation:\n    resource: \"@SherlockodeUserConfirmationBundle/Resources/config/routing.xml\"\n```\n\nThen create the configuration in `config/packages/sherlockode_user_confirmation.yaml`\n\n```yaml\nsherlockode_user_confirmation:\n    from_email: no-reply@awesome.com                # From email address\n    from_name: John Doe                             # Name of the expeditor\n    email_subject: Please confirm your account      # The subject for the confirmation email (optional)\n    redirect_after_confirmation: admin_dashboard    # The route name to redirect the user after confirmation\n```\n\n## Customization\n\n### Extend the confirmation form template\n\nTo extend the confirmation form template, just update your `sherlockode_user_confirmation.yaml`\n\n```yaml\nsherlockode_user_confirmation:\n    templates:\n        confirmation_form: 'Registration/confirmation.html.twig'\n```\n\nThen in your template, add a placeholder for the block `sherlockode_user_confirmation_form`\n\n```twig\n\u003c!DOCTYPE html\u003e\n\u003chtml\u003e\n\u003chead\u003e\n    \u003cmeta charset=\"UTF-8\" /\u003e\n\u003c/head\u003e\n\u003cbody\u003e\n    \u003ch1\u003eMy awesome app !\u003c/h1\u003e\n    \u003cdiv\u003e\n        {# The form will be render here #}\n        {% block sherlockode_user_confirmation_form %}{% endblock %}\n    \u003c/div\u003e\n\u003c/body\u003e\n\u003c/html\u003e\n```\n\n### Extend the confirmation email\n\nIf you want to extend the confirmation email template, you should add the path in your `config.yml`\n\n```yaml\nsherlockode_user_confirmation:\n    templates:\n        confirmation_email: 'Email/registration.html.twig'\n```\n\nIn this template, you have access to the `user` object, and to a variable named `confirmationUrl` which contains the url to access the confirmation form.\n\n### Send confirmation email\n\nIf you want to send the confirmation again for an existing user, use the following link : \n\n```twig\n\u003ca href=\"{{ path('sherlockode_user_confirmation_send_confirmation', {id: userId}) }}\"\u003e\n    Send confirmation email\n\u003c/a\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsherlockode%2Fuser-confirmation-bundle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsherlockode%2Fuser-confirmation-bundle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsherlockode%2Fuser-confirmation-bundle/lists"}