承接 jware/geophp 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

jware/geophp

最新稳定版本:1.0.0

Composer 安装命令:

composer require jware/geophp

包简介

A little geo spatial library for PHP based on Geo Rust and Turf.js

README 文档

README

GeoPHP is a library of geospatial functions based on GeoRust and Turf.js.

Installation

Install the library running:

composer require jware/geophp

Usage

use \JWare\GeoPHP\Polygon;
use \JWare\GeoPHP\Point;

$polygon = new Polygon([
    new Point(1, -1),
    new Point(2, 1),
    new Point(3, -1),
    new Point(2, -2),
    new Point(1, -1)
]);

$point = new Point(-1, 2);
$point2 = new Point(2, 2);

$polygon->containsPoint($point); // False
$polygon->containsPoint($point2); // True

Please read the documentation to see the full method list available.

Why another Geospatial library?

GeoPHP was born due to the lack of a modern geospatial library for PHP. The tools available today are not published in the Composer repositories and are not easy to use (some requires DB drivers or constructs the Geometries from complex Strings). GeoPHP offers:

  • 🚀 Modern and fast: made in PHP 7 with fast algorithms
  • 🥳 Friendly and simple interface: implemented with the Object Oriented Paradigm, allows its easy and fast use by the developer.
  • 👨🏼‍💻 Easy access: the library is published in Composer for quick import into your projects.
  • 🛠 Tested: all methods are covered by unit tests.
  • 🌟 A lot of examples!

Contributing

First of all, thanks for consider contributing to the project! Please, read CONTRIBUTING.md for more.

统计信息

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

GitHub 信息

  • Stars: 19
  • Watchers: 2
  • Forks: 7
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-01-20