Download the PHP package ggggino/warehouse-path without Composer

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

GGGGinoWarehousePath

Find the shortest path to retrieve all the objects in the own location

Build Status Scrutinizer Code Quality

Get started

Initialization from a give matrix

Initialization from a give tree

Initialization from a json

Here for a correct json used to build the warehouse

Initialization in detail

Get distance from a starting point to every other location

Get the matrix of proximity

Call the Warehouse::getPath for every single location passed in the array

Best path

Calculate the best path to touch every location from the matrix of proximity

With this function you get the best path to follow to touch every location in the warehouse/matrix.

Places

Places are the main factor for calculating the best path from a Point A to B.

A warehouse can be seen as a matrix of Place that every item has own weight. From this, the program can create the best path:

Lx = Location - Weight 1

Wx = Wall - Weight 100

Cx = Corridor - Weight 2

L1 W1 L8
L2 W2 L7
L3 C1 L6
L4 C2 L5

Imagine you start from the Place "L1", the best path to "L7" will be:

L1 -> L2 -> L3 -> C1 -> L6 -> L7

So the distance, adding all the weight in the path, will be:

1 + 1 + 1 + 2 + 1 = 6

This library starts with these three places:

Name Weight Walkable
Corridor 2 true
Location 1 true
Wall 100 false

You can add as many type of Place as you want.

Read the complete doc about Places

Breadcrumb builder

The breadcrumb builder aim to create a matrix from the array of all places. This matrix will be passed to the calculator that calculate the correct order which is the correct path to touch all the places with the less cost possible.

Breadth First

With this method I map the wharehouse expanding the area and keep in mind the previous state on every step. In this way I can realize a wharehouse that every place knows the shortest path to specific point

Read the complete doc about Breadcrumb

Calculators

The calculator is the method that choose the best order to touch every location listed. At the moment only one type of calculation is available.

Fast calculator

In the matrix builded from the distance between every location, I chose for every location the closer location.

Read the complete doc about Calculators


All versions of warehouse-path with dependencies

PHP Build Version
Package Version
Requires php Version ^7.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 ggggino/warehouse-path contains the following files

Loading the files please wait ....