{"id":23994727,"url":"https://github.com/insign/laravel-dumb-emails-validator","last_synced_at":"2026-02-10T00:31:30.303Z","repository":{"id":271272458,"uuid":"912908188","full_name":"insign/laravel-dumb-emails-validator","owner":"insign","description":"Validador de e-mails comumente digitados errados","archived":false,"fork":false,"pushed_at":"2025-01-10T21:13:58.000Z","size":55,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-20T04:44:30.841Z","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/insign.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":"2025-01-06T16:32:07.000Z","updated_at":"2025-01-10T21:13:46.000Z","dependencies_parsed_at":null,"dependency_job_id":"b576844d-d3e9-4e5d-a6b3-91984ca2a76d","html_url":"https://github.com/insign/laravel-dumb-emails-validator","commit_stats":null,"previous_names":["insign/laravel-dumb-emails-validator"],"tags_count":15,"template":false,"template_full_name":null,"purl":"pkg:github/insign/laravel-dumb-emails-validator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/insign%2Flaravel-dumb-emails-validator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/insign%2Flaravel-dumb-emails-validator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/insign%2Flaravel-dumb-emails-validator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/insign%2Flaravel-dumb-emails-validator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/insign","download_url":"https://codeload.github.com/insign/laravel-dumb-emails-validator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/insign%2Flaravel-dumb-emails-validator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29287365,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-09T21:57:15.303Z","status":"ssl_error","status_checked_at":"2026-02-09T21:57:11.537Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2025-01-07T21:19:54.003Z","updated_at":"2026-02-10T00:31:30.297Z","avatar_url":"https://github.com/insign.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Laravel Dumb Emails Validator\n\nThis package provides a custom validator for Laravel that checks for common typos in email domains.\n\n## Installation\n\n1.  Install the package via Composer:\n\n    ```bash\n    composer require insign/laravel-dumb-emails-validator\n    ```\n2.  Publish the config file (optional):\n\n    ```bash\n    php artisan vendor:publish --provider=\"insign\\DumbEmailsValidator\\DumbEmailsValidatorServiceProvider\"\n    ```\n\n## Usage\n\nUse the `dumb_email` rule in your validation rules:\n\n```php\nuse Illuminate\\Support\\Facades\\Validator;\n\n$validator = Validator::make($request-\u003eall(), [\n    'email' =\u003e 'required|email|dumb_email',\n]);\n\nif ($validator-\u003efails()) {\n    // Handle validation errors\n    dd($validator-\u003eerrors());\n}\n```\n\n## Customization\n\nYou can customize the list of domain corrections, and the error message in the `config/dumb-emails.php` file.\n\n```php\nreturn [\n    'corrections' =\u003e [\n        'gmal.com' =\u003e 'gmail.com',  // Add your custom corrections here\n        // ...\n    ],\n\n    'message' =\u003e \"Did you mean @:correct_domain?\" // Change the default message, you can use :attribute and :correct_domain placeholders\n];\n```\n\nThe `:attribute` placeholder will be replaced with the field name (e.g., \"email\"), and `:correct_domain` will be replaced with the suggested correct domain.\n```\n\n**6. `LICENSE`**\n\n```\n            DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE\n                    Version 2, December 2004\n\nCopyright (C) 2004 Sam Hocevar \u003csam@hocevar.net\u003e\n\nEveryone is permitted to copy and distribute verbatim or modified\ncopies of this license document, and changing it is allowed as long\nas the name is changed.\n\n            DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE\nTERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION\n\n0. You just DO WHAT THE FUCK YOU WANT TO.\n```\n\n**How to Use in Your Laravel Project**\n\n1.  **Create the extension directory:**  In your Laravel project's root, create a directory like `packages/your-vendor/laravel-dumb-emails-validator` (replace `your-vendor` with your vendor name, e.g., your GitHub username).\n2.  **Place the files:** Put the files from above (`src/`, `config/`, `README.md`, `LICENSE`) into the `laravel-dumb-emails-validator` directory.\n3.  **Composer:** In your project's main `composer.json`, add the following to the `autoload` section (under `psr-4`):\n\n    ```json\n    \"autoload\": {\n        \"psr-4\": {\n            \"App\\\\\": \"app/\",\n            // ... other autoload entries\n            \"insign\\\\DumbEmailsValidator\\\\\": \"packages/your-vendor/laravel-dumb-emails-validator/src\"\n        }\n    },\n    ```\n    And add in the `repositories` section:\n\n    ```json\n    \"repositories\": [\n        {\n            \"type\": \"path\",\n            \"url\": \"packages/your-vendor/laravel-dumb-emails-validator\"\n        }\n    ]\n    ```\n\n4.  **Install:** Run `composer require your-vendor/laravel-dumb-emails-validator`\n5.  **Publish Config:** Run `php artisan vendor:publish --provider=\"insign\\DumbEmailsValidator\\DumbEmailsValidatorServiceProvider\" --tag=\"config\"`\n6.  **Register Service Provider:** Add the provider to your `config/app.php`:\n\n    ```php\n    'providers' =\u003e [\n        // ...\n        insign\\DumbEmailsValidator\\DumbEmailsValidatorServiceProvider::class,\n    ],\n    ```\n\nNow you can use the `dumb_email` validation rule as shown in the `README.md`. Remember to adjust the vendor name and namespaces as needed if you change them.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finsign%2Flaravel-dumb-emails-validator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finsign%2Flaravel-dumb-emails-validator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finsign%2Flaravel-dumb-emails-validator/lists"}