PHPackages                             fundistadi/gdal-bundle - 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. fundistadi/gdal-bundle

ActiveSymfony-bundle

fundistadi/gdal-bundle
======================

Typed Symfony services around the GDAL command-line tools: raster/vector inspection, warping and conversion — compiled binaries only, no Python.

v0.1.0(today)01↑2900%MITPHPPHP &gt;=8.4CI passing

Since Aug 8Pushed todayCompare

[ Source](https://github.com/fundistadi/gdal-bundle)[ Packagist](https://packagist.org/packages/fundistadi/gdal-bundle)[ RSS](/packages/fundistadi-gdal-bundle/feed)WikiDiscussions main Synced today

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

GDAL for Symfony!
=================

[](#gdal-for-symfony)

[![CI](https://github.com/fundistadi/gdal-bundle/actions/workflows/ci.yml/badge.svg)](https://github.com/fundistadi/gdal-bundle/actions/workflows/ci.yml)[![Latest Version](https://camo.githubusercontent.com/826be01b780630852acc25c972db546a17a45c723c12315faea120b2302bbe7b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f66756e646973746164692f6764616c2d62756e646c65)](https://packagist.org/packages/fundistadi/gdal-bundle)[![Total Downloads](https://camo.githubusercontent.com/68be55c196792164063b911d5e71db486982cf5223777325bb8070b0b7850243/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f66756e646973746164692f6764616c2d62756e646c65)](https://packagist.org/packages/fundistadi/gdal-bundle)[![License](https://camo.githubusercontent.com/1147036b34cf0060721464d8dd509e137a17797d4aff192d14e94765125cd0d8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f66756e646973746164692f6764616c2d62756e646c65)](LICENSE)

This bundle gives Symfony typed services around the **GDAL command-line tools**: **pure argv builders**, **structured `gdalinfo` results**, **remote rasters over HTTP range requests** (`/vsicurl/`), and one supervised, shell-free execution point with real exceptions — **compiled binaries only, by design, no Python**. Enable the bundle and go.

> Part of [FundiStadi](https://github.com/fundistadi) — open-source tooling for web, ops &amp; data.

Why
---

[](#why)

Calling GDAL from PHP usually means hand-glued shell strings, text-scraped output, and silent breakage when the binaries move — or worse, shelling GDAL's Python scripts, whose Python↔libgdal binding pair breaks constantly across machines. This bundle handles all of it: unit-testable argv contracts, typed results, crash-isolated execution with stderr in the exception, and a locator that fails fast with an install hint — the promise is simply *GDAL installed → bundle works*.

Install
-------

[](#install)

First the system dependency:

```
brew install gdal          # macOS   (Debian/Ubuntu: apt install gdal-bin)
```

Applications using [Symfony Flex](https://symfony.com/doc/current/setup.html):

```
composer require fundistadi/gdal-bundle
```

Applications without Symfony Flex — after requiring the package, enable the bundle:

```
// config/bundles.php
return [
    // ...
    FundiStadi\GDALBundle\FundiStadiGDALBundle::class => ['all' => true],
];
```

That one line registers the binary locator (PATH discovery with actionable errors), the supervised process runner, and the typed `gdalinfo` service — all autowirable by class. Nothing else to configure.

```
# config/packages/fundi_stadi_gdal.yaml (optional — create it only to override)
fundi_stadi_gdal:
    binary_dir: /opt/homebrew/bin   # default: search PATH
    timeout: 3600                   # per-process seconds
```

A taste
-------

[](#a-taste)

```
use FundiStadi\GDALBundle\Process\GdalRunner;
use FundiStadi\GDALBundle\Tool\{Gdalinfo, Gdalwarp};
use FundiStadi\GDALBundle\Vsi\VsiCurl;

public function __construct(
    private GdalRunner $gdal,
    private Gdalinfo $gdalinfo,
) {}

// Clip a huge cloud GeoTIFF to a boundary — windowed HTTP read, no download:
$this->gdal->run(
    Gdalwarp::create()
        ->cutline('boundary.geojson')->cropToCutline()
        ->dstNodata(255)->outputType('Byte')
        ->argv(VsiCurl::wrap('https://example.org/huge-raster.tif'), 'clip.tif'),
);

$info = $this->gdalinfo->info('clip.tif');
$info->width;                    // int
$info->bands[0]->noDataValue;    // ?float — no text scraping
```

Tools: `Gdalwarp` (clip/reproject/convert, immutable builder), `Gdalinfo` (typed inspection). Plumbing: `GdalRunner` (no shell, timeout, stderr-carrying exceptions, live output streaming for progress), `GdalBinaryLocator`(`binary_dir` or PATH; refuses `*.py` by design), `VsiCurl` (remote-raster paths).

Documentation
-------------

[](#documentation)

Read the documentation at [docs/index.md](docs/index.md) — including the architecture, why Python tools are excluded, and progress streaming.

Requirements
------------

[](#requirements)

- PHP **8.4+** · Symfony **7.3+ / 8**
- **GDAL compiled tools** on the machine (`brew install gdal` / `apt install gdal-bin`)

Contributing
------------

[](#contributing)

See [CONTRIBUTING.md](CONTRIBUTING.md). CI enforces the standard (php-cs-fixer, PHPStan max, PHPUnit including integration tests against real GDAL binaries) on every pull request.

Credits
-------

[](#credits)

- [Ezekiel Mjema](https://github.com/eemjema)
- [All Contributors](https://github.com/fundistadi/gdal-bundle/graphs/contributors)

License
-------

[](#license)

MIT License (MIT): see the [LICENSE](LICENSE) file for more details.

###  Health Score

39

—

LowBetter than 84% of packages

Maintenance100

Actively maintained with recent releases

Popularity2

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity40

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

0d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/59482766?v=4)[Ezekiel Mjema](/maintainers/eemjema)[@eemjema](https://github.com/eemjema)

---

Top Contributors

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

---

Tags

symfonyvectorgisgeospatialwarpgeotiffgdalogrraster

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/fundistadi-gdal-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/fundistadi-gdal-bundle/health.svg)](https://phpackages.com/packages/fundistadi-gdal-bundle)
```

###  Alternatives

[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.4M225](/packages/sulu-sulu)[kimai/kimai

Kimai - Time Tracking

4.8k9.4k1](/packages/kimai-kimai)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.8M656](/packages/shopware-core)[rcsofttech/audit-trail-bundle

Enterprise-grade, high-performance Symfony audit trail bundle. Automatically track Doctrine entity changes with split-phase architecture, multiple transports (HTTP, Queue, Doctrine), and sensitive data masking.

12017.1k](/packages/rcsofttech-audit-trail-bundle)[chameleon-system/chameleon-base

The Chameleon System core.

1029.4k6](/packages/chameleon-system-chameleon-base)[2lenet/crudit-bundle

The easy like Crud'it Bundle.

1617.3k15](/packages/2lenet-crudit-bundle)

PHPackages © 2026

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