feat(other): add bootstrap and phpstan#8
Merged
Conversation
- Renamed the primary branch details from "FireHub Skeleton – Develop Branch" to "Bootstrap and PHPStan – Development Branch." - Updated badge colors, SVG logos, and URLs to reference `feature/add-bootstrap-and-phpstan`. - Added information about pull request #2, GitHub milestone #1, and updated the badges to reflect the branch's specific activities. - Introduced a comprehensive feature overview for this branch, including Bootstrap folder initialization and PHPStan integration for code analysis. - Outlined compatibility with Core-Foundation v0.2.0, documentation updates for running PHPStan, and support for CI pipelines. - Removed outdated sections, such as "Unstable" and "Branch Purpose," and replaced them with updated goals for the feature branch. - Clearly defined the branch workflow for contributions, testing, and integration into the main `develop` branch. Enhances clarity, aligns documentation with project workflows, and prepares for further development and integration with Skeleton v0.2.x.
…gration - Introduced `bootstrap/app.php` as the primary configuration entry point for initializing the FireHub Framework with HTTP kernel support. - Added error handling for bootloader exceptions (`FailedToLoadBootloaderException` and `NotBootloaderException`) to enhance stability during configuration. - Updated `composer.json` to: - Add `firehub/core-foundation` (~0.2) as a dependency to support the initialization process. - Include dev dependencies (`phpstan/phpstan`, `phpstan/phpstan-strict-rules`, and `phpunit/phpunit`) for code analysis and unit testing. - Enable autoloading of `core.phar` from the `firehub/core-foundation` package. - Ensures compatibility with PHP 8.5 and aligns with the ongoing framework development. This update enhances the Skeleton's bootstrap system, paves the way for improved developer workflows, and prepares for strict code quality enforcement via integrated tools.
3 tasks
- Added `CHANGELOG.md`, `CITATION.cff`, and `README.md` to `export-ignore` to exclude these files from Git archive downloads, reducing unnecessary file inclusion in packaged distributions. - Removed `.editorconfig` and `.gitignore` from `export-ignore`, aligning with updated packaging requirements. - Ensures a cleaner and more focused file set for distribution and archives, adhering to project optimization efforts.
- Added `bootstrap/app.php` initialization in `index.php` to serve as the entry point for bootstrapping the FireHub Framework. - Enabled framework booting via the `boot()` method for seamless application instantiation. - Retained Composer autoloader registration for dynamic class loading. - Provides a foundational setup for running the application using the FireHub Framework, aligning with ongoing framework enhancements.
- Introduced a `.gitkeep` file in the `Skeleton/app` folder to ensure the directory is tracked by Git, even when empty. - Helps maintain the folder's structure within the repository, ensuring developers are aware of its purpose and intended usage. - Aligns with best practices for managing empty directories in Git repositories.
- Added `phpunit.xml.dist` with test suite configuration, including custom error handling and bootstrap settings for improved test coverage and debugging. - Introduced `phpstan.dist.neon` with strict rules and max analysis level to enforce robust code quality and identify potential issues. - Updated `.gitignore` to exclude `storage/` for runtime-generated files and `vendor/` directories. - Enhanced project setup by integrating tools for unit testing and static code analysis to ensure maintainability and high-quality code standards.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
💢 Features / Enhancements Pull Request
Related Issue
Closes [Feature]: Add Bootstrap and PHPStan #7
Description
Implementation Details
Testing
Feature implemented as per requirementsManual testing performedUnit / Integration tests addedTest coverage updatedDocumentation
Checklist
Risks / Impact
Notes