PHPackages                             martins-smb/fpdfimage - 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. martins-smb/fpdfimage

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

martins-smb/fpdfimage
=====================

FPDF Image

098[1 issues](https://github.com/martins-smb/fpdfimage/issues)PHP

Since Aug 29Pushed 10y ago1 watchersCompare

[ Source](https://github.com/martins-smb/fpdfimage)[ Packagist](https://packagist.org/packages/martins-smb/fpdfimage)[ RSS](/packages/martins-smb-fpdfimage/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

FPDF Image
==========

[](#fpdf-image)

Original written by

itbz/fpdf Compatible
--------------------

[](#itbzfpdf-compatible)

I have made some changes to make mem\_image.php compatible for itbz/fpdf.

### Example Usage

[](#example-usage)

```
$pdf = new FPDFImage("L","mm","A4");
$pdf->AddPage();
$pdf->SetFont('arial','B',10);
$pdf->Cell(288,5,'Example',0,1,'C');
$pdf->Output("file.pdf","I");
```

### Example usage with davefx/phplot

[](#example-usage-with-davefxphplot)

```
$pdf = new FPDFImage("L","mm","A4");
$pdf->AddPage();
$pdf->SetFont('arial','B',10);
$pdf->Cell(288,5,'Example',0,1,'C');

$plot = new PHPlot(400, 300);
$plot->SetImageBorderType('plain');

$plot->SetPlotType('bars');
$plot->SetDataType('text-data');

$data[0][1] = 10;
$data[1][1] = 20;
$data[2][1] = 30;
$data[0][2] = 20;
$data[1][2] = 30;
$data[2][2] = 40;
$plot->SetDataValues($data);

$plot->SetDataColors(array('DarkGreen', 'orange', 'yellow', 'blue', 'cyan', 'magenta', 'brown', 'lavender', 'pink', 'gray', 'red', 'green'));

$plot->SetTitle('Example');

$data2 = array("Example 1", "Example 2");
$plot->SetLegend($data2);

$plot->SetXTickLabelPos('none');
$plot->SetXTickPos('none');
$plot->SetPrintImage(false);

$plot->DrawGraph();

$pdf->GDImage($plot->img,85,90,140);
$pdf->Output("file.pdf","I");
```

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/3bbfd0cc884bf09f21625faefd9d54027be63ab94f01f65e6575fd805788b00a?d=identicon)[carlosmartins](/maintainers/carlosmartins)

---

Top Contributors

[![martins-smb](https://avatars.githubusercontent.com/u/102979?v=4)](https://github.com/martins-smb "martins-smb (6 commits)")

### Embed Badge

![Health badge](/badges/martins-smb-fpdfimage/health.svg)

```
[![Health](https://phpackages.com/badges/martins-smb-fpdfimage/health.svg)](https://phpackages.com/packages/martins-smb-fpdfimage)
```

###  Alternatives

[goat1000/svggraph

Generates SVG graphs

135911.1k3](/packages/goat1000-svggraph)[gravatarphp/gravatar

Gravatar URL builder which is most commonly called as a Gravatar library

16653.6k2](/packages/gravatarphp-gravatar)[rsoury/wp-imgix

Rewrites WordPress image URLs to use ImgIX

167.2k](/packages/rsoury-wp-imgix)

PHPackages © 2026

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