PHPackages                             eslider/spatialite - 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. [Database &amp; ORM](/categories/database)
4. /
5. eslider/spatialite

ActiveLibrary[Database &amp; ORM](/categories/database)

eslider/spatialite
==================

Sqlite and spatialite static binaries

0.0.16(8y ago)52.8k↓83.3%[1 issues](https://github.com/eSlider/spatialite/issues)2LGPL-2.1PHPPHP &gt;=5.3.1

Since Mar 8Pushed 3y ago2 watchersCompare

[ Source](https://github.com/eSlider/spatialite)[ Packagist](https://packagist.org/packages/eslider/spatialite)[ RSS](/packages/eslider-spatialite/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (5)Dependencies (3)Versions (18)Used By (2)

Repository
==========

[](#repository)

- Windows x32 and Linux x64 binaries
- PHP shell wrapper driver
- PHP native wrapper driver

About
=====

[](#about)

SpatiaLite is an open source library intended to extend the SQLite core to support fully fledged Spatial SQL capabilities. SQLite is intrinsically simple and lightweight:

- a single lightweight library implementing the full SQL engine
- standard SQL implementation: almost complete SQL-92
- no complex client/server architecture
- a whole database simply corresponds to a single monolithic file (no size limits)
- any DB-file can be safely exchanged across different platforms, because the internal architecture is universally portable
- no installation, no configuration

SpatiaLite is smoothly integrated into SQLite to provide a complete and powerful Spatial DBMS (mostly OGC-SFS compliant). Using SQLite + SpatiaLite you can effectively deploy an alternative open source Spatial DBMS roughly equivalent to PostgreSQL + PostGIS.

SpatiaLite is licensed under the MPL tri-license terms; you are free to choose the best-fit license between:

- the [MPL 1.1](http://www.mozilla.org/MPL/MPL-1.1.html)
- the [GPL v2.0](http://www.gnu.org/licenses/gpl-2.0.html#TOC1) or any subsequent version
- the [LGPL v2.1](http://www.gnu.org/licenses/lgpl-2.1.html) or any subsequent version

Installation
============

[](#installation)

`composer require "eslider/spatialite"`

Develop
=======

[](#develop)

`composer update`

Setup
=====

[](#setup)

In order to get native driver work, you need set absolute path of `sqlite3.extension_dir` variable in `php.ini` file to the `bin/x64` directory, where `mod_spatialite.so` can be found.

### Example:

[](#example)

`sqlite3.extension_dir = /var/www/project_name/vendor/eslider/spatialite/bin/x64/mod_spatialite`

Tests
=====

[](#tests)

PHP Unit test command:

`bin/phpunit tests`

By the first time tests creates an `spatialite.sqlite` file in the project directory. The file has geometries and spatial functions. This initial process take some time (&gt;1 min). Next time tests runs faster.

Data-Management
===============

[](#data-management)

[Spatialite data management GUI](https://www.gaia-gis.it/gaia-sins/windows-bin-amd64/spatialite-4.3.0a-win-amd64.7z)

```
wine spatialite_gui.exe

```

Refer
=====

[](#refer)

- Official PHP repository located at
- Powered by

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance16

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 91.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 ~51 days

Recently: every ~162 days

Total

16

Last Release

2998d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e968f2c0f91a0501b62970cd09b610faa54713bf831038b82049ca881766c7ec?d=identicon)[eSlider](/maintainers/eSlider)

---

Top Contributors

[![eSlider](https://avatars.githubusercontent.com/u/1188335?v=4)](https://github.com/eSlider "eSlider (44 commits)")[![danielegert](https://avatars.githubusercontent.com/u/16337440?v=4)](https://github.com/danielegert "danielegert (4 commits)")

---

Tags

sqlitestaticsqlite3spatialite

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/eslider-spatialite/health.svg)

```
[![Health](https://phpackages.com/badges/eslider-spatialite/health.svg)](https://phpackages.com/packages/eslider-spatialite)
```

###  Alternatives

[doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database schema introspection and management.

9.7k595.8M6.5k](/packages/doctrine-dbal)[scienta/doctrine-json-functions

A set of extensions to Doctrine that add support for json query functions.

58825.2M48](/packages/scienta-doctrine-json-functions)[nette/caching

⏱ Nette Caching: library with easy-to-use API and many cache backends.

43719.1M394](/packages/nette-caching)[nette/database

💾 Nette Database: layer with a familiar PDO-like API but much more powerful. Building queries, advanced joins, drivers for MySQL, PostgreSQL, SQLite, MS SQL Server and Oracle.

5436.9M255](/packages/nette-database)[ezsql/ezsql

Advance database access library. Make interacting with a database ridiculously easy. An universal interchangeable CRUD system.

86748.3k](/packages/ezsql-ezsql)[jv2222/ezsql

Advance database access library. Make interacting with a database ridiculously easy. An universal interchangeable CRUD system.

86811.4k2](/packages/jv2222-ezsql)

PHPackages © 2026

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