PHPackages                             dealer-venom/passworks-php - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. dealer-venom/passworks-php

ActiveLibrary

dealer-venom/passworks-php
==========================

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

v2.0.3(5y ago)0238↓100%MITPHP

Since Oct 10Pushed 5y agoCompare

[ Source](https://github.com/Dealer-Venom/passworks-php)[ Packagist](https://packagist.org/packages/dealer-venom/passworks-php)[ RSS](/packages/dealer-venom-passworks-php/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (9)Used By (0)

PHP bindings for the Passworks API
==================================

[](#php-bindings-for-the-passworks-api)

Passworks PHP API client can be installed via [Composer](https://github.com/composer/composer) or [PHAR](http://php.net/manual/en/intro.phar.php) file. (*Composer is the recommended method for using Passworks API client*).

Installing using Composer
-------------------------

[](#installing-using-composer)

The API client can be installed through Composer. It's been made available as a [Packagist](https://packagist.org/) package, available [here](https://packagist.org/packages/passworks/passworks-php). In order to use it, first add a file named **composer.json** in your project root:

```
{
    "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:

```
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.

```
php composer.phar install
```

Now you're set to go! Just include the following file and you're good to go.

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

Installation using the PHAR file
================================

[](#installation-using-the-phar-file)

---

Download the lastest version of [Passworks.phar](https://github.com/passworks/passworks-php/releases/latest) and require it as usual.

```
include 'Passworks.phar';
```

Example
-------

[](#example)

```
