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: 2 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,6 @@ on:
jobs:
check:
uses: thesis-php/.github/.github/workflows/check.yml@main
with:
php_versions: '["8.4"]'
secrets: inherit
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,13 @@ echo Endian\Order::little->unpackFloat(

```php
use Thesis\Endian;
use BcMath\Number;

echo Endian\Order::native->unpackInt64(
Endian\Order::native->packInt64(\PHP_INT_MAX),
); // 9223372036854775807
echo Endian\Order::native()
->unpackInt64(
Endian\Order::native()->packInt64(new Number('9223372036854775807')),
)
->value; // 9223372036854775807
```

### Supported types:
Expand Down
13 changes: 6 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,21 +18,20 @@
}
],
"require": {
"php": "^8.3"
"php": "^8.4",
"ext-bcmath": "*"
},
"require-dev": {
"bamarni/composer-bin-plugin": "^1.8.2",
"ergebnis/composer-normalize": "^2.48.2",
"phpunit/phpunit": "^10.5.58"
"phpunit/phpunit": "^10.5.58",
"symfony/var-dumper": "^7.3"
},
"minimum-stability": "stable",
"autoload": {
"psr-4": {
"Thesis\\Endian\\": "src/"
},
"files": [
"src/Internal/functions.php"
]
}
},
"autoload-dev": {
"psr-4": {
Expand All @@ -46,7 +45,7 @@
},
"bump-after-update": "dev",
"platform": {
"php": "8.3"
"php": "8.4"
},
"sort-packages": true
},
Expand Down
246 changes: 243 additions & 3 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions docker/php/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM composer:2.8 AS composer
FROM mlocati/php-extension-installer:2.7 AS php-extension-installer
FROM php:8.3-cli-bookworm AS php-dev
FROM php:8.4-cli-bookworm AS php-dev

COPY --from=composer /usr/bin/composer /usr/bin/
COPY --from=php-extension-installer /usr/bin/install-php-extensions /usr/bin/
Expand All @@ -18,7 +18,7 @@ EOF

RUN <<EOF
set -e
install-php-extensions opcache pcntl sockets pgsql bcmath gmp intl uv
install-php-extensions opcache pcntl sockets pgsql bcmath intl uv
apt-get remove -q -y ${PHPIZE_DEPS} ${BUILD_DEPENDS}
EOF

Expand Down
41 changes: 0 additions & 41 deletions src/Internal/functions.php

This file was deleted.

Loading
Loading