Download the PHP package dropcart/php-client without Composer

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

Dropcart PHP Client

See also GitHub Pages: https://dropcart.github.io/php-client/

Dropcart makes it extremely easy setting up an online shop. All orders, payments and invoices are created and processed automatically. There is no need for for pushing the order manually to a wholesaler, or to create a package slip, or whatever.

This Dropcart PHP Client is the official PHP client for the REST API provided by Dropcart for setting up your own web frontend.

Installation

Installation is rather easy. This client is available as a package on Packagist and thus addable to your project via composer. This is the preferred method.

The client is also available as standalone .zip.

Via composer (preferred)

Add require vendor/autoload.php to the files where you want to use the client. (../ is of course relative to where you require the file)

Standalone

  1. Download the latest version of the build/DropcartPhpClient.zip
  2. Extract and upload via (S)FTP to your shared hosting just outside of de document root.
  3. Add require ../vendor/autoload.php to the files where you want to use the client. (../ is of course relative to where you require the file)

Usage

You'll need your public and private key. Login on the Dropcart Management Console or register to obtain those keys.

First set your keys
Making a request

You can make request to the different services by calling it as method:

The latest method is always one of these:

By doing so the code will generate the appropiate URL with the requested HTTP method. For example

If you need to send parameters along with a post or put request you'll use addParam($name, $value) or addParams($array)

Getting the response

This client uses the amazing Guzzle for making request. The response are Psr7 Responses. You'll get the wanted JSON by doing:

For a global overview of all the REST functions check REST.md

License

See the LICENSE file for license rights and limitations (MIT).

Support

Please file an GitHub Issue when there are errors in the code.

When failing to install please contact us: [email protected]

Nederlands

Met Dropcart is het opzetten van een webshop bijzonder eenvoudig. Alle bestellingen, betalingen en facturen worden automatisch aangemaakt en verwerkt. Het is dus niet meer nodig om handmatig een bestelling bij een groothandel in te voeren, pakbon te verzenden etcetera.


All versions of php-client with dependencies

PHP Build Version
Package Version
Requires php Version ^7.4 | ^8.0
guzzlehttp/guzzle Version ^7.0
lcobucci/jwt Version ^3.4 | ^4.3
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 dropcart/php-client contains the following files

Loading the files please wait ....