https://github.com/qbhy/dvajs-php
dvajs 的 PHP 服务端渲染包
https://github.com/qbhy/dvajs-php
Last synced: 5 months ago
JSON representation
dvajs 的 PHP 服务端渲染包
- Host: GitHub
- URL: https://github.com/qbhy/dvajs-php
- Owner: qbhy
- License: other
- Created: 2017-08-14T08:30:03.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-08-15T05:21:13.000Z (over 7 years ago)
- Last Synced: 2024-11-25T18:23:02.523Z (5 months ago)
- Language: JavaScript
- Size: 2.26 MB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# dvajs-php
[dvaJs](https://github.com/dvajs/dva) 的 php 服务端渲染实例
## 特性
* 简单易用:php api 仅两步(new DvaJs and exec render)
* 支持所有 dvajs 的特性(RN相关除外)## 项目依赖
1. php 的 `v8js` 扩展,并且版本必须 >= 0.1.3
## 安装
```bash
$ composer require 96qbhy/dvajs:dev-master
```## 使用示例(临时)
### 克隆本项目运行
```bash
git clone https://github.com/96qbhy/dvajs-php.git
cd dvajs-php/views
npm install
npm run build
cd ..
composer dumpautoload
php -S localhost:8088
```
完成以上操作后在浏览器访问 `http://localost:8088/example.php` 即可看到效果。
### 在框架中集成
#### 在 `laravel` 中集成 `dvajs-php`
[https://github.com/96qbhy/dvajs-laravel](https://github.com/96qbhy/dvajs-laravel)
> 更多例子请稍等,或者可以给我 PR 。[dvajs-php](https://github.com/96qbhy/dvajs-php)
[email protected]