conf/application.ini #具体的配置文件
public/ #公共资源目录
public/index.php #php-fpm的入口文件
public/server.php #可用于swoole的入口文件
application/controllers/Index.php #默认Index控制器
application/library #本地类库
application/models #数据模型文件
application/modules/V1/controllers #V1版本控制器目录
application/plugins #插件目录
application/views #视图目录
application/Bootstrap.php #入口Bootstrap
composer create-project yafbase --repository=http://xxx.i.xxx.cn/ --no-secure-http
https://blog.csdn.net/oqzuser12345678999q/article/details/107227264
例.后台命运行令行 执行方式:php index.php "request_uri=/v1/Command/
更新 composer update
查看镜像源 composer config -g -l repo.packagist
更改镜像源 可参考 https://developer.aliyun.com/mirror/
server {
listen 84;
server_name localhost;
root "E:/project/concern/php-yaf/public";
location / {
if (!-e $request_filename) {
rewrite ^/(.*)$ /index.php/$1 last;
}
index index.php index.html;
autoindex off;
}
location ~ \.php(.*)$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_split_path_info ^((?U).+\.php)(/?.+)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
include fastcgi_params;
}
}
http://127.0.0.1/v1/test/index?q=xx
镜像地址: http://xxx.i.xxx.cn/
{
"repositories": [{
"type": "composer",
"url": "http://xxx.i.xxx.cn/"
}],
"config": {
"secure-http": false
},
"require": {
"ab/cd": "dev-master"
}
}