-
-
Notifications
You must be signed in to change notification settings - Fork 1
T2 composer setup #8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR establishes the initial project setup for a Phalcon REST API v6 application with modern PHP development tooling and CI/CD integration.
- Adds core configuration files for code quality tools (PHPStan, PHPCS, PHPUnit)
- Sets up Composer with project dependencies and development tools
- Configures GitHub Actions workflow with SonarQube integration
Reviewed Changes
Copilot reviewed 8 out of 10 changed files in this pull request and generated 1 comment.
Show a summary per file
File | Description |
---|---|
composer.json | Defines project metadata, dependencies, autoloading, and development scripts |
phpunit.xml.dist | Configures PHPUnit test framework with coverage and test suite setup |
phpunit.php | Bootstrap file for PHPUnit with autoloader validation |
phpstan.neon | Sets PHPStan static analysis to maximum level |
phpcs.xml | Configures PHP CodeSniffer with PSR-12 standards |
sonar-project.properties | Sets up SonarQube project configuration |
.github/workflows/main.yml | Defines CI workflow with SonarQube scanning |
LICENSE | Updates copyright year range |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
with: | ||
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis | ||
- name: SonarQube Scan | ||
uses: SonarSource/sonarqube-scan-action@v5 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using a major version tag (@v5) for GitHub Actions can introduce security risks and breaking changes. Consider pinning to a specific commit hash or using a more specific version tag.
uses: SonarSource/sonarqube-scan-action@v5 | |
uses: SonarSource/sonarqube-scan-action@e6e2e2e7e2b6e2e2e2e2e2e2e2e2e2e2e2e2e2e2 |
Copilot uses AI. Check for mistakes.
Initial setup of composer