{"id":20737106,"url":"https://github.com/phpexpertsinc/neverbounce","last_synced_at":"2026-04-25T02:34:10.636Z","repository":{"id":57040345,"uuid":"198357113","full_name":"PHPExpertsInc/NeverBounce","owner":"PHPExpertsInc","description":"A quick and easy client for the NeverBounce API.","archived":false,"fork":false,"pushed_at":"2020-05-14T23:30:07.000Z","size":51,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-18T01:23:32.661Z","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":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PHPExpertsInc.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":"2019-07-23T05:19:08.000Z","updated_at":"2021-12-04T16:00:26.000Z","dependencies_parsed_at":"2022-08-24T00:50:56.647Z","dependency_job_id":null,"html_url":"https://github.com/PHPExpertsInc/NeverBounce","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PHPExpertsInc%2FNeverBounce","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PHPExpertsInc%2FNeverBounce/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PHPExpertsInc%2FNeverBounce/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PHPExpertsInc%2FNeverBounce/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PHPExpertsInc","download_url":"https://codeload.github.com/PHPExpertsInc/NeverBounce/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243023781,"owners_count":20223494,"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-17T06:13:33.732Z","updated_at":"2025-12-24T03:25:39.950Z","avatar_url":"https://github.com/PHPExpertsInc.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NeverBounce Client\n\n[![TravisCI](https://travis-ci.org/phpexpertsinc/NeverBounce.svg?branch=master)](https://travis-ci.org/phpexpertsinc/NeverBounce)\n[![Maintainability](https://api.codeclimate.com/v1/badges/aa7f52a1d1afbf383904/maintainability)](https://codeclimate.com/github/phpexpertsinc/NeverBounce/maintainability)\n[![Test Coverage](https://api.codeclimate.com/v1/badges/aa7f52a1d1afbf383904/test_coverage)](https://codeclimate.com/github/phpexpertsinc/NeverBounce/test_coverage)\n\nNeverBounce Client is a PHP Experts, Inc., Project aimed at easily accessing the NeverBounce API.\n\n## Installation\n\nVia Composer\n\n```bash\ncomposer require phpexperts/neverbounce\n```\n\n## Usage\n\n### Validate a single email address\n```php\n    // Build the client.\n    $client = NeverBounceClient::build();\n    \n    // Quickly determine if an email is valid or not.\n    $response = $client-\u003eisValid('theodore@phpexperts.pro');\n    // Output: true or false\n    \n    // Get details as to why an email is valid or not.\n    $emailValidationDTO = $client-\u003evalidate('doesnt-exist@gmail.com');\n\n    /* Output: \n    {\n      +\"status\": \"success\"\n      +\"result\": \"invalid\"\n      +\"flags\": array:4 [\n        0 =\u003e \"free_email_host\"\n        1 =\u003e \"has_dns\"\n        2 =\u003e \"has_dns_mx\"\n        3 =\u003e \"smtp_connectable\"\n      ]\n      +\"suggested_correction\": \"\"\n      +\"execution_time\": 309\n    }\n    */\n```\n\n### Bulk email address validation\n```php\n    // Build the client.\n    $client = NeverBounceClient::build();\n\n    // Create the job over at NeverBounce.\n    $jobId = $client-\u003ebulkVerify(['support@neverbounce.com', 'sales@phpexperts.pro']);\n    \n    // Periodicly check the job for results.\n    for ($a = 0; $a \u003c 30; ++$a) {\n        $bulkValidationDTO = $client-\u003echeckJob($jobId);\n        if (!$bulkValidationDTO) {\n            sleep(1);\n        }\n        \n        break;\n    }\n    \n    /** Output:\n    BulkValidationDTO [\n        'status'           =\u003e 'success',\n        'id'               =\u003e 2917483,\n        'job_status'       =\u003e 'complete',\n        'filename'         =\u003e 'bulk-1559703280.csv',\n        'created_at'       =\u003e Carbon: '2019-06-04 22:54:41',\n        'started_at'       =\u003e Carbon: '2019-06-04 22:54:42',\n        'finished_at'      =\u003e Carbon: '2019-06-04 22:54:47',\n        'total'            =\u003e ListStatsDTO [\n            'records'    =\u003e 7,\n            'billable'   =\u003e 5,\n            'processed'  =\u003e 7,\n            'valid'      =\u003e 3,\n            'invalid'    =\u003e 3,\n            'catchall'   =\u003e 1,\n            'disposable' =\u003e 0,\n            'unknown'    =\u003e 0,\n            'duplicates' =\u003e 1,\n            'bad_syntax' =\u003e 1,\n        ],\n        'bounce_estimate'  =\u003e 28.571428571429,\n        'percent_complete' =\u003e 100,\n        'execution_time'   =\u003e 12,\n    ]\n     */\n```\n\nAll DTOs are easily converted to an array, JSON, and are serializable.\nSee the [**SimpleDTO Project**](http://github.com/phpexpertsinc/SimpleDTO) for details.\n\n* To an array: `$listStats-\u003etoArray()`\n* To JSON: json_encode($listStats);\n* Serialize (as JSON): serialize($listStats);\n\n## Use cases\n\nPHPExperts\\NeverBounceClient  \n ✔ Can build itself  \n ✔ Will validate a good email  \n ✔ Will validate a catch all email  \n ✔ Will validate an invalid domain email  \n ✔ Will validate an invalid account email  \n ✔ Will detect free email hosts  \n ✔ Can determine if an email is good  \n ✔ Can determine if an email has an invalid domain  \n ✔ Can determine if an email has an invalid account  \n\nPHPExperts\\NeverBounceClient: Bulk Validations  \n ✔ Can submit a bulk validation request  \n ✔ Can poll job until completed  \n ✔ Will retrieve bulk validation results  \n\n## Testing\n\n```bash\n# Run without needing a NeverBounce key / not using up your free quota.\nphpunit --testdox --exclude-group=thorough\n\n# Run the full suite.\nphpunit --testdox \n```\n\n## Contributors\n\n[Theodore R. Smith](https://www.phpexperts.pro/]) \u003ctheodore@phpexperts.pro\u003e  \nGPG Fingerprint: 4BF8 2613 1C34 87AC D28F  2AD8 EB24 A91D D612 5690  \nCEO: PHP Experts, Inc.\n\n## License\n\nMIT license. Please see the [license file](LICENSE) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphpexpertsinc%2Fneverbounce","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphpexpertsinc%2Fneverbounce","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphpexpertsinc%2Fneverbounce/lists"}