Thank you for considering contributing to the SAP B1 Laravel SDK! This document provides guidelines for contributing to this project.
- Fork the repository
- Clone your fork:
git clone https://github.com/YOUR_USERNAME/sapb1-laravel-sdk.git cd sapb1-laravel-sdk - Install dependencies:
composer install
- Run tests:
composer test
This project uses Laravel Pint for code formatting. Before submitting a PR, run:
composer formatWe use PHPStan at level 8. Ensure your code passes:
composer analyse-
Create a new branch for your feature/fix:
git checkout -b feature/your-feature-name
-
Make your changes and write tests if applicable
-
Ensure all tests pass:
composer test -
Ensure code style is correct:
composer format
-
Ensure static analysis passes:
composer analyse
-
Commit your changes with a descriptive message:
git commit -m "Add: description of your changes" -
Push to your fork and submit a Pull Request
Use conventional commit messages:
feat:- New featurefix:- Bug fixdocs:- Documentation changestest:- Adding or updating testsrefactor:- Code refactoringchore:- Maintenance tasks
Example:
feat: add batch operations support
fix: correct session expiry calculation
docs: update OData query examples
When reporting issues, please include:
- PHP version
- Laravel version
- SAP B1 Service Layer version (if known)
- Steps to reproduce
- Expected behavior
- Actual behavior
Feature requests are welcome! Please provide:
- Clear description of the feature
- Use case / why it's needed
- Possible implementation approach (optional)
Be respectful and constructive in all interactions. We're all here to build something useful together.
Feel free to open an issue for questions or discussions.