php-extended / php-geojson-object
php-geojson-interface 库的实现
7.0.6
2024-07-31 13:52 UTC
Requires
- php: >=8.0
- php-extended/php-geojson-interface: ^7
- php-extended/php-reifier-object: ^7
Requires (Dev)
- dev-master
- 7.0.6
- 7.0.5
- 7.0.4
- 7.0.3
- 7.0.2
- 7.0.1
- 7.0.0
- 6.0.9
- 6.0.8
- 6.0.7
- 6.0.6
- 6.0.5
- 6.0.4
- 6.0.3
- 6.0.2
- 6.0.1
- 6.0.0
- 5.0.1
- 5.0.0
- 4.3.2
- 4.3.1
- 4.3.0
- 4.2.26
- 4.2.25
- 4.2.24
- 4.2.23
- 4.2.22
- 4.2.21
- 4.2.20
- 4.2.19
- 4.2.18
- 4.2.17
- 4.2.16
- 4.2.15
- 4.2.14
- 4.2.13
- 4.2.12
- 4.2.11
- 4.2.10
- 4.2.9
- 4.2.8
- 4.2.7
- 4.2.6
- 4.2.5
- 4.2.4
- 4.2.3
- 4.2.2
- 4.2.1
- 4.2.0
- 4.1.1
- 4.1.0
- 4.0.2
- 4.0.1
- 4.0.0
- 3.0.0
- 2.0.0
- 1.0.2
- 1.0.1
- 1.0.0
This package is auto-updated.
Last update: 2024-08-31 12:02:53 UTC
README
php-geojson-interface 库的实现
安装
此库的安装通过 composer 完成,并且通过其自动加载器自动加载此库的所有类。
- 从他们的网站下载
composer.phar
。 - 然后运行以下命令将此库作为依赖项安装
php composer.phar require php-extended/php-geojson-object ^7
基本用法
此库是为了在其他库中使用,这些库将 php-json-object 库的 JSON 数据转换为其他格式。
最常见的使用方法是将其放置在对象的构造函数中
// $value is the current mixed[] thing
// $silent is a boolean
case 'geojson':
$factory = new GeoJsonGeometryFactory();
$this->_geojson = $factory->buildObject($this->asArray($value, $silent), $silent);
break;
请参阅 PhpExtended\GeoJson\GeoJsonPoint
的构造示例,以获得更好的示例和更完整的类比。
许可证
MIT (见 许可证文件).