# Plugin Development

## Plugin structure

```
plugins/MyPlugin/
├── plugin.json         # Plugin metadata
├── plugin.php          # Plugin code
└── config.json         # Optional configuration
```

## plugin.json

```json
{
  "name": "My Plugin",
  "version": "1.0.0",
  "author": "Your Name",
  "description": "Description"
}
```

## plugin.php example

```php
<?php
/**
 * Plugin: MyPlugin
 */

echo '<div class="my-plugin">Hello World</div>';
```

## Using CMSAPI

```php
<?php
require_once '../../cms/core/class/PluginManager.php';

$api = PluginManager::getAPI();
$config = $api->getConfig();
$content = $api->getContent();
```