remicollet / ext-ion

PHP extension for Amazon ION

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pecl/ion

About:

PHP extension wrapping amzn/ion-c. See the Amazon ION specification.

License:

BSD-2-Clause; see spdx.org.

Installation:

Dependencies:

Required:

  • PHP-8.1
    • ext/date (standard)
    • ext/spl (standard)

Optional:

Trinity:

phpize
./configure # --with-php-config=<path/to/php-config>
make # -j$(nproc)
sudo make install # INSTALL=install

PECL

pecl install ion

PHARext

Watch out for PECL replicates and pharext packages attached to releases.

Try with Docker:

docker build -t php-ion
docker run --rm php-ion -r 'echo ion\serialize(ion\Symbol\PHP::asTable());'

Editor Stub:

See ion.stub.php.

Known Issues:

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

About

PHP extension for Amazon ION

License:BSD 2-Clause "Simplified" License


Languages

Language:C 74.0%Language:PHP 24.6%Language:M4 0.9%Language:Makefile 0.3%Language:Dockerfile 0.1%