rkvcs / phai
0.1.0
2024-12-04 14:23 UTC
Requires
- php: ^8.2
- guzzlehttp/guzzle: ^7.0
- symfony/console: ^7.2
Requires (Dev)
- pestphp/pest: ^3.5
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