Skip to content

Commit 8e086f7

Browse files
committed
ready
1 parent 81d19e6 commit 8e086f7

File tree

3 files changed

+9
-22
lines changed

3 files changed

+9
-22
lines changed

API.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,16 @@
1414

1515
Every geometry class has these functions:
1616

17-
* `toArray()` - Serializes the geometry object into a GeoJSON array.
17+
* `toArray()` - Serializes the geometry object into a GeoJSON associative array.
1818
* `toJson()` - Serializes the geometry object into an GeoJSON string.
19-
* `fromJson(string $json)` - Deserializes a geometry object from a GeoJSON string. (static method)
20-
* `toFeatureCollectionJson()` - Serializes the geometry object into an GeoJSON string wrapped by a FeatureCollection.
19+
* `fromJson(string $geoJson)` - Deserializes a geometry object from a GeoJSON string. (static method)
20+
* `toFeatureCollectionJson()` - Serializes the geometry object into an GeoJSON's FeatureCollection string.
2121
* `getCoordinates()` - Returns the coordinates of the geometry object.
2222

2323
In addition, `GeometryCollection` also has these functions:
2424

2525
* `getGeometries()` - Returns a geometry array. Can be used with `ArrayAccess` as well.
26+
2627
```php
2728
$geometryCollection = new GeometryCollection([
2829
new Polygon([

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
# Laravel Eloquent Spatial
22

3+
<!--
34
[![Latest Version on Packagist](https://img.shields.io/packagist/v/matanyadaev/laravel-eloquent-spatial.svg?style=flat-square)](https://packagist.org/packages/matanyadaev/laravel-eloquent-spatial)
45
![GitHub Workflow Status](https://img.shields.io/github/workflow/status/matanyadaev/laravel-eloquent-spatial/Tests?label=tests)
56
![Lint](https://github.com/matanyadaev/laravel-eloquent-spatial/workflows/Lint/badge.svg)
67
[![Total Downloads](https://img.shields.io/packagist/dt/matanyadaev/laravel-eloquent-spatial.svg?style=flat-square)](https://packagist.org/packages/matanyadaev/laravel-eloquent-spatial)
8+
-->
79

8-
Laravel package to easily work with [MySQL Spatial Data Types](https://dev.mysql.com/doc/refman/8.0/en/spatial-type-overview.html) and [MySQL Spatial Functions](https://dev.mysql.com/doc/refman/8.0/en/spatial-function-reference.html).
10+
Laravel package to work with spatial data types and functions.
911

1012
This package supports MySQL 5.7 & 8.0. The package works on PHP 8 & Laravel 8 only.
1113

composer.json

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,12 @@
11
{
22
"name": "matanyadaev/laravel-eloquent-spatial",
3-
"description": "Laravel Eloquent spatial extension",
4-
"keywords": [
5-
"matanyadaev",
6-
"laravel-eloquent-spatial"
7-
],
3+
"description": "Spatial library for Laravel",
84
"homepage": "https://github.com/matanyadaev/laravel-eloquent-spatial",
95
"license": "MIT",
106
"authors": [
117
{
128
"name": "Matan Yadaev",
139
"email": "[email protected]",
14-
"homepage": "https://spatie.be",
15-
"role": "Developer"
1610
}
1711
],
1812
"require": {
@@ -62,15 +56,5 @@
6256
}
6357
},
6458
"minimum-stability": "dev",
65-
"prefer-stable": true,
66-
"funding": [
67-
{
68-
"type": "github",
69-
"url": "https://github.com/sponsors/spatie"
70-
},
71-
{
72-
"type": "other",
73-
"url": "https://spatie.be/open-source/support-us"
74-
}
75-
]
59+
"prefer-stable": true
7660
}

0 commit comments

Comments
 (0)