asha23/arlo-framework-laravel-mix 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

asha23/arlo-framework-laravel-mix

Composer 安装命令:

composer create-project asha23/arlo-framework-laravel-mix

包简介

A modern WordPress stack that treats WordPress as a Composer dependency.

README 文档

README

Install

You should have Composer installed globally on your machine. Simply run:

composer create-project asha23/arlo-framework-laravel-mix

Overview

This framework is not an off-the-shelf theme. It's a boilerplate to help experienced WordPress developers get up and running quickly and easily. It's not designed to be used by beginners and good knowledge of php is assumed.

Features

  1. WordPress is installed using Composer as a dependency. This means you can update WordPress by running composer update in the project root.

  2. Similar to Laravel, the core files are out of the root. Database information is kept in a .env file.

  3. WordPress Packagist - Keep your plugins up to date by running composer update

  4. Uses Laravel Mix in the base theme included. This is a simple way to manage all your build dependencies.

  5. There is a core functionality plugin included which strips out a lot of useless WordPress bloat. This is optional.

  6. The base theme is extremely bare bones. It's more of an approach template than an actual theme. Useful if you do a lot of theme creation from scratch. Otherwise it should probably be removed.

Notes

It's highly recommended that you use Laravel Homestead to deploy this locally. Please note that the root folder is /web, so you will need to configure the server correctly to point to this folder.

Example NGINX config

    server {
        listen 80;
        listen 443 ssl http2;
        server_name .***your-website***;
        root "/home/vagrant/code/***your-website***/web";

        index index.php index.html index.htm;

        charset utf-8;

        location = /favicon.ico { access_log off; log_not_found off; }
        location = /robots.txt  { allow all; access_log off; log_not_found off; }

        location ~ /.*\.(jpg|jpeg|png|js|css)$ {
            try_files $uri =404;
        }

        location / {
            try_files $uri $uri/ /index.php?$query_string;
        }

        if (!-e $request_filename) {
            # Add trailing slash to */wp-admin requests.
            rewrite /wp-admin$ $scheme://$host$uri/ permanent;

            # WordPress in a subdirectory rewrite rules
            rewrite ^/([_0-9a-zA-Z-]+/)?(wp-.*|xmlrpc.php) /web/wp/$2 break;
        }

        location ~ \.php$ {
            fastcgi_split_path_info ^(.+\.php)(/.+)$;
            include fastcgi_params;
            fastcgi_index index.php;
            fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
            fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
            fastcgi_intercept_errors on;
            fastcgi_buffers 16 16k;
            fastcgi_buffer_size 32k;
        }

        access_log off;
        error_log  /var/log/nginx/plugin-dev.test-error.log error;

        sendfile off;

        client_max_body_size 100m;

        location ~ /\.ht {
            deny all;
        }

        ssl_certificate     /etc/nginx/ssl/***your-website.crt***;
        ssl_certificate_key /etc/nginx/ssl/***your-website.key***;
    }

Example _htaccess config

Use this in the root if you are on an Apache setup.

    RewriteEngine on
    RewriteCond %{REQUEST_URI} !^/web
    RewriteRule ^(.*)$ /web/$1 [NC,L]

Created by Ash Whiting

Thanks to: Wordplate for their excellent ACF Builder module.

统计信息

  • 总下载量: 12
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-02-11

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固