Code structure and conventions

Namespace and directory structure

Document how code is organized within the app directory, including common naming conventions and folder structure for models, controllers, services, and repositories.

Coding standards

Define code style guidelines (e.g.: PSR-12 standards, Laravel standards) and specify linters or formatters to maintain consistency (e.g., PHP_CodeSniffer, PHPStan, Pint, Prettier for front-end code).

Naming conventions

Specify naming conventions for files, methods, variables, classes, and routes.

Testing standards

Outline standards for unit and feature testing, including naming conventions for tests, code coverage expectations, and tools (e.g.: PHPUnit, Pest).

Version control

Define best practices for Git usage, including branching strategy (e.g., GitFlow, feature branches) and commit message conventions.