# care-api Development Guidelines Auto-generated from all feature plans. Last updated: 2025-09-12 ## Active Technologies - PHP 8.1+ WordPress plugin development (001-care-api-sistema) - WordPress REST API framework with JWT authentication - KiviCare 35-table database schema integration - PHPUnit testing with WordPress testing framework ## Project Structure ``` src/ ├── models/ # KiviCare entity models ├── services/ # Business logic services ├── endpoints/ # REST API endpoint handlers ├── auth/ # JWT authentication service └── utils/ # Helper utilities tests/ ├── contract/ # API contract tests ├── integration/ # Database integration tests └── unit/ # Unit tests ``` ## Commands # WordPress/PHP specific commands wp plugin activate kivicare-api wp config set WP_DEBUG true vendor/bin/phpunit tests/ wp db query "SELECT..." ## Code Style - WordPress coding standards (WPCS) - PSR-4 autoloading for classes - WordPress hooks and filters for extensibility - Prepared SQL statements for security ## Recent Changes - 001-care-api-sistema: Added REST API for KiviCare healthcare management system