PHP code example of magdev / php-assimp

1. Go to this page and download the library: Download magdev/php-assimp 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/ */

    

magdev / php-assimp example snippets


use Assimp\Command\Command;
use Assimp\Command\Verbs\ListExtensionsVerb;

$exec = new Command('/path/to/assimp');
$result = $exec->execute(new ListExtensionsVerb());
if ($result->isSuccess()) {
    print_r($result->getOutput());
}
json
{
    "agdev/php-assimp": "dev-master"
    }
}