Skip to content

PHP library for accessing the Firefox Marketplace submission API

Notifications You must be signed in to change notification settings

subhakundu/Marketplace.PHP

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Marketplace PHP client

A library to interact with Marketplace

Allows to validate, create and manipulate webapps and screenshots

Usage

To Test:

phpunit Tests

Obtain your key and secret from http://marketplace.mozilla.org/developers/api

Instantiate Connection object:

$connection = new Marketplace\Connection('yourkey', 'yoursecret');

Pass it to the Client:

$marketplace = Marketplace\Client($connection);

Create webapp if manifest valid:

// validate manifest
$response = $marketplace->validateManifest('http://example.com/manifest.webapp');
echo "\n\nManifest id: ".$response['id'];
echo "\nManifest is ";
if ($response["valid"]) {
  echo "valid - creating webapp...";
  // create webapp
  $response = $marketplace->createWebapp($response['id']);
  echo "\n\nWebapp id: ".$response['id'];
} else {
  echo "invalid";
}

Requires

OAuth class (PECL) curl

About

PHP library for accessing the Firefox Marketplace submission API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published