Download the PHP package vancuren/php-turf without Composer

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

PHP Turf

PHP Turf is a PHP library for geospatial analysis similar to Turf.js.

Installation

You can install PHP Turf via Composer. Run the following command in your terminal:

Example

Here's a basic example demonstrating how to use PHP Turf to perform geospatial analysis:

Usage

Helpers

Point

Creates a Point feature from a coordinate.

Polygon

Creates a Polygon feature from an array of coordinates.

LineString

Creates a new line string

FeatureCollection

Takes one or more Features and creates a FeatureCollection.

Measurement

Area

Returns the polygon’s area

Bearing

Calculate the bearing between two points

Center

Takes a Feature or FeatureCollection and returns the absolute center point of all features.

Destination

Calculate the destination point from a given point, distance, and bearing

Distance

Calculate the distance between two points

Midpoint

Calculate the midpoint between two points

Coordinate Mutation

TODO - Need to implement Coordinate Mutation ...

Transformation

TODO - Need to implement Transformation ...

Feature Conversion

TODO - Need to implement Feature Conversion ...

Misc

Nearest Point

Find the nearest point to a reference point

Contains Point

Checks to see if a polygon contains a point.

Random

Misc

Get Points

Returns the points that create the line string.

Contributing

Contributions are welcome! Please feel free to submit pull requests or open issues if you encounter any problems or have suggestions for improvement.

Backers

Thank you to all our backers! 🙏

[Become a backer]()

Sponsors

Support this project by becoming a sponsor. Your logo will show up here with a link to your website.

[Become a sponsor]()

License

This project is licensed under the GNU AGPLv3 License. See the LICENSE file for details.


All versions of php-turf with dependencies

PHP Build Version
Package Version
Requires php Version ^7.1 || ^8.0
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 vancuren/php-turf contains the following files

Loading the files please wait ....