2017 © Pedro Peláez
 

library passworks-php

Client for Passworks API allowing the creating of Apple Passbook/Wallet content

image

passworks/passworks-php

Client for Passworks API allowing the creating of Apple Passbook/Wallet content

  • Monday, December 18, 2017
  • by parreirat
  • Repository
  • 5 Watchers
  • 0 Stars
  • 96 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 1 Open issues
  • 8 Versions
  • 0 % Grown

The README.md

PHP bindings for the Passworks API

Passworks PHP API client can be installed via Composer or PHAR file. (Composer is the recommended method for using Passworks API client)., (*1)

Installing using Composer

The API client can be installed through Composer. It's been made available as a Packagist package, available here. In order to use it, first add a file named composer.json in your project root:, (*2)

{
    "require": {
        "passworks/passworks-php": "2.0.0"
    }
}

Once the composer.json file is created, you need to download the composer.phar executable. To do so, run the following curl command on your console of choice:, (*3)

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

Now you can run the composer install for the initial package install and composer update to update to the latest version of the API client, which is linked to the master branch., (*4)

php composer.phar install

Now you're set to go! Just include the following file and you're good to go., (*5)

require 'vendor/autoload.php';

# Installation using the PHAR file

Download the lastest version of Passworks.phar and require it as usual., (*6)

include 'Passworks.phar';

Example

<?php

require 'vendor/autoload.php';

use Passworks\Client;

// Instantiate the Passworks client
$api = new Passworks\Client('your api username', 'your api key');

// upload a asset (background image)
$api->createAsset('background', '/local-path-to-a-image/image.png');

// Fetch the asset list
$assets = $api->getAssets();

// Iterate through asset list
foreach($assets as $asset)
{
  print_r($asset);
}

More Examples:

Creating and Listing assets, (*7)

Listing certificates, (*8)

Creating, Listing and Editing Coupons, (*9)

Creating, Listing and Editing Event Tickets, (*10)

Creating, Listing and Editing Boarding Passes, (*11)

Creating, Listing and Editing Store Cards, (*12)

Creating, Listing and Editing Generic Passes, (*13)

Documentation

For more information about the API please please refere to https://github.com/passworks/passworks-api, (*14)

For more examples about the PHP client try browsing the wiki, (*15)

Help us make it better

Please tell us how we can make the PHP client better. If you have a specific feature request or if you found a bug, please use GitHub issues. Fork these docs and send a pull request with improvements., (*16)

To talk with us and other developers about the API open a support ticket or mail us at api at passworks.io if you need to talk to us., (*17)

The Versions

18/12 2017

dev-2-header-issue

dev-2-header-issue

Client for Passworks API allowing the creating of Apple Passbook/Wallet content

  Sources   Download

MIT

apple wallet passbook passworks passkit

30/06 2016

dev-master

9999999-dev

Client for Passworks API allowing the creating of Apple Passbook/Wallet content

  Sources   Download

MIT

apple wallet passbook passworks passkit

01/06 2016

v2.0.1

2.0.1.0

Client for Passworks API allowing the creating of Apple Passbook/Wallet content

  Sources   Download

MIT

apple wallet passbook passworks passkit

19/11 2015

v2.0.0

2.0.0.0

Passworks API client

  Sources   Download

MIT

api passbook passworks passworks.io

26/01 2015

v0.0.4

0.0.4.0

Passworks API client

  Sources   Download

MIT

api passbook passworks passworks.io

26/01 2015

v0.0.4-beta

0.0.4.0-beta

Passworks API client

  Sources   Download

MIT

api passbook passworks passworks.io

20/10 2014

v0.0.3-beta

0.0.3.0-beta

Passworks API client

  Sources   Download

MIT

api passbook passworks passworks.io

10/10 2014

v0.0.2-beta1

0.0.2.0-beta1

Passworks API client

  Sources   Download

MIT

api passbook passworks passworks.io