francoisvaillant/wordpress-api-bundle
最新稳定版本:v1.0
Composer 安装命令:
composer require francoisvaillant/wordpress-api-bundle
包简介
README 文档
README
Documentation soon
Development and Composer usage
WordpressApiBundle — Development and Composer usage
When developing this bundle inside a Symfony application (using a path repository), you generally do NOT run composer install inside the bundle directory. Instead, manage all dependencies from the application root.
Why?
- The app’s root composer.json already declares this bundle as a path repository:
- It installs the bundle in development via symlink and resolves dependencies once at the app level.
- Running
composer installinside the bundle would create a nested vendor directory and duplicate/autoload conflicts.
Recommended workflows
- Developing the bundle inside a host app (path repository)
- Use the root composer.json only:
- Add/update dependencies with:
composer require ...(from the app root) - Install/update:
composer install/composer update(from the app root)
- Add/update dependencies with:
- Do not run composer in bundles/WordpressApiBundle.
- Developing the bundle standalone (outside an app)
- If you check out this bundle into its own repository and work on it alone, then run
composer installin the bundle directory to get the bundle’s dev tools and its minimal dependencies.
Housekeeping
- The bundle’s .gitignore ignores its own vendor directory and composer.lock to avoid committing nested dependencies when used inside an application.
FAQ
- Q: Do I need to
composer installinside the bundle?- A: No, not when the bundle is developed inside an application via a path repository. Yes, only if you work on the bundle as a standalone package outside any host app.
统计信息
- 总下载量: 32
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-10-17