PHP extension wrapping amzn/ion-c. See the Amazon ION specification.
BSD-2-Clause; see spdx.org.
- PHP-8.1
- ext/date (standard)
- ext/spl (standard)
- amzn/ion-c (bundled as git submodule)
phpize
./configure
make # -j$(nproc)
sudo make install # INSTALL=install
docker build -t php-ion
docker run --rm php-ion -r 'echo ion\serialize(ion\Symbol\Table\PHP());'
See ion.stub.php.
Due to private internal state of ion-c's readers and writers, instances of the following PHP classes cannot be cloned:
- ion\Reader\Reader
- ion\Writer\Writer
- ion\Serializer\PHP
- ion\Unserializer\PHP