Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@

# Exclude files and folders from Git archive downloads
/.github export-ignore
/.editorconfig export-ignore
/.gitattributes export-ignore
/.gitignore export-ignore
/CHANGELOG.md export-ignore
/CITATION.cff export-ignore
/README.md export-ignore

# Explicit text file types
*.php text
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,8 @@ Thumbs.db
# Composer dependencies resolver
composer.lock

# Storage folder for runtime-generated files
/storage/

# Vendor
/vendor/
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [v0.2.0](https://github.com/The-FireHub-Project/Skeleton/compare/v0.1.1...v0.2.0) – 2026-03-24

### Added
- Add bootstrap/app.php and update composer.json for Bootstrap integration (pr: [#8](https://github.com/The-FireHub-Project/Skeleton/pull/8), commit: [`7531d34`](https://github.com/The-FireHub-Project/Skeleton/commit/7531d34))
- Integrate FireHub Framework Bootstrap in `index.php` (pr: [#8](https://github.com/The-FireHub-Project/Skeleton/pull/8), commit: [`316a6db`](https://github.com/The-FireHub-Project/Skeleton/commit/316a6db))
- Add PHPUnit and PHPStan configuration files, update `.gitignore` (pr: [#8](https://github.com/The-FireHub-Project/Skeleton/pull/8), commit: [`c0798e8`](https://github.com/The-FireHub-Project/Skeleton/commit/c0798e8))

## [v0.1.1](https://github.com/The-FireHub-Project/Skeleton/compare/v0.1.0...v0.1.1) – 2026-02-24

### Added
Expand Down
9 changes: 5 additions & 4 deletions README.md

Large diffs are not rendered by default.

Empty file added app/.gitkeep
Empty file.
37 changes: 37 additions & 0 deletions bootstrap/app.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<?php declare(strict_types = 1);

/**
* This file is part of the FireHub Project ecosystem
*
* This is a configuration file for lading FireHub Framework with HTTP kernel.
* @since 1.0.0
*
* @author Danijel Galić <danijel.galic@outlook.com>
* @copyright 2026 The FireHub Project - All rights reserved
* @license https://opensource.org/licenses/MIT MIT License
*
* @php-version 8.4
* @package App\Bootstrap
*
* @version GIT: $Id$ Blob checksum.
*/

namespace App\Bootstrap;

use FireHub\Core\Support\Bootstrap\FireHubConfigurator;

/**
* ### Let there be light
* @since 1.0.0
*
* @throws \FireHub\Core\Throwable\Exception\Bootstrap\FailedToLoadBootloaderException If a bootloader fails to
* load.
* @throws \FireHub\Core\Throwable\Exception\Bootstrap\NotBootloaderException If a bootloader is not a bootloader.
*
* @return \FireHub\Core\FireHub
*/
return new FireHubConfigurator()
->withBootloaders([
//
])
->create();
13 changes: 12 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,18 @@
"homepage": "https://the-firehub-project.github.io/Skeleton",
"license": "MIT",
"require": {
"php": "^8.5"
"php": "^8.5",
"firehub/core-foundation": "~0.2"
},
"require-dev": {
"phpstan/phpstan": "^2.0",
"phpstan/phpstan-strict-rules": "^2.0",
"phpunit/phpunit": "^13.0"
},
"autoload": {
"files": [
"vendor/firehub/core-foundation/phar/core.phar"
]
},
"minimum-stability": "dev",
"prefer-stable": true,
Expand Down
25 changes: 25 additions & 0 deletions phpstan.dist.neon
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
includes:
- phar://phpstan.phar/conf/bleedingEdge.neon
- vendor/phpstan/phpstan-strict-rules/rules.neon

parameters:
level: max
paths:
- app/
tmpDir: storage/cache/phpstan/
ignoreErrors:
- identifier: ternary.shortNotAllowed

checkImplicitMixed: true
checkMissingTypehints: true
checkTooWideReturnTypesInProtectedAndPublicMethods: true
checkUninitializedProperties: true
reportAlwaysTrueInLastCondition: true
reportAnyTypeWideningInVarTag: true
reportMaybesInMethodSignatures: true
reportMaybesInPropertyPhpDocTypes: true
reportPossiblyNonexistentGeneralArrayOffset: true
reportPossiblyNonexistentConstantArrayOffset: true
reportStaticMethodSignatures: true
reportUnmatchedIgnoredErrors: false
treatPhpDocTypesAsCertain: false
21 changes: 21 additions & 0 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit bootstrap = "web/index.php"
colors="true"
cacheDirectory="storage/cache/phpunit/.phpunit.cache"
displayDetailsOnTestsThatTriggerWarnings="true">
<testsuites>
<testsuite name="unit">
<directory>tests/unit</directory>
</testsuite>
</testsuites>
<source>
<include>
<directory suffix=".php">app</directory>
</include>
</source>
<php>
<ini name="display_errors" value="1"/>
<ini name="display_startup_errors" value="1"/>
<ini name="error_reporting" value="E_ALL &amp; ~E_WARNING &amp; ~E_NOTICE &amp; ~E_DEPRECATED" />
</php>
</phpunit>
5 changes: 4 additions & 1 deletion web/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,7 @@
*/

/** ### Register the Composer autoloader */
require __DIR__.'/../vendor/autoload.php';
require __DIR__.'/../vendor/autoload.php';

/** ### Bootstrap FireHub Framework */
echo (require __DIR__.'/../bootstrap/app.php')->boot();
Loading