Laravel Auth

PHP MIT

Laravel Auth by GhostCompiler adds advanced authentication for Laravel with TOTP 2FA, passkeys via WebAuthn, OTP channels (email, SMS, WhatsApp), trusted devices, and tenant-aware social login.

Stars
2
Forks
0
Downloads
N/A
Open Issues
0
Files main

Repository Files

Loading file structure...
CONTRIBUTING.md
# Contributing

Thank you for considering contributing to this package! Please take a moment to review these guidelines before submitting a pull request.

## Requirements

- PHP 8.2+
- Composer

## Local Setup

```bash
git clone https://github.com/ghostcompiler/laravel-auth.git
cd laravel-auth
composer install
```

## Running Tests

```bash
# Run the full test suite
composer test

# Run only the Unit suite
vendor/bin/phpunit --testsuite Unit

# Run only the Feature suite
vendor/bin/phpunit --testsuite Feature
```

## Code Quality

All contributions must pass the following checks:

```bash
# Static analysis (PHPStan level 5)
composer analyse

# Type checking (Psalm level 5)
composer types

# Code style check (no auto-fix)
composer lint

# Auto-fix code style
composer format

# Rector modernisation (dry run)
composer refactor

# Security audit
composer audit --no-dev
```

## Pull Request Checklist

Before submitting, please confirm:

- [ ] All existing tests pass (`composer test`)
- [ ] New tests are added for any new behaviour
- [ ] PHPStan passes without new suppression comments
- [ ] Psalm passes without new suppression annotations
- [ ] Pint reports no violations (`composer lint`)
- [ ] `CHANGELOG.md` entry added under `[Unreleased]`
- [ ] Documentation in `README.md` is updated if public API changed

## Reporting Security Issues

Please do **not** open a public GitHub issue for security vulnerabilities.
See [SECURITY.md](SECURITY.md) for the private disclosure process.