forevernull / yaf_plus_plus

yaf + composer + yarn

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

yaf++

yaf++ is one advanced web [application] framework. It's a out-of-the-box yaf.

Getting started

  • Use composer & yarn to intall all needed packages.bower deprecated!
    git clone git@github.com:forevernull/yaf_plus_plus.git YOURWEBROOT
    cd YOURWEBROOT
    yarn install
    composer install 
  • Modefy your nginx configuration like this
server {
    listen       80;
    server_name  _;
    
    location / {
        root   YOURWEBROOT/yaf_plus_plus/public;
        index  index.php index.html index.htm;

        if (!-e $request_filename){
            rewrite ^/(.*) /index.php?$1 last;
        }
    }

    location ~ \.php$ {
        root           YOURWEBROOT/yaf_plus_plus/public;
        fastcgi_pass   127.0.0.1:9000;
        fastcgi_index  index.php;
        include        fastcgi_params;
    }
}

Tips

if composer is very slow, please add this to your composer.json.

"repositories": {
    "packagist": {
        "type": "composer",
        "url": "https://packagist.phpcomposer.com"
    }
}

About

yaf + composer + yarn

License:MIT License


Languages

Language:PHP 63.5%Language:Smarty 36.5%