Download the PHP package w4s/w4s-php without Composer

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

Wallet4Sales v1 SDK Quickstart

Quickstart for Wallet4Sales v1 platform

Overview

This quickstart guide is designed for developers to run rapidly within the Wallet4Sales v1 environment using PHP. For further information please feel free to create a request or write to us at: [email protected].

Authentication

Our system uses an authentication process for each user account. You need to create your account before requesting your API_KEY. Please click here to create your account

Get Your API Keys

Log to your account, go to your user profile and click the button to request your API_KEY. An email will be sent to the account you confirmed with your credentials. In case you cannot find a way to request your API_KEY, you can write to us at [email protected] to request your credential and connect to our service.

Composer

The Wallet4Sales SDK uses composer to manage dependencies. Visit the composer documentation to learn how to install composer.

Go to the root of the project

then install it through composer:

This SDK and its dependencies will be installed under ./vendor.

Create a new Template

To create a new Template, you will need your API_KEY to make a request to our system. This will be attached to the Authorization header: Bearer {API_KEY}.

This template will be created in your administrator panel with a code useful for your next requests such as creating a campaign for your marketing action.

Table of contents for a Template

Key name Type Descripción
BackgroundColor color, as a string Required. Background color of the pass, specified as an CSS-style RGB triple. For example, rgb(23, 187, 82).
ForegroundColor color, as a string Required. Foreground color of the pass, specified as a CSS-style RGB triple. For example, rgb(100, 10, 110).
LabelColor color, as a string Required. Color of the label text, specified as a CSS-style RGB triple. For example, rgb(255, 255, 255).
OrganizationName string Required. Display name of the organization that originated and signed the pass.
PassTypeIdentifier string Required. Pass type identifier, as issued by Apple. The value must correspond with your signing certificate.
TeamIdentifier string Required. Team identifier of the organization that originated and signed the pass, as issued by Apple.
PassType integer Required. EL ID del tipo de pase que se creará. Por ejemplo 2.
CertificateID integer Required. EL ID del Certificado que ha subido o del propio sistema.
TemplateName string Required. Nombre del template que se va a crear.
Description localizable string Required. Brief description of the pass, used by the iOS accessibility technologies. Don’t try to include all of the data on the pass in its description, just include enough detail to distinguish passes of the same type.
Content array Required. Pass content due to theWallet4Sales documentation.
Items array Required. Items del pass due to Wallet4Sales documentation It can encompass the following values: bodyHeader, bodyBack, bodyPrimary, bodySecondary, bodyAuxiliary, bodyBack

Upload a Certificate

To upload a certificate, you must download a CSR on our platform or request one following the instruction:

The request send you back a signature request which must be uploaded to your Apple Developer account to issue your certificate.

Upload your Certificate (CER)

Once your certificate has been issued in your Apple Developers account, you can upload it to our system and it will return the CertificateID you need to create your Template.

Create Campaign

A marketing campaign helps us distribute passes. It allows us create your taylor made marketing action towards your clients.

It will send you back the CampaignCode you need to create and distribute passes.

Create Pass


All versions of w4s-php with dependencies

PHP Build Version
Package Version
Requires php Version >=7.0
ext-zip Version *
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 w4s/w4s-php contains the following files

Loading the files please wait ....