PHPackages                             muka/shape-reader - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. muka/shape-reader

ActiveLibrary

muka/shape-reader
=================

A PHP library to parse ESRI Shape files

v1.0.5(12y ago)1129.5k↓22.7%4[1 PRs](https://github.com/muka/ShapeReader/pulls)1GPLPHPCI failing

Since Aug 25Pushed 4y ago2 watchersCompare

[ Source](https://github.com/muka/ShapeReader)[ Packagist](https://packagist.org/packages/muka/shape-reader)[ RSS](/packages/muka-shape-reader/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (7)Used By (1)

ShapeReader
===========

[](#shapereader)

A PHP library to parse ESRI Shape files.

Based on the great work of Juan Carlos Gonzalez Ulloa and David Granqvist

A copy of the original work is available at

`This library is meant to read vectorial information from shape files in the SHP format.``The SHP file format is an open standard for storing vectorial information that is used to distribute geographical information.``Plenty of commercial and open source applications are able to read from it.`

Requirements
------------

[](#requirements)

PHP version should be &gt; 5.3.2

To open the DBF related database you need the dbase extension available as PECL package.

```
pecl install dbase
echo "extension=dbase.so" > /etc/php5/conf.d/dbase.ini

```

Usage
-----

[](#usage)

See examples folder for details.

```
$shpReader = new ShapeReader("./somewhere.shp");

$i = 0;
while ($record = $shpReader->getNext() and $i < 5) {

    //Dump SHP information
    $shp_data = $record->getData();
    var_dump($shp_data);

    //Dump DBF information
    $dbf_data = $record->getDbfData();
    var_dump($dbf_data);

    $i++;
}

```

Changelog
---------

[](#changelog)

2013-08-24 - Base refactor, added namespace support, composer and test cases

License
-------

[](#license)

GNU General Public License

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity35

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 66.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~49 days

Recently: every ~61 days

Total

6

Last Release

4402d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/824bab91fe7611771260139d0b14731bf16941ef96a5be64f8b07e8ded5927f5?d=identicon)[muka](/maintainers/muka)

---

Top Contributors

[![nickolanack](https://avatars.githubusercontent.com/u/8965209?v=4)](https://github.com/nickolanack "nickolanack (24 commits)")[![muka](https://avatars.githubusercontent.com/u/1021269?v=4)](https://github.com/muka "muka (8 commits)")[![phaza](https://avatars.githubusercontent.com/u/4553?v=4)](https://github.com/phaza "phaza (2 commits)")[![coreation](https://avatars.githubusercontent.com/u/361244?v=4)](https://github.com/coreation "coreation (1 commits)")[![jom](https://avatars.githubusercontent.com/u/68693?v=4)](https://github.com/jom "jom (1 commits)")

---

Tags

geospatialShapefileshpdbf

### Embed Badge

![Health badge](/badges/muka-shape-reader/health.svg)

```
[![Health](https://phpackages.com/badges/muka-shape-reader/health.svg)](https://phpackages.com/packages/muka-shape-reader)
```

###  Alternatives

[phpmyadmin/shapefile

ESRI ShapeFile library for PHP

281.4M1](/packages/phpmyadmin-shapefile)[gasparesganga/php-shapefile

PHP library to read and write ESRI Shapefiles, compatible with WKT and GeoJSON

1511.6M20](/packages/gasparesganga-php-shapefile)[martin-georgiev/postgresql-for-doctrine

Extends Doctrine with native PostgreSQL support for arrays, JSONB, ranges, PostGIS geometries, text search, ltree, uuid, and 100+ PostgreSQL-specific functions.

4485.3M4](/packages/martin-georgiev-postgresql-for-doctrine)[mevdschee/php-crud-api

Single file PHP script that adds a REST API to a SQL database.

3.7k63.8k9](/packages/mevdschee-php-crud-api)[jmikola/geojson

GeoJSON implementation for PHP

3109.0M77](/packages/jmikola-geojson)[hisamu/php-xbase

A simple parser for \*.dbf, \*.fpt files using PHP

1871.5M2](/packages/hisamu-php-xbase)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
