PHP code example of dybee / pageseed

1. Go to this page and download the library: Download dybee/pageseed 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/ */

    

dybee / pageseed example snippets

regexp
\Hyperf\View\RenderInterface::class => \Dybee\PageSeed\Render\Render::class


'engine' => HyperfViewEngine::class,
    'mode' => Mode::SYNC,
    'config' => [
        ....
        # pageSeed
        'pageSeed' => [
            # 开启或关闭
            'enable' => true,
            #开启选项
            'option' => [
                #移除 HTML 注释
                \Dybee\PageSeed\Middleware\RemoveComments::class,
                #移除 HTML 中不必要的空格
                \Dybee\PageSeed\Middleware\CollapseWhitespace::class
            ]
        ]
    ],
    ....