PHPackages                             fidelize/flowchart-to-png - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. fidelize/flowchart-to-png

ActiveProject[Utility &amp; Helpers](/categories/utility)

fidelize/flowchart-to-png
=========================

Convert from flowchart json encoded to png

1.1.0(9y ago)17.8k1PHPPHP &gt;=5.6

Since Mar 29Pushed 8y ago11 watchersCompare

[ Source](https://github.com/fidelize/flowchart-to-png)[ Packagist](https://packagist.org/packages/fidelize/flowchart-to-png)[ RSS](/packages/fidelize-flowchart-to-png/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (2)Versions (6)Used By (0)

flowchart-to-png
================

[](#flowchart-to-png)

Setup
-----

[](#setup)

Add the library to your `composer.json` file in your project:

```
{
  "require": {
      "fidelize/flowchart-to-png": "1.0.0"
  }
}
```

Use [composer](http://getcomposer.org) to install the library:

```
$ php composer.phar install
```

Composer will install flowchart-to-png inside your vendor folder. Then you can add the following to your .php files to use the library with Autoloading.

```
require_once(__DIR__ . '/vendor/autoload.php');
```

Usage
-----

[](#usage)

```
$json = '{
  "nodes": [
    {
      "id": "flowchartStart",
      "type": "start",
      "text": "Start",
      "left": "20px",
      "top": "180px",
      "countSource": null
    },
    {
      "id": "flowchartEnd",
      "type": "end",
      "text": "End",
      "left": "940px",
      "top": "180px",
      "countSource": null
    },
    {
      "id": "flowchartWindow1489779664638",
      "type": "action",
      "text": "Approve",
      "left": "680px",
      "top": "260px",
      "action": "Approve",
      "extraParams": "",
      "countSource": "1"
    },
    {
      "id": "flowchartWindow1489779672763",
      "type": "action",
      "text": "Reject",
      "left": "620px",
      "top": "40px",
      "action": "Reject",
      "extraParams": "",
      "countSource": "1"
    }
  ],
  "edges": [
    {
      "source": "flowchartStart",
      "target": "flowchartWindow1489779664638",
      "data": {
        "label": "",
        "positionSource": "RightMiddle",
        "positionTarget": "LeftMiddle"
      }
    },
    {
      "source": "flowchartStart",
      "target": "flowchartWindow1489779672763",
      "data": {
        "label": "",
        "positionSource": "RightMiddle",
        "positionTarget": "LeftMiddle"
      }
    },
    {
      "source": "flowchartWindow1489779672763",
      "target": "flowchartEnd",
      "data": {
        "label": "Success",
        "return": "success",
        "positionSource": "RightMiddle",
        "positionTarget": "LeftMiddle"
      }
    },
    {
      "source": "flowchartWindow1489779664638",
      "target": "flowchartEnd",
      "data": {
        "label": "Success",
        "return": "success",
        "positionSource": "RightMiddle",
        "positionTarget": "LeftMiddle"
      }
    }
  ]
}';

$flowChartImage = new FlowChartImage();
$flowChartImage->setContent($json);
$flowChartImage->generate()->toPng($path);
```

Change Node Color
-----------------

[](#change-node-color)

```
$image->setSelectedAction('flowchartWindow1489779664638');
$image->setSelectedColor([255, 0, 0]);
```

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~58 days

Total

4

Last Release

3161d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/750b110f062631f035f4762f2b07f8e21de79d750f02e56050f491e3f7fe9d23?d=identicon)[alanwillms](/maintainers/alanwillms)

---

Top Contributors

[![renatofl](https://avatars.githubusercontent.com/u/4165266?v=4)](https://github.com/renatofl "renatofl (7 commits)")[![marcodearaujo](https://avatars.githubusercontent.com/u/4330991?v=4)](https://github.com/marcodearaujo "marcodearaujo (5 commits)")[![alanwillms](https://avatars.githubusercontent.com/u/704204?v=4)](https://github.com/alanwillms "alanwillms (2 commits)")[![brimes](https://avatars.githubusercontent.com/u/3286930?v=4)](https://github.com/brimes "brimes (2 commits)")

---

Tags

phppngflowchartFidelize

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/fidelize-flowchart-to-png/health.svg)

```
[![Health](https://phpackages.com/badges/fidelize-flowchart-to-png/health.svg)](https://phpackages.com/packages/fidelize-flowchart-to-png)
```

###  Alternatives

[imanghafoori/laravel-anypass

A minimal yet powerful package to help you in development.

21421.6k](/packages/imanghafoori-laravel-anypass)

PHPackages © 2026

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