定制 callmeleon167/bedrock-composer-store 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

callmeleon167/bedrock-composer-store

最新稳定版本:1.0.0

Composer 安装命令:

composer require callmeleon167/bedrock-composer-store

包简介

Kurze Beschreibung des Packages

README 文档

README

PHP Version WordPress License

A WordPress plugin that seamlessly integrates Composer package management into Bedrock's plugin installation workflow. Add "Add to Composer" buttons directly to the WordPress plugin install screen.

🚀 Features

  • One-Click Integration: Add plugins to your composer.json with a single click
  • Smart Detection: Automatically detects already installed Composer packages
  • Version Management: Fetches and adds the latest stable version automatically
  • Bedrock Optimized: Designed specifically for Roots/Bedrock WordPress stack
  • AJAX Powered: Seamless user experience without page reloads

📋 Requirements

  • PHP: 8.1 or higher
  • WordPress: 6.0 or higher
  • Bedrock: Roots/Bedrock WordPress boilerplate
  • Composer: Must be configured with wpackagist repository

🛠 Installation

Via Composer (Recommended)

composer require callmeleon167/bedrock-composer-store

Manual Installation

  1. Download the latest release
  2. Extract to your /web/app/plugins/ directory
  3. Activate the plugin in WordPress admin

Bedrock Configuration

Ensure your composer.json includes the wpackagist repository:

{
  "repositories": [
    {
      "type": "composer",
      "url": "https://wpackagist.org"
    }
  ]
}

📖 Usage

  1. Navigate to Plugins → Add New in your WordPress admin
  2. Search for any plugin you want to install
  3. Click the blue "Add to Composer" button next to the install button
  4. Activate the plugin as usual

🎯 How It Works

  1. Scans the plugin install page for available plugins
  2. Checks your composer.json for existing packages
  3. Displays appropriate buttons:
    • "Add to Composer" for new plugins
    • "Already in Composer" for existing packages
  4. Fetches plugin version from WordPress.org API
  5. Updates composer.json with proper version constraints

🔧 Development

Code Standards

  • PSR-4 autoloading
  • WordPress Coding Standards
  • PHP 8.1+ features and syntax

🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

🐛 Issues & Support

⚖️ License

This project is licensed under the GNU General Public License v3.0 - see the LICENSE file for details.

Made with ❤️ for the WordPress community

统计信息

  • 总下载量: 2
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-3.0-or-later
  • 更新时间: 2025-07-07