This directory contains sample applications that show how to use the Apache Iggy PHP SDK extension.
Start the server from the repository root:
cargo run --bin iggy-server -- --fresh --with-default-root-credentialsFrom examples/php, build the PHP extension and point PHP at it:
(cd ../../foreign/php && cargo build)
export PHP_IGGY_EXTENSION="$(pwd)/../../foreign/php/target/debug/libiggy_php.so"On macOS, use ../../foreign/php/target/debug/libiggy_php.dylib instead.
php -d extension="${PHP_IGGY_EXTENSION:-../../foreign/php/target/debug/libiggy_php.so}" getting-started/producer.php
php -d extension="${PHP_IGGY_EXTENSION:-../../foreign/php/target/debug/libiggy_php.so}" getting-started/consumer.phpphp -d extension="${PHP_IGGY_EXTENSION:-../../foreign/php/target/debug/libiggy_php.so}" basic/producer.php
php -d extension="${PHP_IGGY_EXTENSION:-../../foreign/php/target/debug/libiggy_php.so}" basic/consumer.phpThe examples use IGGY_CONNECTION_STRING when it is set; use a binary transport
with credentials for automatic login. Otherwise they connect over TCP using
IGGY_HOST and IGGY_PORT, then log in with IGGY_USERNAME and IGGY_PASSWORD
without URL encoding. Defaults are 127.0.0.1:8090 and iggy/iggy.