Download the PHP package teamzac/laravel-shapefiles without Composer
On this page you can find all versions of the php package teamzac/laravel-shapefiles. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download teamzac/laravel-shapefiles
More information about teamzac/laravel-shapefiles
Files in teamzac/laravel-shapefiles
Package laravel-shapefiles
Short Description A wrapper for gasparesganga/php-shapefile with a Laravel-ish collections API
License MIT
Homepage https://github.com/teamzac/laravel-shapefiles
Informations about the package laravel-shapefiles
A Laravel Collection style API for gasparesganga/php-shapefile
The gasparesganga/php-shapefile package is extremely handy for working directly with Shapefiles, but we work mostly in Laravel and prefer the collection-style APIs found throughout. This package simply wraps the original ShapefileReader class in a LazyCollection to make iterating on it a bit more familiar.
Installation
You can install the package via composer:
Usage
You can pass a reference to the .shp file, or the directory containing the .shp file, when instantiating the Reader.
When iterating in the original package, you'd receive an instance of . We also wrap this in a class that adds a couple of additional methods:
To-do
We don't currently implement a wrapper around the ShapefileWriter class, since we don't use it. That might be added one day if we need it.
Testing
The package comes with a small shapefile containing two polygons. Note, we've only tested this with polygons but there's no reason why it shouldn't work with any other kind of feature.
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- Gaspare Sganga - Author of the underlying package
- Chad Janicek
- Laravel Package Boilerplate
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-shapefiles with dependencies
gasparesganga/php-shapefile Version ^3.4
illuminate/support Version ^7.0|^8.0
proj4php/proj4php Version ^2.0