# includes/

This is the main source directory for the BizzSwatches plugin. All PHP classes are organized here using PSR-4 autoloading conventions.

## Directory Structure

| Directory    | Purpose                                              |
| ------------ | ---------------------------------------------------- |
| `Core/`      | Lifecycle handlers (Activator, Deactivator)          |
| `Helper/`    | Utility classes (Utils, AttributeHelper)             |
| `Admin/`     | WordPress admin panel classes                        |
| `Frontend/`  | Frontend display and rendering classes               |
| `Services/`  | Reusable service classes (Options, Assets)           |

## Key Files

- **`Plugin.php`** - Main plugin orchestrator. Initializes services, components, and hooks.
- **`Autoloader.php`** - PSR-4 autoloader that maps `Bizzswatches\*` namespace to this directory.

## Autoloading

Classes are autoloaded based on their namespace:

```
Bizzswatches\Admin\Admin                → includes/Admin/Admin.php
Bizzswatches\Frontend\Frontend          → includes/Frontend/Frontend.php
Bizzswatches\Helper\Utils               → includes/Helper/Utils.php
Bizzswatches\Helper\AttributeHelper     → includes/Helper/AttributeHelper.php
Bizzswatches\Services\OptionService     → includes/Services/OptionService.php
```
