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
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,10 @@ The maths is plain PHP. The magic is only in getting the engine to call it.
## Installation

```bash
composer require lisachenko/z-engine:dev-master lisachenko/native-php-matrix:dev-master
composer require lisachenko/native-php-matrix:dev-master
```

Z-Engine does not yet have a stable tag with PHP 8.4 support, so both packages are consumed from `dev-master`. Composer only resolves development stability at the **root** level, which is why the requirement has to be written into your own project rather than inherited — your `composer.json` needs:
Z-Engine ships stable PHP 8.4 releases (`8.4.0` and up), and this package requires it as `~8.4.0` (z-engine minors track PHP minors and are not interchangeable) — no dev dependency there anymore. Until the next native-php-matrix release is tagged, the package itself is still consumed from `dev-master`; Composer only resolves development stability at the **root** level, so your `composer.json` needs:

```json
{
Expand All @@ -75,7 +75,7 @@ Z-Engine does not yet have a stable tag with PHP 8.4 support, so both packages a
}
```

Once a stable 8.4-capable Z-Engine release exists, both constraints collapse back to ordinary version ranges.
Once a native-php-matrix release covering the current code is tagged, this collapses to a plain `composer require lisachenko/native-php-matrix`.

No initialization call is needed: `bootstrap.php` ships in the package's `files` autoload and sets everything up behind `require vendor/autoload.php`.

Expand Down
4 changes: 1 addition & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"require": {
"php": "~8.4.0",
"ext-ffi": "*",
"lisachenko/z-engine": "dev-master"
"lisachenko/z-engine": "~8.4.0"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.75",
Expand All @@ -26,8 +26,6 @@
},
"files": ["bootstrap.php"]
},
"minimum-stability": "dev",
"prefer-stable": true,
"scripts": {
"test": "phpunit",
"phpstan": "phpstan analyse",
Expand Down