PHPackages                             system3d/ifc2json - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. system3d/ifc2json

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

system3d/ifc2json
=================

Convert IFC files into JSON

v2.3(10y ago)5184PHPPHP &gt;=5.5.9

Since Jun 1Pushed 10y ago3 watchersCompare

[ Source](https://github.com/system3d/ifc2json)[ Packagist](https://packagist.org/packages/system3d/ifc2json)[ RSS](/packages/system3d-ifc2json/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependencies (1)Versions (23)Used By (0)

IFC to Json converter
=====================

[](#ifc-to-json-converter)

Installation / Usage
--------------------

[](#installation--usage)

1. Download and install IFC2JSON via Composer

    ```
    composer require system3d/ifc2json
    ```
2. Include the IFC2JSON class and set your IFC file

    ```
    use System3D\IFC2JSON\IFC2JSON;

    $ifcFile 	= "your-file.ifc";
    $IFC2JSON 	= new IFC2JSON( $ifcFile );
    ```
3. Get your JSON

    ```
    echo $IFC2JSON->getJson();
    ```

Advanced mode
-------------

[](#advanced-mode)

Advanced mode will return all the related objects intead of just an ref ID, and will filter the results to return only needed objects.

Pass TRUE as second argument to enable the Advanced mode

```
$IFC2JSON   = new IFC2JSON( $ifcFile, true );
```

Levels density
--------------

[](#levels-density)

By defaul, IFC2JSON will load in all the related objects for 3 levels only.

**1 level:**

[![](https://raw.githubusercontent.com/system3d/ifc2json/master/assets/level1.png)](https://raw.githubusercontent.com/system3d/ifc2json/master/assets/level1.png)

**2 levels:**

[![](https://raw.githubusercontent.com/system3d/ifc2json/master/assets/level2.png)](https://raw.githubusercontent.com/system3d/ifc2json/master/assets/level2.png)

**3 levels:**

[![](https://raw.githubusercontent.com/system3d/ifc2json/master/assets/level3.png)](https://raw.githubusercontent.com/system3d/ifc2json/master/assets/level3.png)

To get the related objects for bigger than 3 levels, pass an Integer as a third paramenter:

```
$IFC2JSON   = new IFC2JSON( $ifcFile, true, 5 );
```

BE CAREFUL! Higher levels of loading will results in a bigger outputs json file.

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~1 days

Total

22

Last Release

3663d ago

Major Versions

v0.6 → v1.02016-06-03

v1.9 → v2.02016-06-09

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2693019?v=4)[Luciano Tonet](/maintainers/lucianotonet)[@lucianotonet](https://github.com/lucianotonet)

---

Top Contributors

[![lucianotonet](https://avatars.githubusercontent.com/u/2693019?v=4)](https://github.com/lucianotonet "lucianotonet (35 commits)")

### Embed Badge

![Health badge](/badges/system3d-ifc2json/health.svg)

```
[![Health](https://phpackages.com/badges/system3d-ifc2json/health.svg)](https://phpackages.com/packages/system3d-ifc2json)
```

###  Alternatives

[mck89/peast

Peast is PHP library that generates AST for JavaScript code

19139.2M44](/packages/mck89-peast)[sauladam/shipment-tracker

Parses tracking information for several carriers, like UPS, USPS, DHL and GLS by simply scraping the data. No need for any kind of API access.

9843.5k](/packages/sauladam-shipment-tracker)[moonshine/layouts-field

Field for repeating groups of fields for MoonShine

107.9k](/packages/moonshine-layouts-field)[tcds-io/php-jackson

A lightweight, flexible object serializer for PHP, inspired by FasterXML/jackson

112.9k10](/packages/tcds-io-php-jackson)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
