---
title: Installation
description: Doctrine Spatial 6.x installation guide, migrated from the collected library documentation.
canonical_html: ./installation.html
canonical_markdown: ./installation.md
---

[View HTML version](./installation.html)

> **Current version** — This documentation describes the current major version of `doctrine-spatial`.
> [View the library roadmap](../index.md)

## Installation via composer

Add the `longitude-one/doctrine-spatial` package in your composer.json.

```bash
composer require longitude-one/doctrine-spatial:^6.0.0
```

Or you can edit directly `composer.json` file by adding this line on your requirements:

```json
{
  "require": {
    "longitude-one/doctrine-spatial": "^6.0.0"
  }
}
```

## Installation without composer

Manual installation is not supported. Doctrine Spatial relies on Composer-managed dependencies and PSR-4 autoloading. Use Composer to install and
update the package.

## Installation to contribute

We welcome your contributions to this project! Here's how you can easily get involved:

1. Fork the Project on GitHub: Head over to the project's GitHub repository and create a fork. This creates your own copy of the codebase that you can modify.
1. Clone Your Fork Locally: Once you've forked the project, clone your forked repository to your local machine. This will allow you to work on the code locally.
1. Refer to the [contribution guide](contributing.md) for instructions on setting up the development environment, making code changes, and testing contributions.
