# Tomato API

<figure><img src="/files/po5VkurTCTl6Z553glAL" alt=""><figcaption></figcaption></figure>

### Installation

```
composer require tomatophp/tomato-api
```

after installation run this command

```
php artisan tomato-api:install
```

### Using

you can generate a new API CRUD with this command

```
php artisan tomato:api
```

it will ask you about the table name and module name if you like to use the HMVC arch

### Changelog

Please see [CHANGELOG](https://github.com/tomatophp/tomato-api/blob/master/CHANGELOG.md) for more information on what has changed recently.

### Security

Please see [SECURITY](https://github.com/tomatophp/tomato-api/blob/master/SECURITY.md) for more information about security.

### Credits

* [Fady Mondy](https://github.com/3x1io)
* [Ahmed Bana](https://github.com/Ahmed-Elbanna-Git)

### License

The MIT License (MIT). Please see [License File](https://github.com/tomatophp/tomato-api/blob/master/LICENSE.md) for more information.


---

# 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/tomato-api.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.
