callmeleon167 / bedrock-composer-store
Kurze Beschreibung des Packages
Installs: 2
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Type:wordpress-plugin
Requires
- php: >=8.1
- composer/installers: ^2.0
README
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
- Download the latest release
- Extract to your
/web/app/plugins/
directory - Activate the plugin in WordPress admin
Bedrock Configuration
Ensure your composer.json
includes the wpackagist repository:
{ "repositories": [ { "type": "composer", "url": "https://wpackagist.org" } ] }
📖 Usage
- Navigate to
Plugins → Add New
in your WordPress admin - Search for any plugin you want to install
- Click the blue "Add to Composer" button next to the install button
- Activate the plugin as usual
🎯 How It Works
- Scans the plugin install page for available plugins
- Checks your
composer.json
for existing packages - Displays appropriate buttons:
- "Add to Composer" for new plugins
- "Already in Composer" for existing packages
- Fetches plugin version from WordPress.org API
- 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
- Bug Reports: GitHub Issues
- Feature Requests: GitHub Issues
- Email: kontakt@callmeleon.de
⚖️ 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