Thank you for your interest in contributing to Grok PHP Client! 🚀
We appreciate your help in improving the package. Whether you're fixing bugs, adding new features, or improving documentation—your contributions make a difference!
Click the "Fork" button at the top-right of the repository.
git clone https://github.com/your-username/grok-php-client.git
cd grok-php-client
Ensure you have Composer installed, then run:
composer install
To confirm everything works before adding new changes:
composer test
or
vendor/bin/pest
git checkout -b feature/your-new-feature
- Follow PSR-12 coding standards.
- Use typed properties, enums, and traits.
- Document your functions with PHPDoc.
- Always write unit tests for new features.
git add .
git commit -m "✨ Added new feature X"
git push origin feature/your-new-feature
Go to Grok PHP Client Repo Click "New Pull Request", select your branch, and submit 🚀
We use Pest PHP for testing. Before submitting your PR, run:
composer test
or
vendor/bin/pest
✅ If all tests pass, your PR is good to go! ❌ If tests fail, debug the issue before pushing changes.
✔️ Follow PSR-12 Standards ✔️ Use PHP 8.1+ Features (typed properties, enums, readonly properties) ✔️ Document Code Clearly (use PHPDoc annotations) ✔️ Write Meaningful Commit Messages
If you discover a security vulnerability, please do NOT open a public issue. Instead, report it privately via email: 📩 thefeqy@gmail.com
Open an issue in GitHub Issues Share ideas on new features, optimizations, or improvements.