Skip to content

A PHP library for implement the Packlink API REST service from Packlink Shipping, S.L. https://packlink.com

License

Notifications You must be signed in to change notification settings

shakaran/packlink-php-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

packlink-php-sdk

A PHP library for implement the Packlink API REST service from Packlink Shipping, S.L. https://packlink.com

PackLink PHP client

This is the PackLink PHP SDK. This SDK contains methods for easily interacting with the PackLink API. Below are examples to get you started.

Latest Version Build Status Code Coverage Quality Score Total Downloads Join the chat at https://gitter.im/shakaran/packlink-php

Installation

To install the SDK, you will need to be using Composer in your project. If you aren't using Composer yet, it's really simple! Here's how to install composer:

curl -sS https://getcomposer.org/installer | php

The packlink api client is not hard coupled to Guzzle or any other library that sends HTTP messages. It uses the PSR-18 client abstraction. This will give you the flexibilty to choose what PSR-7 implementation and HTTP client to use.

If you just want to get started quickly you should run the following command:

composer require shakaran/packlink-php-sdk kriswallsmith/buzz nyholm/psr7

Quick start

To start using the Api SDK client, you need create an instance with your api key like this:

<?php

namespace MyCompany;

require __DIR__ . '/vendor/autoload.php';

use PackLink\ApiClient;

$apiKey = 'your_api_key';

// Create and configure the initial api client
$api = ApiClient::create($apiKey, 'https://api.packlink.com');

Examples

Under the Examples directory you can find several examples of how to use more deeply this API.

Other unofficial implementations

Support

Do you like my work? I am a Senior Backend Freelancer & Sysadmin, you can hire me to modify/implement/customize your custom develoment or integration of this API in your project, just open a issue for contact me or drop me an email to angel@guzmanmaeso.com!

Buy me a coffe or beer!

Buy me a coffee Join the chat at https://gitter.im/shakaran-packlink-php-sdk/community