wulaphp
它的名来自《异星战场》里那个速度极快的火星狗狗,可以用它开发WEB
应用和命令行
应用。它确实很快:学习快、开发快、运行快!
依赖
{
"require": {
"php": ">= 7.1",
"ext-json": "*",
"ext-pcre": "*",
"ext-mbstring": "*",
"ext-Reflection": "*",
"ext-SPL": "*",
"wula/common": "^1.0",
"smarty/smarty": "^3.1",
"psr/log": "^1.0"
},
"require-dev": {
"phpunit/phpunit": "^7.5",
"phpoffice/phpspreadsheet": "^1.4"
},
"suggest": {
"ext-redis": "*",
"ext-memcached": "*",
"ext-apcu": "*",
"ext-sockets": "*",
"ext-posix": "*",
"ext-pcntl": "*"
}
}
安装
Composer
我们推荐通过Composer
方式安装wulaphp
。
安装
# composer require wula/wulaphp -vvvv
国内的小朋友请执行
composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/
使用阿里云的镜像库。
初始化
安装命令完成后,执行以下代码进行项目初始化工作:
# vendor/bin/wulaphp init
或者在windows上:
vendor\bin\wulaphp init
如果你运行在类Unix
系统上,还需要执行以下操作将目录变为可读写:
# chmod 777 storage storage/tmp storage/logs
下载
按以下步骤下载并解压到相应目录即可完成安装:
Windows
- 点击此处下载最新版本包。
- 解压到相应的目录即可。
Mac OS/Linux
# wget https://www.wulaphp.com/wulaphp-latest.tar.gz
# tar -zxf wulaphp-latest.tar.gz
# cd wulaphp-latest
# chmod 777 storage storage/tmp storage/logs
如果你能正常使用
composer
,建议执行一下# composer update -vvv
将所有依赖包升级到最新版本。
验证
打开命令行,进入应用根目录(artisan脚本所在的目录)并执行下边的命令(使用内建服务器运行wulaphp):
php artisan serve
通过浏览器访问http://127.0.0.1:8080,看到下边的输出:
hello Woola!
恭喜你,安装完成。
如果未能看到上边的输出,请移步FQA
文档
License
MIT License.