Skip to content
/ phai Public

Helper to create unit tests using AI (codellama)

Notifications You must be signed in to change notification settings

rkvcs/phai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHAI

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

About

Helper to create unit tests using AI (codellama)

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages