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.
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):