PHP code example of system3d / ifc2json
1. Go to this page and download the library: Download system3d/ifc2json 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/ */
system3d / ifc2json example snippets
php
use System3D\IFC2JSON\IFC2JSON;
$ifcFile = "your-file.ifc";
$IFC2JSON = new IFC2JSON( $ifcFile );
php
echo $IFC2JSON->getJson();
php
$IFC2JSON = new IFC2JSON( $ifcFile, true );
php
$IFC2JSON = new IFC2JSON( $ifcFile, true, 5 );