rgzone / bignum-demo
Symfony demo application showcasing the capabilities of the rgzone/bignum arbitrary-precision integer extension.
dev-master
2026-06-02 17:11 UTC
Requires
- php: >=8.4
- ext-bignum: *
- ext-ctype: *
- ext-iconv: *
- symfony/console: 8.1.*
- symfony/dotenv: 8.1.*
- symfony/flex: ^2
- symfony/framework-bundle: 8.1.*
- symfony/runtime: 8.1.*
- symfony/yaml: 8.1.*
Requires (Dev)
- symfony/maker-bundle: ^1.67
Conflicts
This package is auto-updated.
Last update: 2026-06-02 17:11:18 UTC
README
Symfony demo application showcasing the capabilities of the rgzone/bignum arbitrary-precision integer extension.
Requirements
- Docker
- Optional:
taskfrom Taskfile
Build
Build the image manually:
docker build -t bignum-example .
Or via Taskfile:
task cli
Run
Start an interactive shell in the container:
docker run --rm -it bignum-example bash
Inside the container, run the Symfony console:
php bin/console
Example Command
The demo command is app:example.
It runs an interactive big integer calculation flow:
- asks for the first integer
- asks you to choose an operation
- asks for the second integer
- prints the result
Run it inside the container:
php bin/console app:example
Supported operations:
addsubtractmultiplydividemodulo