shakemaps/webservice_library 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

shakemaps/webservice_library

最新稳定版本:1.0.0

Composer 安装命令:

composer require shakemaps/webservice_library

包简介

Library to fetch quake's shakemaps data

README 文档

README

Fetch and parse XML grid data from Shakemaps server or local file, creating an iteratable object of data

Install and usage

Install via composer:

$ composer require shakemaps/webservice_library

and autoload and use in your script:

require_once __DIR__ . '/vendor/autoload.php';

use Shakemaps\Webservice\Intensity as SW_Intensity;
use Fdsn\DataStructure\LatLon as DS_LatLon;

// Fetch from local file
$obj = new SW_Intensity( '42487872', null, './test_data/42487872/grid.xml' );

// ...or Fetch from Shakemaps server
$obj = new SW_Intensity( '42487872' );


if ( 0 == $obj->fetch() )
	exit();

foreach($obj as $locality){
	printf("%f, %f, %f\n", 
		$locality['point']->lat(),
		$locality['point']->lon(),
		$locality['mmi']
	);
}

Technical documentation

You can find documentation, automatically created by PHPDocumentor here: http://diego.sorrentino.gitpages.rm.ingv.it/shakemaps_webservice_library/phpdoc

Test and Deploy

Tests are realized using PHPUnit. You can find code coverage here: http://diego.sorrentino.gitpages.rm.ingv.it/shakemaps_webservice_library/coverage

Contributing

If you want to contribute, please use pull requests. To get a best integration, please code using Test Driven Development (TDD) and Calisthenic Programming.

Authors and acknowledgment

Diego Sorrentino, Istituto Nazionale di Geofisica e Vulcanologia, https://www.ingv.it/organizzazione/chi-siamo/personale/#922

License

GPL v3

Project status

Development in progress

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: AGPL-3.0-or-later
  • 更新时间: 2025-04-23

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固