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
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
APP_NAME="Quantum PHP Framework"
APP_VERSION=3.0.0
APP_VERSION=3.0.3
DB_DRIVER=mysql
DB_HOST=localhost
DB_NAME=
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
strategy:
matrix:
operating-system: [ ubuntu-latest ]
php-versions: ['7.4', '8.0', '8.1' ]
php-versions: ['8.0', '8.1', '8.2' ]

runs-on: ${{ matrix.operating-system }}

Expand Down
32 changes: 32 additions & 0 deletions .scrutinizer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
build:
environment:
php:
version: 8.1

dependencies:
before:
- composer self-update --2 || true
override:
- composer install --no-interaction --prefer-dist --no-progress --ignore-platform-req=ext-zip

nodes:
analysis:
project_setup:
override:
- 'true'
tests:
override:
- php-scrutinizer-run

filter:
excluded_paths:
- 'tests/*'

checks:
php: true

coding_style:
php:
spaces:
around_operators:
concatenation: true
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog and this project adheres to Semantic Versioning.

## [Unreleased]

### Changed
- Raised the project runtime baseline to PHP 8.0 and updated CI to exercise PHP 8.0, 8.1, and 8.2.
- Bumped the PHPStan parser baseline to PHP 8.0.

## [3.0.0] - 2026-05-28

### Changed
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@

<h2>Installation</h2>

<p><strong>Requirements:</strong> PHP 8.0 or newer.</p>

<h3> 1. Create new project </h3>

```bash
Expand Down
34 changes: 25 additions & 9 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,37 @@
{
"name": "quantum/project",
"description": "Quantum Project",
"keywords": ["framework", "php", "quantum", "project"],
"homepage": "https://quantumphp.io",
"keywords": [
"framework",
"php",
"quantum",
"project"
],
"license": "MIT",
"authors": [
{
"name": "Arman Ag",
"email": "arman@quantumphp.io"
},
{
"name": "Contributors",
"homepage": "https://github.com/quantum-php/framework/contributors"
}
],
"support": {
"issues": "https://github.com/quantum-php/project/issues",
"source": "https://github.com/quantum-php/project"
},
"type": "project",
"require": {
"php": "^7.4 || ^8.0",
"quantum/framework": "^3.0.0",
"php": "^8.0",
"quantum/framework": "dev-master",
Comment thread
armanist marked this conversation as resolved.
"fakerphp/faker": "^1.15",
"bluemmb/faker-picsum-photos-provider": "^2.0",
"ottaviano/faker-gravatar": "^0.3.0",
"symfony/process": "^5.4"
"symfony/process": "^5.4",
"symfony/yaml": "^5.4.52"
},
"require-dev": {
"phpunit/phpunit": "^9.0",
Expand Down Expand Up @@ -45,10 +66,5 @@
"rector:fix": "vendor/bin/rector process",
"phpstan": "vendor/bin/phpstan analyse --memory-limit=-1 --error-format=github",
"test": "vendor/bin/phpunit --stderr --coverage-clover coverage.xml"
},
"config": {
"audit": {
"block-insecure": false
}
}
}
10 changes: 2 additions & 8 deletions helpers/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,8 @@

/**
* Quantum PHP Framework
*
* An open source software development framework for PHP
*
* @package Quantum
* @author Arman Ag. <arman.ag@softberg.org>
* @copyright Copyright (c) 2018 Softberg LLC (https://softberg.org)
* @link http://quantum.softberg.org/
* @since 3.0.0
* An open-source software development framework for PHP
* @link https://quantumphp.io
*/

use Quantum\HttpClient\Exceptions\HttpClientException;
Expand Down
2 changes: 1 addition & 1 deletion phpstan.neon.dist
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
parameters:
phpVersion: 70400
phpVersion: 80000
level: 5
paths:
- shared
Expand Down
2 changes: 2 additions & 0 deletions rector.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
declare(strict_types=1);

use Rector\TypeDeclaration\Rector\StmtsAwareInterface\DeclareStrictTypesRector;
use Rector\Php80\Rector\Class_\ClassPropertyAssignToConstructorPromotionRector;
use Rector\Set\ValueObject\LevelSetList;
use Rector\Set\ValueObject\SetList;
use Rector\Config\RectorConfig;
Expand All @@ -18,6 +19,7 @@
])
->withSkip([
__DIR__ . '/modules',
ClassPropertyAssignToConstructorPromotionRector::class,
])
->withSets([
LevelSetList::UP_TO_PHP_80,
Expand Down
10 changes: 2 additions & 8 deletions shared/Commands/CommandValidationTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,8 @@

/**
* Quantum PHP Framework
*
* An open source software development framework for PHP
*
* @package Quantum
* @author Arman Ag. <arman.ag@softberg.org>
* @copyright Copyright (c) 2018 Softberg LLC (https://softberg.org)
* @link http://quantum.softberg.org/
* @since 3.0.0
* An open-source software development framework for PHP
* @link https://quantumphp.io
*/

namespace Shared\Commands;
Expand Down
10 changes: 2 additions & 8 deletions shared/Commands/CommentCreateCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,8 @@

/**
* Quantum PHP Framework
*
* An open source software development framework for PHP
*
* @package Quantum
* @author Arman Ag. <arman.ag@softberg.org>
* @copyright Copyright (c) 2018 Softberg LLC (https://softberg.org)
* @link http://quantum.softberg.org/
* @since 3.0.0
* An open-source software development framework for PHP
* @link https://quantumphp.io
*/

namespace Shared\Commands;
Expand Down
10 changes: 2 additions & 8 deletions shared/Commands/CommentDeleteCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,8 @@

/**
* Quantum PHP Framework
*
* An open source software development framework for PHP
*
* @package Quantum
* @author Arman Ag. <arman.ag@softberg.org>
* @copyright Copyright (c) 2018 Softberg LLC (https://softberg.org)
* @link http://quantum.softberg.org/
* @since 3.0.0
* An open-source software development framework for PHP
* @link https://quantumphp.io
*/

namespace Shared\Commands;
Expand Down
12 changes: 3 additions & 9 deletions shared/Commands/DemoCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,8 @@

/**
* Quantum PHP Framework
*
* An open source software development framework for PHP
*
* @package Quantum
* @author Arman Ag. <arman.ag@softberg.org>
* @copyright Copyright (c) 2018 Softberg LLC (https://softberg.org)
* @link http://quantum.softberg.org/
* @since 3.0.0
* An open-source software development framework for PHP
* @link https://quantumphp.io
*/

namespace Shared\Commands;
Expand Down Expand Up @@ -475,7 +469,7 @@ private function buildCommand(string $commandName, array $arguments): array
$command = ['php', 'qt', $commandName];

foreach ($arguments as $key => $value) {
if (!is_int($key) && substr($key, 0, 2) !== '--') {
if (!is_int($key) && !str_starts_with($key, '--')) {
$command[] = (string) $value;
continue;
}
Expand Down
10 changes: 2 additions & 8 deletions shared/Commands/PostCreateCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,8 @@

/**
* Quantum PHP Framework
*
* An open source software development framework for PHP
*
* @package Quantum
* @author Arman Ag. <arman.ag@softberg.org>
* @copyright Copyright (c) 2018 Softberg LLC (https://softberg.org)
* @link http://quantum.softberg.org/
* @since 3.0.0
* An open-source software development framework for PHP
* @link https://quantumphp.io
*/

namespace Shared\Commands;
Expand Down
10 changes: 2 additions & 8 deletions shared/Commands/PostDeleteCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,8 @@

/**
* Quantum PHP Framework
*
* An open source software development framework for PHP
*
* @package Quantum
* @author Arman Ag. <arman.ag@softberg.org>
* @copyright Copyright (c) 2018 Softberg LLC (https://softberg.org)
* @link http://quantum.softberg.org/
* @since 3.0.0
* An open-source software development framework for PHP
* @link https://quantumphp.io
*/

namespace Shared\Commands;
Expand Down
10 changes: 2 additions & 8 deletions shared/Commands/PostShowCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,8 @@

/**
* Quantum PHP Framework
*
* An open source software development framework for PHP
*
* @package Quantum
* @author Arman Ag. <arman.ag@softberg.org>
* @copyright Copyright (c) 2018 Softberg LLC (https://softberg.org)
* @link http://quantum.softberg.org/
* @since 3.0.0
* An open-source software development framework for PHP
* @link https://quantumphp.io
*/

namespace Shared\Commands;
Expand Down
10 changes: 2 additions & 8 deletions shared/Commands/PostUpdateCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,8 @@

/**
* Quantum PHP Framework
*
* An open source software development framework for PHP
*
* @package Quantum
* @author Arman Ag. <arman.ag@softberg.org>
* @copyright Copyright (c) 2018 Softberg LLC (https://softberg.org)
* @link http://quantum.softberg.org/
* @since 3.0.0
* An open-source software development framework for PHP
* @link https://quantumphp.io
*/

namespace Shared\Commands;
Expand Down
10 changes: 2 additions & 8 deletions shared/Commands/UserCreateCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,8 @@

/**
* Quantum PHP Framework
*
* An open source software development framework for PHP
*
* @package Quantum
* @author Arman Ag. <arman.ag@softberg.org>
* @copyright Copyright (c) 2018 Softberg LLC (https://softberg.org)
* @link http://quantum.softberg.org/
* @since 3.0.0
* An open-source software development framework for PHP
* @link https://quantumphp.io
*/

namespace Shared\Commands;
Expand Down
10 changes: 2 additions & 8 deletions shared/Commands/UserDeleteCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,8 @@

/**
* Quantum PHP Framework
*
* An open source software development framework for PHP
*
* @package Quantum
* @author Arman Ag. <arman.ag@softberg.org>
* @copyright Copyright (c) 2018 Softberg LLC (https://softberg.org)
* @link http://quantum.softberg.org/
* @since 3.0.0
* An open-source software development framework for PHP
* @link https://quantumphp.io
*/

namespace Shared\Commands;
Expand Down
10 changes: 2 additions & 8 deletions shared/Commands/UserShowCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,8 @@

/**
* Quantum PHP Framework
*
* An open source software development framework for PHP
*
* @package Quantum
* @author Arman Ag. <arman.ag@softberg.org>
* @copyright Copyright (c) 2018 Softberg LLC (https://softberg.org)
* @link http://quantum.softberg.org/
* @since 3.0.0
* An open-source software development framework for PHP
* @link https://quantumphp.io
*/

namespace Shared\Commands;
Expand Down
10 changes: 2 additions & 8 deletions shared/DTOs/CommentDTO.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,8 @@

/**
* Quantum PHP Framework
*
* An open source software development framework for PHP
*
* @package Quantum
* @author Arman Ag. <arman.ag@softberg.org>
* @copyright Copyright (c) 2018 Softberg LLC (https://softberg.org)
* @link http://quantum.softberg.org/
* @since 3.0.0
* An open-source software development framework for PHP
* @link https://quantumphp.io
*/

namespace Shared\DTOs;
Expand Down
10 changes: 2 additions & 8 deletions shared/DTOs/PostDTO.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,8 @@

/**
* Quantum PHP Framework
*
* An open source software development framework for PHP
*
* @package Quantum
* @author Arman Ag. <arman.ag@softberg.org>
* @copyright Copyright (c) 2018 Softberg LLC (https://softberg.org)
* @link http://quantum.softberg.org/
* @since 3.0.0
* An open-source software development framework for PHP
* @link https://quantumphp.io
*/

namespace Shared\DTOs;
Expand Down
Loading
Loading