# Integration with Sngine

- Globe AI stores references to `sngine_db.users.user_id` and never duplicates users.
- Configure `config.php` with Sngine DB credentials under `sngine_db`.
- Use API endpoints in `api/` or call the providers programmatically by instantiating `Database` and selected `Provider`.

Example usage in Sngine code:

```php
$config = include '/path/to/GlobeAI/config.php';
$db = new Database($config);
$provider = new TemplateProvider($db);
$result = $provider->generate('post', ['title' => 'Hello', 'topic' => 'startup']);
```
