Contributing
Table of contents
Reporting Issues
If you encounter a bug or have a feature request, please open an issue on GitHub.
When reporting bugs, please include:
- Laravel version
- PHP version
- Package version
- Steps to reproduce
- Expected behavior
- Actual behavior
Development Setup
Prerequisites
- PHP 8.3 or higher
- Composer
- Laravel 11, 12, or 13
Clone the Repository
git clone https://github.com/ajangsupardi/laravel-postcode-id.git
cd laravel-postcode-id
Install Dependencies
composer install
Run Tests
vendor/bin/phpunit
Pull Requests
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
Coding Standards
- Follow PSR-12 coding style
- Use meaningful variable and method names
- Add PHPDoc blocks for public methods
- Write tests for new features
Commit Messages
Use clear and descriptive commit messages:
feat: add support for custom HTTP headers
fix: handle empty postal codes gracefully
docs: update configuration examples
test: add Village model tests
License
By contributing, you agree that your contributions will be licensed under the MIT License.
Support
- Documentation: GitHub Pages
- Issues: GitHub Issues
- Packagist: Packagist