Thank you for your interest in contributing!
- Clone the repository:
git clone https://github.com/logtide-dev/logtide-php.git
cd logtide-php- Install dependencies:
composer install- Run the test suite:
composer testThis is a Composer monorepo. All packages live under packages/:
logtide- Core client, hub, transports, and utilitieslogtide-laravel- Laravel ServiceProvider, Middleware, Log Channellogtide-symfony- Symfony Bundle with Event Subscriberslogtide-slim- Slim 4 PSR-15 Middlewarelogtide-wordpress- WordPress hooks and integrations
- Follow PSR-12 coding standard
- Use
declare(strict_types=1)in all PHP files - Use PHP 8.1+ features (enums, named arguments, etc.)
- Add PHPDoc comments for public APIs
- Use meaningful variable and method names
# Check code style
composer cs
# Fix code style
composer cs:fix# Run all tests
composer test
# Run tests with coverage
composer test:coverage
# Static analysis (PHPStan level 8)
composer phpstan- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Make your changes
- Ensure tests pass (
composer test) - Ensure static analysis passes (
composer phpstan) - Ensure code style passes (
composer cs) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
- Use the GitHub issue tracker
- Provide clear description and reproduction steps
- Include PHP version and OS information
- Include relevant logs and error messages
Feel free to open an issue for any questions or discussions!