# Helper

Utility and helper classes for the BizzSwatches plugin.

## Files

| File                   | Class                                  | Purpose                                                     |
| ---------------------- | -------------------------------------- | ----------------------------------------------------------- |
| `Utils.php`            | `Bizzswatches\Helper\Utils`            | General utilities (color conversion, sanitization, template loading, WooCommerce checks) |
| `AttributeHelper.php`  | `Bizzswatches\Helper\AttributeHelper`  | Attribute-specific helpers (attribute types, swatch types, shape styles, behaviors)       |

## Usage

```php
// General utilities
use Bizzswatches\Helper\Utils;

$hex   = Utils::rgb_to_hex('rgb(255, 0, 0)');
$clean = Utils::sanitize_name('My Attribute');
$active = Utils::is_woocommerce_active();

// Attribute helpers
use Bizzswatches\Helper\AttributeHelper;

$types    = AttributeHelper::get_attribute_types();
$shapes   = AttributeHelper::get_shape_styles();
$is_swatch = AttributeHelper::is_swatch_type('color');
```
