Skip to content

feat(other): add bootstrap and phpstan#8

Merged
dieselxxx merged 9 commits intodevelopfrom
feature/add-bootstrap-and-phpstan
Mar 24, 2026
Merged

feat(other): add bootstrap and phpstan#8
dieselxxx merged 9 commits intodevelopfrom
feature/add-bootstrap-and-phpstan

Conversation

@dieselxxx
Copy link
Copy Markdown
Contributor

💢 Features / Enhancements Pull Request

Related Issue

Description

  • Adds Bootstrap setup and PHPStan configuration to the Skeleton repository.
  • Ensures that Skeleton v0.2.0 is aligned with Core-Foundation 0.2.0 standards.
  • Provides a ready-to-use project structure with static code analysis capabilities.

Implementation Details

  • Key feature changes:
    • Add Bootstrap/ folder with initialization scripts.
    • Configure PHPStan for the src/ folder with Core-Foundation recommended levels.
    • Update composer.json with PHPStan as a dev dependency.
    • Dependencies added or removed: PHPStan (dev).
  • Migration / backward compatibility notes: Fully backward compatible; no existing functionality affected.
  • Testing

Testing

  • Feature implemented as per requirements
  • Manual testing performed
  • Unit / Integration tests added
  • Test coverage updated

Documentation

  • Changelog entry added
  • Documentation updated
  • Examples / usage instructions updated

Checklist

  • Linked related issue(s)
  • Feature clearly described
  • Code self-reviewed
  • PR ready for review

Risks / Impact

  • Minimal risk; only project scaffolding and static analysis setup.
  • Review focus: Bootstrap initialization scripts and PHPStan configuration.

Notes

  • Part of Skeleton v0.2.0 preparation.
  • Screenshots or further usage instructions can be added if needed.

- 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.
@dieselxxx dieselxxx requested review from danijelgalic and removed request for danijelgalic March 24, 2026 08:12
@dieselxxx dieselxxx added priority: Normal This issue or pull request is of normal priority and will be addressed in the regular workflow. repo: Skeleton Tasks related to Skeleton starter project. scope: Other Issues or PRs that do not fit any defined scope. status: Draft This issue or pull request is in draft mode and not yet ready for review. labels Mar 24, 2026
@dieselxxx dieselxxx moved this from Todo to Complated in 🚩 Triage Mar 24, 2026
@dieselxxx dieselxxx moved this from Pending to Abandoned in 📌 Skeleton Development Mar 24, 2026
@dieselxxx dieselxxx added this to the Development v1 milestone Mar 24, 2026
@dieselxxx dieselxxx linked an issue Mar 24, 2026 that may be closed by this pull request
3 tasks
@dieselxxx dieselxxx moved this from Abandoned to In Progress in 📌 Skeleton Development Mar 24, 2026
- 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.
@dieselxxx dieselxxx added status: Completed This issue or pull request has been finished, merged, or resolved. and removed status: Draft This issue or pull request is in draft mode and not yet ready for review. labels Mar 24, 2026
@dieselxxx dieselxxx moved this from In Progress to Completed in 📌 Skeleton Development Mar 24, 2026
@The-FireHub-Project The-FireHub-Project locked as resolved and limited conversation to collaborators Mar 24, 2026
@dieselxxx dieselxxx marked this pull request as ready for review March 24, 2026 09:06
@dieselxxx dieselxxx requested review from a team as code owners March 24, 2026 09:06
@dieselxxx dieselxxx merged commit a18972f into develop Mar 24, 2026
1 check passed
@dieselxxx dieselxxx deleted the feature/add-bootstrap-and-phpstan branch March 24, 2026 09:06
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

priority: Normal This issue or pull request is of normal priority and will be addressed in the regular workflow. repo: Skeleton Tasks related to Skeleton starter project. scope: Other Issues or PRs that do not fit any defined scope. status: Completed This issue or pull request has been finished, merged, or resolved.

Projects

Status: Completed
Status: Complated

Development

Successfully merging this pull request may close these issues.

[Feature]: Add Bootstrap and PHPStan

2 participants