# AI Guideline - ngauge-stripe

## Purpose

This module provides a lightweight Stripe API integration layer for NGauge.

## Coding Conventions

- Keep integration boundaries clear: controller -> service/client.
- Keep logs structured and never log secret keys or card data.
- Preserve Yii2 conventions and dependency injection patterns.

## Standards Requirement

- Follow PSR-1 and PSR-12 across all PHP source files.
- Follow PSR-4 autoloading conventions and namespace consistency.
- Prefer `yii\httpclient\Client` over other HTTP clients.

## Required Command-Line Validation On File Updates

```bash
find src -type f -name "*.php" -print0 | xargs -0 -n1 php -l
composer lint
```
