電子メール アドレスをデータベースに追加するのは通常のことです。電子メール アドレスは特別な形式です。多くの場合、追加する前に検証する必要があります。電子メール アドレスが有効かどうかを検証する必要がある場合、このライブラリが使用されます。遊ぶ。
メールクラスライブラリ54852018-01-15
<?php
namespace Stampie\Adapter;
use Buzz\Browser;
use Buzz\Message\Form\FormUpload;
use Buzz\Message\RequestInterface;
class Buzz implements AdapterInterface
{
/**
* @var Browser $browser
*/
protected $browser;
/**
* @param Browser $browser
*/
public function __construct(Browser $browser)
{
$this->browser = $browser;
}
/**
* @return Browser
*/
public function getBrowser()
{
return $this->browser;
}これは電子メール サービス用の PHP ライブラリです。必要な友人はダウンロードして使用できます。
メールクラスライブラリ61442018-01-04
<?php
/**
* Simple autoloader that follow the PHP Standards Recommendation #0 (PSR-0)
* @see https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-0.md for more informations.
*
* Code inspired from the SplClassLoader RFC
* @see https://wiki.php.net/rfc/splclassloader#example_implementation
*/
spl_autoload_register(function ($className) {
$className = ltrim($className, '\');
$fileName = '';
if ($lastNsPos = strripos($className, '\')) {
$namespace = substr($className, 0, $lastNsPos);
$className = substr($className, $lastNsPos + 1);
$fileName = str_replace('\', DIRECTORY_SEPARATOR, $namespace) . DIRECTORY_SEPARATOR;
}
$fileName = __DIR__ . DIRECTORY_SEPARATOR . $fileName . $className . '.php';
if (file_exists($fileName)) {
require $fileName;
return true;
}
return false;
});これは PHP 電子メール返信パーサー ライブラリです。必要な友人はダウンロードして使用できます。
メールクラスライブラリ51162018-01-04
<?php
class HasMxTest extends PHPUnit_Framework_TestCase
{
/**
* Set up for tests in this file.
*
* @access private
*/
private function setupTest()
{
$this->validator = new \EmailValidator\Validator();
}
/**
* Test hasMx
*
* @cover \EmailValidator\Validator::hasMx
*/
public function testHasMx()
{
$this->setupTest();
// Not an email
$this->assertNull(
$this->validator->hasMx('example.com')
);
// No Records
$this->assertFalse(
$this->validator->hasMx('example@example.com')
);
// Records
$this->assertTrue(
$this->validator->hasMx('example@google.com')
);
$this->assertTrue(
$this->validator->hasMx('example@yahoo.com')
);
}
}これは PHP 電子メール検証ライブラリです。必要な友人はダウンロードして使用できます
メールクラスライブラリ53172018-01-04
電子メール テンプレートのインライン CSS ライブラリ
メールクラスライブラリ45242017-12-05
メールクラスライブラリ41542017-12-05
メールクラスライブラリ46192017-12-05
メールクラスライブラリ45992017-12-05
SendGrid、PostMark、MailGun、Mandrill などの電子メール サービスのライブラリ
メールクラスライブラリ58572017-12-05
添付ファイルを含む電子メール クラスの PHP 実装例
メールクラスライブラリ50642017-11-24
PHPはメールを受信しますreceiveMailクラス
メールクラスライブラリ91122017-11-13
PHP 電子メール送信クラスは、複数の受信者、複数の CC、複数の秘密 CC、添付ファイル付きの電子メールを含む、プレーン テキストの電子メールと HTML 形式の電子メールの送信をサポートします。
メールクラスライブラリ64942017-11-02