定制 ifsnop/martinez-rueda-php 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

ifsnop/martinez-rueda-php

最新稳定版本:1.0.1

Composer 安装命令:

composer require ifsnop/martinez-rueda-php

包简介

Robust and tested library for boolean operations on polygons (union, intersection, difference, xor)

README 文档

README

Robust and tested library for boolean operations on polygons (union, intersection, difference, xor) in PHP.

Some improvements over other libraries: This one is tested (see end-to-end directory) and optimized to use polygons with large amount of vertex (ie, binary search when doing intersections between segments).

This library can use arrays with polygons, geojson strings or geojson files directly.

Resources

Examples

Some tests and demo implementation inside tests.php, extended coverage with PHPUnit:

  • php tests.php
  • ./vendor/bin/phpunit tests/
  • ./vendor/phpstan/phpstan/phpstan --error-format=raw

For profiling:

  • check that xdebug module is available and loaded: php -m | grep xdebug
  • launch php with xdebug enabled: php
    -dxdebug.mode=profile
    -dxdebug.start_with_request=yes
    -dxdebug.output_dir=xdebug-profiler/
    tests.php

Tutorials and notes

Improvements

History

统计信息

  • 总下载量: 1
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 8
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-3.0-or-later
  • 更新时间: 2026-05-10

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固