PHP code example of masakielastic / hello-rust

1. Go to this page and download the library: Download masakielastic/hello-rust library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

masakielastic / hello-rust example snippets


git clone https://github.com/masakielastic/php-ext-hello-rust
cd php-ext-hello-rust

pie repository:add path "$PWD"

pie build masakielastic/hello-rust
pie install masakielastic/hello-rust

pie repository:add vcs https://github.com/masakielastic/php-ext-hello-rust
pie build masakielastic/hello-rust
pie install masakielastic/hello-rust

pie repository:remove https://github.com/masakielastic/php-ext-hello-rust

php --ri hello_rust || true
php -m | grep -i hello_rust || true