PHPackages                             dantsu/french-cadastral-map-static-api - 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. [API Development](/categories/api)
4. /
5. dantsu/french-cadastral-map-static-api

ActiveLibrary[API Development](/categories/api)

dantsu/french-cadastral-map-static-api
======================================

PHP library to easily get static image from French Cadastral Government map with markers and lines.

1.0.2(2y ago)6161MITPHPPHP &gt;=7.0

Since Sep 8Pushed 2y ago3 watchersCompare

[ Source](https://github.com/DantSu/php-french-cadastral-map-static-api)[ Packagist](https://packagist.org/packages/dantsu/french-cadastral-map-static-api)[ Docs](https://github.com/DantSu/php-french-cadastral-map-static-api)[ GitHub Sponsors](https://github.com/DantSu)[ RSS](/packages/dantsu-french-cadastral-map-static-api/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (10)Dependencies (2)Versions (11)Used By (0)

[![Packagist](https://camo.githubusercontent.com/ed968654de24aeb8c98c0f1d796498be131b94c49001e11b6678d59523f78010/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f44616e7453752f6672656e63682d63616461737472616c2d6d61702d7374617469632d6170692e737667)](https://packagist.org/packages/DantSu/php-french-cadastral-map-static-api)[![Latest Stable Version](https://camo.githubusercontent.com/7b16522f2a1851d4a1500320eb84e887f90d7e9c08844605b0de3eff78b61c03/68747470733a2f2f706f7365722e707567782e6f72672f44616e7453752f6672656e63682d63616461737472616c2d6d61702d7374617469632d6170692f762f737461626c65)](https://packagist.org/packages/DantSu/php-french-cadastral-map-static-api)[![GitHub license](https://camo.githubusercontent.com/72792c94d013fda7af5b4b0117ed4c400c00fc8bcc4ce04989da89b55def4484/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f44616e7453752f7068702d6672656e63682d63616461737472616c2d6d61702d7374617469632d6170692e737667)](https://github.com/DantSu/php-french-cadastral-map-static-api/blob/master/LICENSE)

PHP French Cadastral Map Static API
===================================

[](#php-french-cadastral-map-static-api)

PHP library to easily get static image from French Cadastral Government map with markers, lines, polygons and circles.

Map source : [cadastre.gouv.fr](https://www.cadastre.gouv.fr/)

API PHP de Carte Statique du Cadastre Français
==============================================

[](#api-php-de-carte-statique-du-cadastre-français)

Librairie PHP permettant d'extraire facilement des images de la carte du cadastre Français avec des markers, des lignes, polygones and cercles.

Source de la carte : [cadastre.gouv.fr](https://www.cadastre.gouv.fr/)

✨ Supporting
------------

[](#-supporting)

⭐ Star this repository to support this project. You will contribute to increase the visibility of this library 🙂

Installation
------------

[](#installation)

Install this library easily with composer :

```
composer require dantsu/french-cadastral-map-static-api
```

How to use
----------

[](#how-to-use)

Generate French Cadastral map static image with marker and line :

```
use \DantSu\OpenStreetMapStaticAPI\OpenStreetMap;
use \DantSu\FrenchCadastralMapStaticAPI\FrenchCadastralTileLayer;
use \DantSu\OpenStreetMapStaticAPI\LatLng;
use \DantSu\OpenStreetMapStaticAPI\Polygon;
use \DantSu\OpenStreetMapStaticAPI\Markers;

\header('Content-type: image/png');
(new OpenStreetMap(new LatLng(44.351933, 2.568113), 17, 600, 400))
    ->addLayer(
        new FrenchCadastralTileLayer(
            12202,
            [
                FrenchCadastralTileLayer::LAYER_AMORCES_CAD,
                FrenchCadastralTileLayer::LAYER_CADASTRAL_PARCEL,
                FrenchCadastralTileLayer::LAYER_SUBFISCAL,
                // CadastralTileLayer::LAYER_CLOTURE,
                FrenchCadastralTileLayer::LAYER_DETAIL_TOPO,
                FrenchCadastralTileLayer::LAYER_HYDRO,
                FrenchCadastralTileLayer::LAYER_BUILDING,
                FrenchCadastralTileLayer::LAYER_BORNE_REPERE,
                // CadastralTileLayer::LAYER_VOIE_COMMUNICATION,
                // CadastralTileLayer::LAYER_LIEUDIT
            ]
        )
    )
    ->addMarkers(
        (new Markers(__DIR__ . '/resources/marker.png'))
            ->setAnchor(Markers::ANCHOR_CENTER, Markers::ANCHOR_BOTTOM)
            ->addMarker(new LatLng(44.351933, 2.568113))
            ->addMarker(new LatLng(44.351510, 2.570020))
            ->addMarker(new LatLng(44.351873, 2.566250))
    )
    ->addDraw(
        (new Polygon('FF0000', 2, '00FF00CC'))
            ->addPoint(new LatLng(44.351172, 2.571092))
            ->addPoint(new LatLng(44.352097, 2.570045))
            ->addPoint(new LatLng(44.352665, 2.568107))
            ->addPoint(new LatLng(44.352887, 2.566503))
            ->addPoint(new LatLng(44.352806, 2.565972))
            ->addPoint(new LatLng(44.351517, 2.565672))
    )
    ->getImage()
    ->displayPNG();
```

[![Exported French Cadastral image](./src/samples/resources/sample_1.png)](./src/samples/resources/sample_1.png)

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

[](#documentation)

ClassDescription[FrenchCadastralTileLayer](./classes/DantSu/FrenchCadastralMapStaticAPI/FrenchCadastralTileLayer.md)DantSu\\FrenchCadastralMapStaticAPI\\FrenchCadastralTileLayer define french cadastral tile server and related configurationFor more documentation, see [DantSu/php-osm-static-api](https://github.com/DantSu/php-osm-static-api)

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

[](#contributing)

Please fork this repository and contribute back using pull requests.

Any contributions, large or small, major features, bug fixes, are welcomed and appreciated but will be thoroughly reviewed.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity52

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

Every ~79 days

Recently: every ~117 days

Total

10

Last Release

995d ago

Major Versions

0.2.0 → 1.0.02022-11-02

PHP version history (2 changes)0.0.0PHP ^7.0

0.1.3PHP &gt;=7.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/4188774?v=4)[Franck Alary](/maintainers/DantSu)[@DantSu](https://github.com/DantSu)

---

Top Contributors

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

---

Tags

cadastralcadastrecomposercomposer-librarycomposer-packagefrench-cadastreopenstreetmaposmphpphp-libraryphp7phpapiimagemapstaticmapsfrenchcadastral

### Embed Badge

![Health badge](/badges/dantsu-french-cadastral-map-static-api/health.svg)

```
[![Health](https://phpackages.com/badges/dantsu-french-cadastral-map-static-api/health.svg)](https://phpackages.com/packages/dantsu-french-cadastral-map-static-api)
```

###  Alternatives

[dantsu/php-osm-static-api

PHP library to easily get static image from OpenStreetMap (OSM), add markers and draw lines.

97141.0k1](/packages/dantsu-php-osm-static-api)[mtownsend/remove-bg

A PHP package to interface with the remove.bg api.

183315.4k](/packages/mtownsend-remove-bg)[jeroendesloovere/geolocation-php-api

This Geolocation PHP class connects to Google Maps API to find latitude/longitude or address.

75316.8k4](/packages/jeroendesloovere-geolocation-php-api)[jstolpe/instagram-graph-api-php-sdk

Instagram Graph API PHP SDK

13998.4k2](/packages/jstolpe-instagram-graph-api-php-sdk)

PHPackages © 2026

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