# wulaphp
**Repository Path**: ninggf/wulaphp
## Basic Information
- **Project Name**: wulaphp
- **Description**: 一个小巧的PHP MVC框架。
- **Primary Language**: PHP
- **License**: MIT
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2018-02-12
- **Last Updated**: 2023-02-10
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README

# wulaphp
它的名来自《异星战场》里那个速度极快的火星狗狗,可以用它开发`WEB`应用和`命令行`应用。它确实很快:学习快、开发快、运行快!
# 依赖
```json
{
"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
1. 点击此处[下载](https://www.wulaphp.com/wulaphp-latest.zip)最新版本包。
2. 解压到相应的目录即可。
### 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](https://www.wulaphp.com/fqa.html#install)
# 文档
1. [中文文档](https://www.wulaphp.com/)
# License
[MIT](https://github.com/ninggf/wulaphp/blob/master/LICENSE) License.