{"id":19544500,"url":"https://github.com/dantsu/php-french-cadastral-map-static-api","last_synced_at":"2025-04-26T18:30:24.040Z","repository":{"id":56933876,"uuid":"404386839","full_name":"DantSu/php-french-cadastral-map-static-api","owner":"DantSu","description":"PHP library to easily get static image from French Cadastral Government map with markers, lines, polygons and circles / Librairie PHP permettant d'extraire facilement des images de la carte du cadastre Français avec des markers, des lignes, polygones and cercles","archived":false,"fork":false,"pushed_at":"2023-08-22T14:42:58.000Z","size":810,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-04T17:03:05.550Z","etag":null,"topics":["cadastral","cadastre","composer","composer-library","composer-package","french-cadastre","openstreetmap","osm","php","php-library","php7"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DantSu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"DantSu"}},"created_at":"2021-09-08T14:50:17.000Z","updated_at":"2024-11-12T16:29:01.000Z","dependencies_parsed_at":"2024-11-11T03:29:30.047Z","dependency_job_id":"860e670d-05e0-40ee-83a6-34d871e9f672","html_url":"https://github.com/DantSu/php-french-cadastral-map-static-api","commit_stats":{"total_commits":16,"total_committers":2,"mean_commits":8.0,"dds":0.125,"last_synced_commit":"9366df3122e0ff59a82f82954921d0841c03a82a"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DantSu%2Fphp-french-cadastral-map-static-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DantSu%2Fphp-french-cadastral-map-static-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DantSu%2Fphp-french-cadastral-map-static-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DantSu%2Fphp-french-cadastral-map-static-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DantSu","download_url":"https://codeload.github.com/DantSu/php-french-cadastral-map-static-api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251035029,"owners_count":21526296,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cadastral","cadastre","composer","composer-library","composer-package","french-cadastre","openstreetmap","osm","php","php-library","php7"],"created_at":"2024-11-11T03:29:17.889Z","updated_at":"2025-04-26T18:30:23.698Z","avatar_url":"https://github.com/DantSu.png","language":"PHP","funding_links":["https://github.com/sponsors/DantSu"],"categories":[],"sub_categories":[],"readme":"[![Packagist](https://img.shields.io/packagist/dt/DantSu/french-cadastral-map-static-api.svg)](https://packagist.org/packages/DantSu/php-french-cadastral-map-static-api)\n[![Latest Stable Version](https://poser.pugx.org/DantSu/french-cadastral-map-static-api/v/stable)](https://packagist.org/packages/DantSu/php-french-cadastral-map-static-api)\n[![GitHub license](https://img.shields.io/github/license/DantSu/php-french-cadastral-map-static-api.svg)](https://github.com/DantSu/php-french-cadastral-map-static-api/blob/master/LICENSE)\n\n# PHP French Cadastral Map Static API\n\nPHP library to easily get static image from French Cadastral Government map with markers, lines, polygons and circles.\n\nMap source : [cadastre.gouv.fr](https://www.cadastre.gouv.fr/)\n\n# API PHP de Carte Statique du Cadastre Français\n\nLibrairie PHP permettant d'extraire facilement des images de la carte du cadastre Français avec des markers, des lignes, polygones and cercles. \n\nSource de la carte : [cadastre.gouv.fr](https://www.cadastre.gouv.fr/)\n\n## ✨ Supporting\n\n⭐ Star this repository to support this project. You will contribute to increase the visibility of this library 🙂\n\n## Installation\n\nInstall this library easily with composer :\n\n```cmd\ncomposer require dantsu/french-cadastral-map-static-api\n```\n\n## How to use\n\nGenerate French Cadastral map static image with marker and line :\n\n```php\nuse \\DantSu\\OpenStreetMapStaticAPI\\OpenStreetMap;\nuse \\DantSu\\FrenchCadastralMapStaticAPI\\FrenchCadastralTileLayer;\nuse \\DantSu\\OpenStreetMapStaticAPI\\LatLng;\nuse \\DantSu\\OpenStreetMapStaticAPI\\Polygon;\nuse \\DantSu\\OpenStreetMapStaticAPI\\Markers;\n\n\\header('Content-type: image/png');\n(new OpenStreetMap(new LatLng(44.351933, 2.568113), 17, 600, 400))\n    -\u003eaddLayer(\n        new FrenchCadastralTileLayer(\n            12202,\n            [\n                FrenchCadastralTileLayer::LAYER_AMORCES_CAD,\n                FrenchCadastralTileLayer::LAYER_CADASTRAL_PARCEL,\n                FrenchCadastralTileLayer::LAYER_SUBFISCAL,\n                // CadastralTileLayer::LAYER_CLOTURE,\n                FrenchCadastralTileLayer::LAYER_DETAIL_TOPO,\n                FrenchCadastralTileLayer::LAYER_HYDRO,\n                FrenchCadastralTileLayer::LAYER_BUILDING,\n                FrenchCadastralTileLayer::LAYER_BORNE_REPERE,\n                // CadastralTileLayer::LAYER_VOIE_COMMUNICATION,\n                // CadastralTileLayer::LAYER_LIEUDIT\n            ]\n        )\n    )\n    -\u003eaddMarkers(\n        (new Markers(__DIR__ . '/resources/marker.png'))\n            -\u003esetAnchor(Markers::ANCHOR_CENTER, Markers::ANCHOR_BOTTOM)\n            -\u003eaddMarker(new LatLng(44.351933, 2.568113))\n            -\u003eaddMarker(new LatLng(44.351510, 2.570020))\n            -\u003eaddMarker(new LatLng(44.351873, 2.566250))\n    )\n    -\u003eaddDraw(\n        (new Polygon('FF0000', 2, '00FF00CC'))\n            -\u003eaddPoint(new LatLng(44.351172, 2.571092))\n            -\u003eaddPoint(new LatLng(44.352097, 2.570045))\n            -\u003eaddPoint(new LatLng(44.352665, 2.568107))\n            -\u003eaddPoint(new LatLng(44.352887, 2.566503))\n            -\u003eaddPoint(new LatLng(44.352806, 2.565972))\n            -\u003eaddPoint(new LatLng(44.351517, 2.565672))\n    )\n    -\u003egetImage()\n    -\u003edisplayPNG();\n```\n\n![Exported French Cadastral image](./src/samples/resources/sample_1.png)\n\n## Documentation\n\n| Class | Description |\n|---    |---          |\n| [FrenchCadastralTileLayer](./classes/DantSu/FrenchCadastralMapStaticAPI/FrenchCadastralTileLayer.md) | DantSu\\FrenchCadastralMapStaticAPI\\FrenchCadastralTileLayer define french cadastral tile server and related configuration|\n\nFor more documentation, see [DantSu/php-osm-static-api](https://github.com/DantSu/php-osm-static-api)\n\n## Contributing\n\nPlease fork this repository and contribute back using pull requests.\n\nAny contributions, large or small, major features, bug fixes, are welcomed and appreciated but will be thoroughly reviewed.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdantsu%2Fphp-french-cadastral-map-static-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdantsu%2Fphp-french-cadastral-map-static-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdantsu%2Fphp-french-cadastral-map-static-api/lists"}