rockylars/package-files
Composer 安装命令:
composer require rockylars/package-files
包简介
Simple test call to tell you what will go in a package
README 文档
README
Introduction
This little script can be used to quickly see what will be included when you turn your project into a Composer package and release a new version. Only in PHP, as I only work in that, but it's so small that you're free to replicate it.
History
This was designed when making Faker an open source package, as I didn't see anyone make this before. It's simple and quite handy, just tells you what will go in, though only cares about top level searches at the moment.
Usage
Simply call this from your a test you put down in your Unit tests folder, or just the tests folder if you only got that.
Future
I plan to upgrade this to eventually do all the magical and recursive depth searches, but that's usually far out of scope for my projects anyways.
Examples
self::assertSame( [ 'LICENSE', 'README.md', 'composer.json', 'src' ], PackageParser::simplePackageSearch(__DIR__ . 'path to the root') );
Set up the project for commits on Linux
- Have Docker functional, you don't need an account for this.
- Have a GitHub account (obviously) for commits.
- Get an SSH token set up (preferably id_ed25519) and hooked up to your GitHub account.
- If not, you won't be able to pull/push anything properly.
- Get the project downloaded and
cdinto the folder.- If you plan to make any PR's and don't have rights, make a fork first, grab that, and then attempt to merge PR's of that in.
- Make sure that running
git config --global --listandgit config --listboth showuser.email=YOUR_GITHUB_EMAILanduser.name=YOUR_GITHUB_USER_NAME.- If not, here's the steps to fix it:
- Set the value for the project and unset the one for local, otherwise set it for local only.
- Your commits won't link to an account if this is not done.
- Make sure that running
groupsshowsdockerin it.- If not, here's the steps to fix it:
- run
sudo usermod -aG docker $USERand then reboot your PC. - You won't be able to run the needed Docker commands if this is not done.
- Make sure that running
ls -la ~/.composershows your user instead ofrootfor..- If not, here's the steps to fix it:
- Run
sudo chown -R $USER:$USER ~/.composer. - You won't be able to store library authentication and Composer cache if this is not done.
- Have the
makeextension installed. - Run
make setupand you're done.
[Optional] Get access to private repositories you have access to on GitHub:
- Generate an access token in GitHub with just the Repo permissions.
- Run
make composerand addconfig --global github-oauth.github.com YOUR_GENERATED_TOKEN.
rockylars/package-files 适用场景与选型建议
rockylars/package-files 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 16.56k 次下载、GitHub Stars 达 0, 最近一次更新时间为 2024 年 02 月 06 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 rockylars/package-files 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 rockylars/package-files 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 16.56k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 13
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-02-06