PHP code example of weiwait / dcat-smtp

1. Go to this page and download the library: Download weiwait/dcat-smtp library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

weiwait / dcat-smtp example snippets


    public function index(Content $content): Content
    {
        $tab = Tab::make();
        $tab->add('SMTP', new \Weiwait\DcatSmtp\Forms\SmtpConfig());

        return $content->title('配置')
            ->body($tab->withCard());
    }