Download the PHP package longitude-one/doctrine-spatial without Composer

On this page you can find all versions of the php package longitude-one/doctrine-spatial. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package doctrine-spatial

Doctrine Spatial

Doctrine Spatial is a Doctrine ORM/DBAL extension for working with spatial data in PHP applications.

It provides support for spatial types and functions across multiple database engines, while keeping the integration close to Doctrine’s native entity and query model.

Why use it?

Current status

Project repository badge for longitude-one/doctrine-spatial Badge indicating stable release version available Badge indicating minimum supported PHP version required Badge showing project license on Packagist

Badge showing GitHub Actions full test workflow status Badge showing code coverage status from Codecov Badge showing documentation build status on ReadTheDocs

Badge showing last month package downloads on Packagist Badge showing project star count on Packagist

Documentation

The documentation covers installation, configuration, entity mapping, spatial queries, and contribution guidelines.

It also includes a glossary for the main spatial types and functions supported by the library.

Compatibility

PHP and Doctrine ORM

doctrine-spatial PHP Doctrine ORM. Status
5.0 8.1+ ^2.9, ^3.1 Stable (security fixes).
5.1 8.2+ ^2.19, ^3.1 Next version (development)
5.2 8.3+ ^2.19, ^3.1 Slated for Jan 1, 2027.
6.0 8.5+ ^3.6, ^4.x-dev In development.

Security fixes follow the PHP support roadmap.

Database compatibility

The versions below reflect the database stack used for the test matrix.

doctrine-spatial MySQL. MariaDB PostgreSQL PostGIS SQL Server Status
5.0 5.7, 8.0 10.6 18 3.6 Stable (security fixes).
5.1 8.4 10.11 18 3.6 2017 Next version (development)
5.2 8.4 10.11 18 3.6 2017 Next version (development)
6.0 8.4 10.11 18 3.6 2017 in development.

Known limitations

longitude-one/doctrine-spatial cannot currently store the SRID on MySQL or SQL Server. Internally, the extension uses Well-Known Text (WKT) to bridge database values, but this does not allow both WKT and SRID to be passed together through Doctrine’s persistence model. Extended Well-Known Text (EWKT) solves this for PostGIS, but it is not supported by other database engines.

This limitation can be worked around in practice by using the spatial functions ST_SetSRID and ST_SRID when needed, so the SRID can still be handled at the query level even if it is not persisted directly with the value.

Project origins

This library was originally created by Derek J. Lambert. Alexandre Tranchant later forked it from creof/doctrine-spatial after the original project appeared to be inactive since 2017.

Branch strategy

The repository follows a structured release model:

Contributing

Contributions, bug reports, and documentation improvements are welcome. Please refer to the documentation for the development workflow and test commands.


All versions of doctrine-spatial with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
ext-mbstring Version *
longitude-one/geo-parser Version ^3.0.1
longitude-one/wkt-parser Version ^3.0.0
longitude-one/wkb-parser Version ^3.0.0
doctrine/orm Version ^2.19|^3.1
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package longitude-one/doctrine-spatial contains the following files

Loading the files please wait ...