Download the PHP package willvincent/turf-php without Composer

On this page you can find all versions of the php package willvincent/turf-php. 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 turf-php

Turf-PHP

Turf-PHP License

Turf-PHP is a PHP port of Turf.js, a powerful spatial analysis library. This package provides robust GeoJSON-based geospatial functions for use in PHP applications, allowing you to perform geometry operations, boolean calculations, and spatial analysis with ease.

NOTE: This is a very early effort to port functionality!

It is incomplete and there should be a reasonable expectation that some output may differ slightly from Turf.js, and some may be outright broken. If you need a feature that's not available, or not working correctly, please consider opening a pull request!

🚀 Features

📦 Installation

Install Turf-PHP using Composer:

🛠 Usage

Turf-PHP provides various functions to work with geospatial data. Below are some examples of how to use it in your PHP application.

Example: Calculating the area of a FeatureCollection

Example: Checking if a Point is in a Polygon

Example: Generating a square grid

📚 Supported Functions

The following spatial analysis functions are currently implemented:

The following generative and manipulation functions are currently implemented:

The following boolean operations are currently implemented:

More functions will be added over time to expand the capabilities of Turf-PHP.

Testing and contributions are welcome!

📖 Documentation

Full documentation for Turf-PHP is pending! In the meantime, you can look at the src/Turf.php file for detail on properties for each implemented function.

🤝 Contributing

Contributions are welcome! If you'd like to improve the library, add new functions, or fix bugs, feel free to submit a pull request or open an issue.

📄 License

Turf-PHP is open-source and released under the MIT License.


🚀 Turf-PHP is a powerful tool for geospatial analysis in PHP. Start building today and bring the power of Turf.js to your PHP applications!


All versions of turf-php with dependencies

PHP Build Version
Package Version
Requires jmikola/geojson Version ^1.0
php Version >=8.2
willvincent/polyclip Version ^1.2
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 willvincent/turf-php contains the following files

Loading the files please wait ....