michaellindahl/php-h3
Composer 安装命令:
composer require michaellindahl/php-h3
包简介
H3: The hexagonal hierarchical geospatial indexing system system rewritten in PHP.
README 文档
README
This project provides a PHP implementation of the H3 system. The goal of this library is to minimize the complexity and requires for using the H3 library in PHP. All functions are rewritten in PHP so that there are no dependencies.
Use
The test are a great place to look to see each of the supported methods in action. Currently, not all methods of the library are supported, but please feel free to PR any missing methods that you may need.
$h3 = new MichaelLindahl\H3\H3(H3::DYLIB);
$h3Index = $h3->latLngToCell(40.689421843699, -74.044431399909, 10);
// $h3Index: '8a2a1072b59ffff'
Structure
This package is structed with H3.php as the main entry point and shared location for any constants used throughout the library. Each section of the API Reference is given it's own Trait and Test file to help maintain organization.
Building the bin directory
In order to build the bin directory on macOS a cross-compiler that is capable of generating Linux objects must be used, e.g.:
brew install FiloSottile/musl-cross/musl-cross
Contributions
Contributions are welcomed. Please be kind, both in reviewing and contributing. Follow the project goals. And include tests.
Alternatives
michaellindahl/php-h3 适用场景与选型建议
michaellindahl/php-h3 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 31.08k 次下载、GitHub Stars 达 8, 最近一次更新时间为 2020 年 06 月 24 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 michaellindahl/php-h3 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 michaellindahl/php-h3 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 31.08k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 8
- 点击次数: 26
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-06-24