sdkiller/polyfills-no-more
最新稳定版本:1.0.1
Composer 安装命令:
composer require sdkiller/polyfills-no-more
包简介
Get rid of unnesessary polyfills
README 文档
README
Many 3rd-party packages tend to overbloat your vendor directory with unnesessary polyfills. Along of wasting extra disk space, your also have to deal with warnings like "Duplicate declaration of function ..." in your IDE and broken autocompletion.
This is mostly common case with Symfony components (or packages, using Symfony components), but not only. While the authors of such packages find "good enough" arguments to explain their approach, IMHO, it is doubtful and outdated. Today it is a very rare case, that your provider does not allow you to install mbstring or iconv extension, etc. With modern containerization techniques you can create any environment nesessary for you project. And arguments like "some projects run php 5.3 but want to use some features from php 8.5" are mostly ridiculous, You Arent Gonna Need It. Rare real-world cases of usage of polyfills is not an excuse to explicitly put them into "require" section of that packages.
So, while you are probably will not be able to convince the authors of such packages, you can simply get rid of unnesessary dependencies.
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2026-03-10