Skip to content

Commit

Permalink
Merge pull request #1025 from bavix/l12-dev
Browse files Browse the repository at this point in the history
[11.x] Laravel 12
  • Loading branch information
rez1dent3 authored Feb 26, 2025
2 parents 3b39926 + 19bd091 commit f5469d4
Show file tree
Hide file tree
Showing 10 changed files with 974 additions and 205 deletions.
6 changes: 1 addition & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,7 @@ laravel-wallet - It's easy to work with a virtual wallet.

| Version | Laravel | PHP | Release date | End of improvements | End of support |
|------------|----------------|-----------------|--------------|---------------------|----------------|
| 10.x [LTS] | ^10.0,^11.0 | 8.1,8.2,8.3,8.4 | Jul 8, 2023 | May 1, 2024 | Feb 4, 2025 |
| 11.x | ^11.0 | 8.2,8.3,8.4 | Mar 14, 2024 | May 1, 2025 | Sep 6, 2025 |

> [!IMPORTANT]
> If you are using laravel-wallet ^10.0 with laravel ^11, then the minimum php version is 8.2.
| 11.x [LTS] | ^11.0, ^12.0 | 8.2,8.3,8.4 | Mar 14, 2024 | May 1, 2026 | Sep 6, 2026 |

### Upgrade Guide

Expand Down
180 changes: 93 additions & 87 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,90 +1,96 @@
{
"name": "bavix/laravel-wallet",
"description": "It's easy to work with a virtual wallet.",
"keywords": [
"laravel",
"credits",
"bavix",
"currency",
"laravel-wallet",
"laravel-package",
"virtual",
"wallet",
"payments"
],
"minimum-stability": "stable",
"homepage": "https://bavix.github.io/laravel-wallet/",
"license": "MIT",
"authors": [
{
"name": "Babichev Maxim",
"email": "[email protected]"
"name": "bavix/laravel-wallet",
"description": "It's easy to work with a virtual wallet.",
"keywords": [
"laravel",
"credits",
"bavix",
"currency",
"laravel-wallet",
"laravel-package",
"virtual",
"wallet",
"payments"
],
"minimum-stability": "stable",
"homepage": "https://bavix.github.io/laravel-wallet/",
"license": "MIT",
"authors": [
{
"name": "Babichev Maxim",
"email": "[email protected]"
}
],
"require": {
"php": "^8.2",
"ext-json": "*",
"ext-pdo": "*",
"brick/math": "~0.10",
"illuminate/contracts": "^11.0|^12.0",
"illuminate/database": "^11.0|^12.0",
"ramsey/uuid": "^4.0"
},
"require-dev": {
"driftingly/rector-laravel": "^2.0",
"ergebnis/phpstan-rules": "^2.1",
"infection/infection": "~0.27",
"larastan/larastan": "^3.0",
"laravel/cashier": "^15.0",
"nunomaduro/collision": "^8.0",
"orchestra/testbench": "^10.0",
"phpstan/phpstan": "^2.1",
"phpunit/phpunit": "^11.0",
"rector/rector": "^2.0",
"symplify/easy-coding-standard": "^12.1"
},
"suggest": {
"bavix/laravel-wallet-swap": "Addition to the laravel-wallet library for quick setting of exchange rates",
"bavix/laravel-wallet-uuid": "Addition to the laravel-wallet library uuid support in laravel-wallet",
"bavix/laravel-wallet-warmup": "Addition to the laravel-wallet library for refresh balance wallets"
},
"autoload": {
"psr-4": {
"Bavix\\Wallet\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"Bavix\\Wallet\\Test\\": "tests/"
}
},
"scripts": {
"parabench": "@php ./vendor/bin/testbench package:test --coverage-xml=build/coverage-xml --log-junit=build/junit.xml",
"infect": "@php vendor/bin/infection --coverage=build --min-msi=50 -j$(nproc) --only-covering-test-cases",
"phpstan": [
"@phpstan-src",
"@phpstan-tests"
],
"phpstan-src": "@php vendor/bin/phpstan analyse -vvv --memory-limit 2G -c phpstan.src.neon",
"phpstan-tests": "@php vendor/bin/phpstan analyse -vvv --memory-limit 2G -c phpstan.tests.neon",
"phpstan-baseline": [
"@phpstan-baseline-src",
"@phpstan-baseline-tests"
],
"phpstan-baseline-src": "@php vendor/bin/phpstan analyse -vvv --memory-limit 2G -c phpstan.src.neon --generate-baseline phpstan.src.baseline.neon",
"phpstan-baseline-tests": "@php vendor/bin/phpstan analyse -vvv --memory-limit 2G -c phpstan.tests.neon --generate-baseline phpstan.tests.baseline.neon",
"ecs": "@php vendor/bin/ecs check",
"ecs-fix": "@php vendor/bin/ecs check --fix",
"ecs-cc": "@php vendor/bin/ecs --clear-cache",
"rector": "@php vendor/bin/rector process --dry-run",
"rector-fix": "@php vendor/bin/rector process"
},
"extra": {
"laravel": {
"providers": [
"Bavix\\Wallet\\WalletServiceProvider"
]
}
},
"config": {
"process-timeout": 0,
"sort-packages": true,
"allow-plugins": {
"infection/extension-installer": true
}
}
],
"require": {
"php": "^8.2",
"ext-json": "*",
"ext-pdo": "*",
"brick/math": "~0.10",
"illuminate/contracts": "^11.0",
"illuminate/database": "^11.0",
"ramsey/uuid": "^4.0"
},
"require-dev": {
"driftingly/rector-laravel": "^1.0",
"ergebnis/phpstan-rules": "^2.1",
"infection/infection": "~0.27",
"larastan/larastan": "^2.8",
"laravel/cashier": "^15.0",
"nunomaduro/collision": "^8.0",
"orchestra/testbench": "^9.0",
"phpstan/phpstan": "^1.10",
"phpunit/phpunit": "^11.0",
"rector/rector": "^1.0",
"symplify/easy-coding-standard": "^12.1"
},
"suggest": {
"bavix/laravel-wallet-swap": "Addition to the laravel-wallet library for quick setting of exchange rates",
"bavix/laravel-wallet-uuid": "Addition to the laravel-wallet library uuid support in laravel-wallet",
"bavix/laravel-wallet-warmup": "Addition to the laravel-wallet library for refresh balance wallets"
},
"autoload": {
"psr-4": {
"Bavix\\Wallet\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"Bavix\\Wallet\\Test\\": "tests/"
}
},
"scripts": {
"parabench":"@php ./vendor/bin/testbench package:test --coverage-xml=build/coverage-xml --log-junit=build/junit.xml",
"infect": "@php vendor/bin/infection --coverage=build --min-msi=50 -j$(nproc) --only-covering-test-cases",
"phpstan": ["@phpstan-src", "@phpstan-tests"],
"phpstan-src": "@php vendor/bin/phpstan analyse -vvv --memory-limit 2G -c phpstan.src.neon",
"phpstan-tests": "@php vendor/bin/phpstan analyse -vvv --memory-limit 2G -c phpstan.tests.neon",
"phpstan-baseline": ["@phpstan-baseline-src", "@phpstan-baseline-tests"],
"phpstan-baseline-src": "@php vendor/bin/phpstan analyse -vvv --memory-limit 2G -c phpstan.src.neon --generate-baseline phpstan.src.baseline.neon",
"phpstan-baseline-tests": "@php vendor/bin/phpstan analyse -vvv --memory-limit 2G -c phpstan.tests.neon --generate-baseline phpstan.tests.baseline.neon",
"ecs": "@php vendor/bin/ecs check",
"ecs-fix": "@php vendor/bin/ecs check --fix",
"ecs-cc": "@php vendor/bin/ecs --clear-cache",
"rector": "@php vendor/bin/rector process --dry-run",
"rector-fix": "@php vendor/bin/rector process"
},
"extra": {
"laravel": {
"providers": [
"Bavix\\Wallet\\WalletServiceProvider"
]
}
},
"config": {
"process-timeout":0,
"sort-packages": true,
"allow-plugins": {
"infection/extension-installer": true
}
}
}
2 changes: 1 addition & 1 deletion database/2018_11_06_222923_create_transactions_table.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public function up(): void

public function down(): void
{
Schema::drop($this->table());
Schema::dropIfExists($this->table());
}

private function table(): string
Expand Down
2 changes: 1 addition & 1 deletion database/2018_11_07_192923_create_transfers_table.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public function up(): void

public function down(): void
{
Schema::drop($this->table());
Schema::dropIfExists($this->table());
}

private function table(): string
Expand Down
2 changes: 1 addition & 1 deletion database/2018_11_15_124230_create_wallets_table.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function up(): void
public function down(): void
{
Schema::disableForeignKeyConstraints();
Schema::drop($this->table());
Schema::dropIfExists($this->table());
}

private function table(): string
Expand Down
1 change: 1 addition & 0 deletions phpstan.common.neon
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@ includes:

parameters:
level: 9
reportUnmatchedIgnoredErrors: false
fileExtensions:
- php
Loading

0 comments on commit f5469d4

Please sign in to comment.