devgeniem/wp-define-more
Composer 安装命令:
composer require devgeniem/wp-define-more
包简介
Adds useful definable constants which are missing from the WP Core.
README 文档
README
WP Plugin: Define More
WordPress contains multiple nice options which you can set with define().
You can see good list of all them here: http://wpengineer.com/2382/wordpress-constants-overview/
This plugin adds even more stuff you can define().
Current custom definable variables
WP_UPLOADS_MAX_SIZE
WP_UPLOADS_MAX_SIZE - Set this to tell WordPress maximum uploads size. This is useful to tell /wp-admin/media.php javascript the maximum filesize in case your WordPress is running behind reverse proxy.
Example:
define('WP_UPLOADS_MAX_SIZE','10M');
WP_UPLOADS_DIR
WP_UPLOADS_DIR - Set custom directory for your uploads. This helped us to use glusterfs to synchronize only uploads folder between multiple nodes. It was too heavy process and much too unreliable to sync everything.
Example:
define('WP_UPLOADS_DIR','/var/www/uploads');
WP_UPLOADS_URL
WP_UPLOADS_URL - Set custom url for your uploads. We used this for mapping custom http://wordpress.test/uploads/ url with custom nginx root to WP_UPLOADS_DIR.
Example:
define('WP_UPLOADS_URL', WP_SITEURL . '/uploads/');
devgeniem/wp-define-more 适用场景与选型建议
devgeniem/wp-define-more 是一款 基于 Shell 开发的 Composer 扩展包,目前已累计 56.26k 次下载、GitHub Stars 达 2, 最近一次更新时间为 2016 年 10 月 01 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「wordpress」 「options」 「uploads」 「wp」 「filesize」 「define」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 devgeniem/wp-define-more 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 devgeniem/wp-define-more 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 devgeniem/wp-define-more 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Lightweight configuration interfaces and utilities
Pop Http Component for Pop PHP Framework
This extension provide application configuration support stored in database.
A very simple yet useful helper class to handle PHP file uploads.
Wordpress S3 Uploads Drop In
Array wrapper that eases the retrieval of values. Has parameters, options and settings and traits for inclusion in other libraries.
统计信息
- 总下载量: 56.26k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 19
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0
- 更新时间: 2016-10-01
