check email php | Email verification in PHP, incl. Cyrillic, Russian domains. Convert рф and рус

Опубликовано: 03 Март 2026
на канале: Inverser Pro
216
4

#php #mail #check
With the help of this video you will learn how you can check the existence of an email address. The MX record of the domain is checked, the presence of an email mask, conversion is available for the safe use of data, as well as рф conversion — xn--p1ai, рус ­— xn--p1acf

Code here:
https://inverser.pro/217

Timestamps:
00:00 What's what?
01:18 Why use PHP OOP approach?
02:16 What classes are used for validation?
03:00 Which path has been traveled before writing the test class?
04:16 What exactly does the class check for?
06:09 Testing - results
10:39 It is important to remove the @ sign if there are more than 1
14:15 How to expand the list of verified domain zones?
15:53 ​​The second step is writing your own PHP Email validation test class
16:42 The third step - A complete PHP Email Validation class
18:15 Using composer to create PHP OOP code and use PHP classes
19:30 Surprises when using composer
20:15 Finding an error - why composer is not initialized
20:28 Error found... Let's start with composer
21:05 Transfer of code from DEMO to DEMO 2 (imitation of your actions)
22:54 fatal error: Uncaught Error: Class "?" not found (remedy)
25:39 Newly connected code is executed correctly
26:07 Change the logic to one closer to real needs (new EmailCheckerClass)→check('[email protected]');