{"id":16078463,"url":"https://github.com/romanzipp/laravel-validator-pizza","last_synced_at":"2025-03-17T17:30:30.311Z","repository":{"id":30103641,"uuid":"123917138","full_name":"romanzipp/Laravel-Validator-Pizza","owner":"romanzipp","description":"⚠️ This package has been renamed","archived":false,"fork":false,"pushed_at":"2023-09-25T14:17:09.000Z","size":43,"stargazers_count":19,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-28T01:49:21.769Z","etag":null,"topics":["disposable","emails","laravel","php","php7","showcase"],"latest_commit_sha":null,"homepage":"https://www.mailcheck.ai/","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/romanzipp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.md","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},"funding":{"github":"romanzipp"}},"created_at":"2018-03-05T12:36:20.000Z","updated_at":"2024-09-28T02:10:48.000Z","dependencies_parsed_at":"2022-08-07T15:00:58.438Z","dependency_job_id":"91b00270-41cc-49ae-a480-134d4dd44cd3","html_url":"https://github.com/romanzipp/Laravel-Validator-Pizza","commit_stats":{"total_commits":52,"total_committers":4,"mean_commits":13.0,"dds":"0.11538461538461542","last_synced_commit":"57f3217d4be5822982bf04c3809afd32b0d0740e"},"previous_names":[],"tags_count":21,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/romanzipp%2FLaravel-Validator-Pizza","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/romanzipp%2FLaravel-Validator-Pizza/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/romanzipp%2FLaravel-Validator-Pizza/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/romanzipp%2FLaravel-Validator-Pizza/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/romanzipp","download_url":"https://codeload.github.com/romanzipp/Laravel-Validator-Pizza/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243871888,"owners_count":20361379,"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":["disposable","emails","laravel","php","php7","showcase"],"created_at":"2024-10-09T10:12:57.977Z","updated_at":"2025-03-17T17:30:30.020Z","avatar_url":"https://github.com/romanzipp.png","language":"PHP","funding_links":["https://github.com/sponsors/romanzipp"],"categories":[],"sub_categories":[],"readme":"\u003e # ⚠️ This package has been renamed\n\u003e\n\u003e You can find the new project at [**romanzipp/Laravel-MailCheck**](https://github.com/romanzipp/Laravel-MailCheck). \n\u003e This repository will not get any updates anymore.\n\n# Laravel Validator.Pizza\n\n[![Latest Stable Version](https://img.shields.io/packagist/v/romanzipp/laravel-validator-pizza.svg?style=flat-square)](https://packagist.org/packages/romanzipp/laravel-validator-pizza)\n[![Total Downloads](https://img.shields.io/packagist/dt/romanzipp/laravel-validator-pizza.svg?style=flat-square)](https://packagist.org/packages/romanzipp/laravel-validator-pizza)\n[![License](https://img.shields.io/packagist/l/romanzipp/laravel-validator-pizza.svg?style=flat-square)](https://packagist.org/packages/romanzipp/laravel-validator-pizza)\n[![GitHub Build Status](https://img.shields.io/github/actions/workflow/status/romanzipp/Laravel-Validator-Pizza/tests.yml?label=tests\u0026branch=master\u0026style=flat-square)](https://github.com/romanzipp/Laravel-Validator-Pizza/actions)\n\nA Laravel Wrapper for the [Validator.pizza](https://www.validator.pizza) disposable email API made by [@tompec](https://github.com/tompec).\n\n## Features\n\n- Query the Validator.Pizza API for disposable Emails \u0026 Domains\n- Cache responses\n- Store requested domains in database\n\n## Installation\n\n```\ncomposer require romanzipp/laravel-validator-pizza\n```\n\n## Configuration\n\nCopy configuration to your project:\n\n```\nphp artisan vendor:publish --provider=\"romanzipp\\ValidatorPizza\\Providers\\ValidatorPizzaProvider\"\n```\n\nRun the migration:\n\n```\nphp artisan migrate\n```\n\nChange the config to your desired settings:\n\n```php\nreturn [\n\n    // Database storage enabled\n    'store_checks' =\u003e true,\n\n    // Database table name\n    'checks_table' =\u003e 'validator_pizza',\n\n    // Cache enabled (recommended)\n    'cache_checks' =\u003e true,\n\n    // Duration in minutes to keep the query in cache\n    'cache_duration' =\u003e 30,\n\n    // Determine which decision should be given if the rate limit is exceeded [allow / deny]\n    'decision_rate_limit' =\u003e 'allow',\n\n    // Determine which decision should be given if the domain has no MX DNS record [allow / deny]\n    'decision_no_mx' =\u003e 'allow',\n\n    // Makes use of the API key\n    'key' =\u003e env('VALIDATOR_PIZZA_KEY'),\n];\n```\n\n## Usage\n\n#### Controller Validation\n\n```php\nnamespace App\\Http\\Controllers;\n\nuse Illuminate\\Http\\Request;\n\nclass HomeController extends Controller\n{\n    public function handleEmail(Request $request)\n    {\n        $request-\u003evalidate([\n            'email' =\u003e 'required|email|disposable_pizza',\n        ]);\n\n        // ...\n    }\n}\n```\n\n#### Standalone\n\n```php\n$checker = new \\romanzipp\\ValidatorPizza\\Checker;\n\n// Validate Email\n$validEmail = $checker-\u003eallowedEmail('ich@ich.wtf');\n\n// Validate Domain\n$validDomain = $checker-\u003eallowedDomain('ich.wtf');\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fromanzipp%2Flaravel-validator-pizza","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fromanzipp%2Flaravel-validator-pizza","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fromanzipp%2Flaravel-validator-pizza/lists"}