WC API Framework
A flexible WordPress plugin framework for integrating external APIs with WooCommerce
★ 0stars
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/gileba/wc-api-framework/archive/refs/heads/main.zipA flexible WordPress plugin framework for integrating external APIs with WooCommerce products.
Overview
The WC API Framework provides a robust foundation for building API integrations with WooCommerce. It handles common functionality like caching, product filtering, admin settings, and API communication, allowing developers to focus on API-specific logic.
Features
- Modular Architecture: Base framework with extension system
- Flexible Caching: Configurable cache durations for different data types
- Product Filtering: Advanced filtering by brand, manufacturer, category, and tags
- Admin Interface: Comprehensive settings management with tabbed interface
- Translation Ready: Full internationalization support
- Error Handling: Robust error handling and logging
- Performance Optimized: Static caching and optimized database queries
Architecture
Base Framework (wc-api-framework)
- Core API client functionality
- Caching management
- Admin settings framework
- Product filtering system
- Helper utilities
Extensions (wc-api-{provider})
- Provider-specific API implementations
- Custom data mapping
- Provider-specific settings
- Custom filtering logic
Installation
- Install the base framework plugin
- Install the desired API extension plugin
- Configure API credentials in the admin panel
- Set up product filtering rules
- Configure cache settings
Development
Creating a New API Extension
- Create a new plugin that extends the base framework
- Implement the required interface methods
- Add provider-specific settings
- Handle API response mapping
- Test with your WooCommerce store
Required Interface Methods
get_api_endpoint()get_credentials_fields()parse_api_response()map_product_data()validate_credentials()
Requirements
- WordPress 5.0+
- PHP 7.4+
- WooCommerce 3.0+
License
GPL2
Changelog
This is the first release of the WC API Framework.