PHPackages                             hbvsoft/jpgraph - 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. [Image &amp; Media](/categories/media)
4. /
5. hbvsoft/jpgraph

ActiveLibrary[Image &amp; Media](/categories/media)

hbvsoft/jpgraph
===============

Composer Friendly, full refactor of JpGraph, library to make graphs and charts - PHP 8.2 compatible, deprecated removed

1.0.0(10mo ago)001QPL-1.0PHPPHP &gt;=8.0CI failing

Since Aug 21Pushed 10mo agoCompare

[ Source](https://github.com/hbagheri/jpgraph)[ Packagist](https://packagist.org/packages/hbvsoft/jpgraph)[ Docs](https://github.com/hbagheri/jpgraph)[ RSS](/packages/hbvsoft-jpgraph/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (11)Versions (3)Used By (1)

JpGraph Community Edition v4.1.1 (Fork by Hassan Bagheri)
=========================================================

[](#jpgraph-community-edition-v411-fork-by-hassan-bagheri)

[![Packagist Version](https://camo.githubusercontent.com/f24cea98b12a5891e6eebc2d3d110e8622f20f3de915124bd96e4e13367b7583/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f68626167686572692f6a706772617068)](https://packagist.org/packages/hbagheri/jpgraph)[![Packagist Downloads](https://camo.githubusercontent.com/9d7ca3165d827d0657544c2dc672d0d279fcbea3ce9b7c3d3468ab728f1079b5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f68626167686572692f6a7067726170682e737667)](https://packagist.org/packages/hbagheri/jpgraph)[![GitHub Actions Status](https://github.com/hbagheri/jpgraph/workflows/Tests/badge.svg)](https://github.com/hbagheri/jpgraph/actions)

**این نسخه فورک شده JpGraph Community Edition v4.1.0 است که تنها تغییرات اعمال شده حذف توابع deprecated و سازگاری کامل با PHP 8.2 می‌باشد.**

---

درباره این فورک
---------------

[](#درباره-این-فورک)

این فورک بر پایه نسخه [JpGraph Community Edition v4.1.0](https://github.com/amenadiel/jpgraph) ساخته شده است که کاملاً با PHP 8.2 سازگار است و توابع و هشدارهای deprecated حذف یا اصلاح شده‌اند.

تمامی تغییرات فقط به هدف بروزرسانی سازگاری با نسخه‌های جدید PHP انجام شده و هیچ تغییر عملکردی یا ویژگی جدیدی به کتابخانه اضافه نشده است.

این پروژه همچنان کاملاً منطبق با استانداردهای PSR-1, PSR-2 و PSR-4 باقی مانده است.

---

ویژگی‌ها
--------

[](#ویژگی‌ها)

- سازگار با PHP 8.2 و حذف هشدارهای deprecated
- حفظ ساختار PSR-4 و namespaces برای autoloading استاندارد
- حفظ تمامی قابلیت‌های اصلی نسخه اصلی JpGraph CE
- توابع و کدهای منسوخ PHP اصلاح شده بدون تغییر در منطق اصلی
- توزیع از طریق Packagist (فورک شخصی hbagheri/jpgraph)

---

نیازمندی‌ها و نصب
-----------------

[](#نیازمندی‌ها-و-نصب)

- این نسخه نیازمند PHP 7.2 به بالا است، ولی برای بهترین تجربه PHP 8.2 توصیه می‌شود.
- برای نصب کافی است از composer استفاده کنید:

```
composer require hbagheri/jpgraph
```

استفاده
-------

[](#استفاده)

همانند نسخه اصلی JpGraph، کافی است در پروژه خود composer install کنید و سپس از autoload استفاده کنید:

```
require_once 'vendor/autoload.php';

use hbvsoft\JpGraph\Graph;
use hbvsoft\JpGraph\Plot;

// ایجاد نمودار پای
$graph = new Graph\PieGraph(350, 250);
$graph->title->Set("A Simple Pie Plot");
$graph->SetBox(true);

$data = [40, 21, 17, 14, 23];
$p1 = new Plot\PiePlot($data);
$p1->ShowBorder();
$p1->SetColor('black');
$p1->SetSliceColors(['#1E90FF', '#2E8B57', '#ADFF2F', '#DC143C', '#BA55D3']);

$graph->Add($p1);
$graph->Stroke();
```

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance54

Moderate activity, may be stable

Popularity0

Limited adoption so far

Community20

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 80.6% 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

Unknown

Total

1

Last Release

316d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/5405224?v=4)[hassan](/maintainers/hbagheri)[@hbagheri](https://github.com/hbagheri)

---

Top Contributors

[![ffflabs](https://avatars.githubusercontent.com/u/238439?v=4)](https://github.com/ffflabs "ffflabs (225 commits)")[![allcontributors[bot]](https://avatars.githubusercontent.com/in/23186?v=4)](https://github.com/allcontributors[bot] "allcontributors[bot] (22 commits)")[![hbagheri](https://avatars.githubusercontent.com/u/5405224?v=4)](https://github.com/hbagheri "hbagheri (4 commits)")[![Spomky](https://avatars.githubusercontent.com/u/1091072?v=4)](https://github.com/Spomky "Spomky (4 commits)")[![iquito](https://avatars.githubusercontent.com/u/973653?v=4)](https://github.com/iquito "iquito (3 commits)")[![zhangsean](https://avatars.githubusercontent.com/u/2536402?v=4)](https://github.com/zhangsean "zhangsean (2 commits)")[![diegomarty](https://avatars.githubusercontent.com/u/11429554?v=4)](https://github.com/diegomarty "diegomarty (2 commits)")[![MoT3rror](https://avatars.githubusercontent.com/u/5009981?v=4)](https://github.com/MoT3rror "MoT3rror (2 commits)")[![eisberg](https://avatars.githubusercontent.com/u/9015003?v=4)](https://github.com/eisberg "eisberg (2 commits)")[![CorWatts](https://avatars.githubusercontent.com/u/220260?v=4)](https://github.com/CorWatts "CorWatts (2 commits)")[![pvogt09](https://avatars.githubusercontent.com/u/50047961?v=4)](https://github.com/pvogt09 "pvogt09 (1 commits)")[![fossabot](https://avatars.githubusercontent.com/u/29791463?v=4)](https://github.com/fossabot "fossabot (1 commits)")[![angeljqv](https://avatars.githubusercontent.com/u/79208641?v=4)](https://github.com/angeljqv "angeljqv (1 commits)")[![asterion](https://avatars.githubusercontent.com/u/194420?v=4)](https://github.com/asterion "asterion (1 commits)")[![CViniciusSDias](https://avatars.githubusercontent.com/u/6991415?v=4)](https://github.com/CViniciusSDias "CViniciusSDias (1 commits)")[![dependabot-preview[bot]](https://avatars.githubusercontent.com/in/2141?v=4)](https://github.com/dependabot-preview[bot] "dependabot-preview[bot] (1 commits)")[![abidaks](https://avatars.githubusercontent.com/u/20839618?v=4)](https://github.com/abidaks "abidaks (1 commits)")[![funkjedi](https://avatars.githubusercontent.com/u/9314?v=4)](https://github.com/funkjedi "funkjedi (1 commits)")[![kick-the-bucket](https://avatars.githubusercontent.com/u/7068596?v=4)](https://github.com/kick-the-bucket "kick-the-bucket (1 commits)")[![murrant](https://avatars.githubusercontent.com/u/39462?v=4)](https://github.com/murrant "murrant (1 commits)")

---

Tags

datachartgraphpiejpgraph

###  Code Quality

TestsCodeception

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/hbvsoft-jpgraph/health.svg)

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

###  Alternatives

[amenadiel/jpgraph

Composer Friendly, full refactor of JpGraph, library to make graphs and charts

1532.4M7](/packages/amenadiel-jpgraph)[samchristy/piechart

A simple class for drawing pie charts with ImageMagick or GD in PHP.

3448.2k1](/packages/samchristy-piechart)[alimranahmed/laraocr

Laravel Optical Character Reader(OCR) package using different OCR engines like Tesseract

17186.9k](/packages/alimranahmed-laraocr)[ianw/quickchart

QuickChart chart API

46731.4k](/packages/ianw-quickchart)[ottaviano/faker-gravatar

Faker Gravatar image provider

1059.0k8](/packages/ottaviano-faker-gravatar)

PHPackages © 2026

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