# php-webview 桌面应用开发
```
目录结构
.
├── os\               系统拓展目录
|   
├── php\              php环境目录
|index.php     入口文件(文件名别修改)
|
├── favicon.ico       文件图标
|
└── windows.bat       windows运行文件
```
## 更新
**进入\php\php.exe src/index.php` 启动
自己php环境 `php src/index.php` 启动 (必须开启ffi拓展和phar拓展)
### 打包
**进入根目录**,$seq 是触发次数
$webview->bind(name:"bindName",function($seq, $req, $context){
    return ["返回内容","返回数组"]$req, $context) {
    return $req;
});
// 运行
$webview->run();
// 销毁
$webview->destroy();
```
## 示例二