PHP code example of kingbes / pebview
1. Go to this page and download the library: Download kingbes/pebview 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/ */
kingbes / pebview example snippets
// 根据你的实际情况,修改下面的路径
// 创建一个窗口
$win = new Window();
$win->setTitle("PebView") // 设置窗口标题
->setHtml( // 设置窗口的 HTML 内容
<<<HTML
<h1>hello PebView!</h1>
HTML)
// 运行窗口
->run()
// 销毁窗口
->destroy();