gwa/multisite-directory-resolver
Composer 安装命令:
composer require gwa/multisite-directory-resolver
包简介
Adds filters that correct directory paths in a Wordpress multisite install with the WordPress installation in a custom subfolder.
README 文档
README
Adds filters that correct directory paths in a Wordpress multisite install with the WordPress installation in a custom subfolder.
Master
Develop
Usage
Requirements
PHP 5.4.0 or above
Installation
Install through composer.
composer require gwa/multisite-directory-resolver
How to use
// project root: path/to/project // wp install: path/to/project/custom/install/path // choose which resolver you like to use // 1. MultisiteResolverManager::TYPE_FOLDER - Use only for sub folder url handling -> example.com/site1/../.. // 2. MultisiteResolverManager::TYPE_SUBDOMAIN - Use only for sub domain handling -> test.example.com $mdr = new Gwa\Wordpress\MultisiteDirectoryResolver('custom/install/path', $resolver); $mdr->init();
Set you cookie like this to resolve the wordpress multisite redirect Loop.
define('COOKIE_DOMAIN', $_SERVER['HTTP_HOST']); define('ADMIN_COOKIE_PATH', '/');
Contributing
All code contributions - including those of people having commit access - must go through a pull request and approved by a core developer before being merged. This is to ensure proper review of all the code.
Fork the project, create a feature branch, and send us a pull request.
To ensure a consistent code base, you should make sure the code follows the Coding Standards which we borrowed from Symfony.
The easiest way to do make sure you're following the coding standard is to run vendor/bin/php-cs-fixer fix before committing.
If you would like to help take a look at the list of issues.
Authors
Great White Ark - bannert@greatwhiteark.com - http://www.greatwhiteark.com
License
Open-sourced software licensed under the MIT license
gwa/multisite-directory-resolver 适用场景与选型建议
gwa/multisite-directory-resolver 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 21.43k 次下载、GitHub Stars 达 4, 最近一次更新时间为 2015 年 04 月 30 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「composer」 「wordpress」 「multisite」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 gwa/multisite-directory-resolver 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 gwa/multisite-directory-resolver 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 gwa/multisite-directory-resolver 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Easily switch between sites on any page of your website.
This composer plugin enables installation of GravityForms WordPress plugin and its addons.
Simple ASCII output of array data
Run wp-cron on all public sites in a multisite network
This bundle allows you to manage multisite in symfony application.
统计信息
- 总下载量: 21.43k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 23
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-04-30