PHP ❤️ AI - lib to help generate tests using AI
Here we will use Pest and Ollama with codellama.
composer install rkvcs/phai
./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