yasglobal/make-paths-relative
Composer 安装命令:
composer require yasglobal/make-paths-relative
包简介
Convert Absolute URLs to be relative in your fingertip.
关键字:
README 文档
README
Description
This powerful plugin simplifies website maintenance by automatically converting absolute paths (URLs) for resources like links, scripts, stylesheets, and images to relative paths. This ensures your website functions flawlessly regardless of its location on a server or domain.
Enhanced Efficiency and Flexibility
- Seamless Relocation: Move your website with confidence, knowing all paths will adjust accordingly, preventing broken links and preserving a seamless user - experience.
- Centralized Control: Update paths once in a central location, eliminating the need for tedious, site-wide modifications.
- Potential Performance Boost: Relative paths can, in some cases, improve website loading times.
Whitelist Your Domains (Optional)
For extra control, you can specify a list of domains that will always be converted to relative paths. This ensures internal links are always optimized while allowing external resources to function properly.
Embrace a Streamlined Approach
This plugin empowers you to focus on creating exceptional content while eliminating the burden of managing absolute paths. Take control, optimize your workflow, and ensure your website's continued success!
Filters
If you want to make plugin works and all the paths relative without going to check/visit Settings Page so, just add this line in your theme's functions.php.
add_filter( 'make_paths_relative_activate_all', '__return_true' );
Note: Make sure to check the settings Page.
Bug reports
Bug reports for Make Paths Relative are welcomed on GitHub. Please note GitHub is not a support forum, and issues that aren't properly qualified as bugs will be closed.
Installation
This process defines you the steps to follow either you are installing through WordPress or Manually from FTP.
From within WordPress
- Visit 'Plugins > Add New'
- Search for Make Paths Relative
- Activate Make Paths Relative from your Plugins page.
- Go to "after activation" below.
Manually
- Upload the
make-paths-relativefolder to the/wp-content/plugins/directory - Activate Make Paths Relative through the 'Plugins' menu in WordPress
- Go to "after activation" below.
After activation
- Go to the plugin settings page and set up the plugin for your site.
- You're done!
yasglobal/make-paths-relative 适用场景与选型建议
yasglobal/make-paths-relative 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 7 次下载、GitHub Stars 达 3, 最近一次更新时间为 2024 年 06 月 28 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「Portable URLs」 「Relative Links」 「SEO-Friendly URLs」 「Multisite Compatibility」 「Subdomain Migration」 「URL Migration」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 yasglobal/make-paths-relative 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 yasglobal/make-paths-relative 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 yasglobal/make-paths-relative 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Symfony polyfill backporting some PHP 8.6+ features to lower PHP versions
Polyfill for the New Relic PHP extension
BC Lower Case Url Alias Bundle for eZ Platform. Provides basic url alias transformation configuration necessary to transform new content created or modified url aliases to lower case separated by underscore or dash characters. Great for adventurous developers!
Modified version of the Wordpress plugin velvet-blues-update-urls
Common string operations in PHP: filter a string, generate a random string, condense an integer into a string, and modify URLs
Library for building relative time strings in PHP.
统计信息
- 总下载量: 7
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 20
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0-or-later
- 更新时间: 2024-06-28