# Create New Plugin

from v1.2 you can create a new plugin by just using GUI it will generate a new module for you with a module.json file ready to use for our plugins system, and you can use our plugin generator feature to build a full migration and CRUD operation with GUI! without any code.

### Plugin Generator

to use the plugin generator feature make sure that you have install [`doctrine/dbal` ](https://github.com/doctrine/dbal)

### Add Required Plugins

you can add required plugins to make the plugin active only if the other module is active you can do that by adding the `required` to `module.json` file like this

```json
{
    "required": ['EcommerceTheme']
}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.tomatophp.com/plugins/create-new-plugin.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
