Thank you for considering contributing to Grok AI Laravel.
This guide outlines how you can help improve the package and collaborate effectively.
Click the "Fork" button at the top right of this repository to create your copy.
git clone https://github.com/your-username/laravel-grok.git
cd laravel-grokcomposer installIf you're testing this package inside a Laravel project, use:
composer remove grok-php/laravel
composer require grok-php/laravel:@dev --prefer-sourceIf you find a bug, please open an issue and include:
- A clear description of the issue.
- Steps to reproduce the problem.
- Expected vs. actual behavior.
- Any error messages or logs.
- Laravel and PHP versions used.
Providing as much detail as possible helps resolve the issue faster.
If you have an idea for improving the package, submit a feature request including:
- A detailed explanation of the proposed feature.
- The problem it solves.
- Example use cases.
Well-documented proposals have a higher chance of being implemented.
Before making changes, create a new branch:
git checkout -b feature/your-feature-name- Follow PSR-12 coding standards.
- Use typed properties, enums, and traits where applicable.
- Add PHPDoc comments for better readability.
- Ensure backward compatibility.
composer testgit add .
git commit -m "Add feature X"git push origin feature/your-feature-name- Navigate to Grok AI Laravel Pull Requests.
- Click "New Pull Request", select your branch, and submit.
A clear and well-documented PR speeds up the review process.
We use PHPUnit for testing. Before running tests, copy the PHPUnit configuration file:
cp phpunit.xml.dist phpunit.xmlThen, update your API key inside phpunit.xml:
<php>
<env name="GROK_API_KEY" value="your-api-key-here"/>
</php>Once configured, run the tests:
composer testor
vendor/bin/phpunitEnsure all tests pass before submitting a PR.
Your contributions help make Grok AI Laravel better for the Laravel community.
Thank you for taking the time to improve this package.