Download the PHP package mradionov/phonegap-build-api without Composer

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

Phonegap Build API - PHP

PHP library to interact with Phonegap Build API

Support

The latest version of Cordova (Phonegap) for the time when library was developed - 3.1.0. Contains all methods that are presented in this version of API. Anyways, it has to work with the latest versions of Cordova (Phonegap) 5+.

OS support: iOS, Android.

Requires CURL PHP extension to be installed and enabled, it will trigger a PHP error otherwise.

Install

Install via Composer from command line:


or add it to composer.json:

and run

Use

PhonegapBuildApi constructor accepts two arguments, second is optional. If only one argument is provided, then it has to be authentication token. If two - username and password. Otherwise, you can always provide auth params later using public methods setToken() and setCredentials(). There is also a static factory method to use API in a different way:

Note: Authentication token mentioned above is taken from Phonegap Build account -> "Edit account" page -> "Authentication token" section.

To use access token from OAuth2 flow use a method setAccessToken():

Handle response

Each API method returns response as associative array created from JSON (if successful). You can use method success() to check whether or not last request was successful. You can use method error() to get error message, if request failed.

API

GET /api/v1/me (docs)
GET /api/v1/apps (docs)
GET /api/v1/apps/:id (docs)
GET /api/v1/apps/:id/icon (docs)
GET /api/v1/apps/:id/:platform (docs)
GET /api/v1/keys (docs)
GET /api/v1/keys/:platform (docs)
GET /api/v1/keys/:platform/:id (docs)
POST /api/v1/apps (docs)

From remote repo (preferable):

From file (preferable):

PUT /api/v1/apps/:id (docs)

From remote repo (preferable):

From file (preferable):

POST /api/v1/apps/:id/icon (docs)
POST /api/v1/apps/:id/build (docs)
POST /api/v1/apps/:id/build/:platform (docs)
POST /api/v1/apps/:id/collaborators (docs)
PUT /api/v1/apps/:id/collaborators/:id (docs)
POST /api/v1/keys/:platform (docs)

Android specific (preferable):

iOS specific (preferable):

PUT /api/v1/keys/:platform/:id (docs)

Android specific (preferable):

iOS specific (preferable):

DELETE /api/v1/apps/:id (docs)
DELETE /api/v1/apps/:id/collaborators/:id (docs)
DELETE /api/v1/keys/:platform/:id (docs)

All versions of phonegap-build-api with dependencies

PHP Build Version
Package Version
No informations.
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 mradionov/phonegap-build-api contains the following files

Loading the files please wait ....