Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 

Delivery Plugin Example

GitHub release

An example project built in Slim Framework using the MyParcel.com Delivery Plugin and API-SDK for PHP.

Installation

The project uses Docker to run a local development environment. To install Docker, follow the steps in the documentation.

Setup

To setup the project (install composer dependencies, etc), run the following command:

./mp.sh setup

Credentials

Afterwards enter your credentials and configuration in the newly created .env file.

Visiting in the browser

The project wil run at http://localhost on the port you specified in your .env file.

Google Maps Key

The Delivery Plugin requires a Google Maps API key to run. You can get one here. Make sure both the Google Maps JavaScript API and the Google Maps Geocoding API are enabled.

When you visit the project in the browser, input the Google Api key in the field and press Save.

Commands

The following commands are available:

  • ./mp.sh - List created containers (for this project).
  • ./mp.sh up - Start the application.
  • ./mp.sh down - Stop the application.
  • ./mp.sh setup - Setup the application.
  • ./mp.sh composer <args> - Run composer inside the app container.

About

An example project using the Delivery Plugin and our PHP-SDK

Resources

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •