rkvcs/phai

0.1.0 2024-12-04 14:23 UTC

This package is auto-updated.

Last update: 2025-06-04 15:36:16 UTC


README

PHP ❤️ AI - lib to help generate tests using AI

Here we will use Pest and Ollama with codellama.

composer install rkvcs/phai

Using

./vendor/bin/phai -h


./vendor/bin/phai g:test <PATHFILE>

# Example 
./vendor/bin/phai g:test ./src/MyFile.php

# Result 
>> reading file.
>> generating prompt.
>> connectiong with AI.
>> ./tests/Unit/MyFileTest.php generated