Download the PHP package pankrok/shoper-appstore-bundle without Composer

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

Shoper Appstore Symfony Bundle

Unofficial Symfony 7.4 bundle for building applications on the Shoper Appstore. Provides OAuth integration, REST API client, billing and webhook handling, Twig helpers, and Maker commands for scaffolding controllers. Not official Shoper software.

Current version: 2.2.0

Table of contents

Technologies

Setup

Install via Composer:

Create the database tables:

Configuration

OAuth mode (Appstore)

Create config/packages/appstore.yaml:

Basic Auth mode (admin username/password)

Rate limiting (optional)

Token refresh CRON

Run the token refresh command every 4 hours to keep OAuth tokens valid:

Available options:

Option Default Description
--limit 200 Maximum number of tokens to refresh per run
--hours-ahead 23 Refresh tokens expiring within this many hours (max 23)

Example crontab entry (every 4 hours):

Note: The old command name ShoperAppstoreBundle:TokenRefresh is kept as a BC alias.

Error handling

All Shoper API errors throw ShoperApiException, which extends Symfony's HttpException and carries the original error code and description from the API response.

The bundle ships an ExceptionSubscriber that automatically intercepts ShoperApiException and renders a clean Aurora-compatible error page instead of the Symfony debug page — no configuration needed.

To override the error template in your application, create:

Catching the exception manually in a controller:

Tests

The suite is pure unit tests (no kernel, database or network — HTTP goes through MockHttpClient):

Documentation

Topic File
ApiController reference docs/APICONTROLLER.md
OAuth & Basic Auth docs/AUTH.md
Aurora forms docs/AURORAFORMS.md
Billing system docs/BILLING.md
Events docs/EVENTS.md
Iframe / JS SDK docs/IFRAME.md
API Resources docs/RESOURCES.md
Shoper Controller docs/SHOPERCONTROLLER.md
Twig filters docs/TWIGFILTERS.md
Webhooks docs/WEBHOOK.md

All versions of shoper-appstore-bundle with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2
doctrine/dbal Version ^3.8|^4
doctrine/doctrine-bundle Version ^2.13
doctrine/doctrine-migrations-bundle Version ^3.3
doctrine/orm Version ^3.2
symfony/console Version 7.4.*
symfony/framework-bundle Version 7.4.*
symfony/http-client Version 7.4.*
symfony/monolog-bundle Version ^3.7|^4.0
symfony/twig-bundle Version 7.4.*
symfony/yaml Version 7.4.*
twig/extra-bundle Version ^3.12
twig/twig Version ^3.12
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 pankrok/shoper-appstore-bundle contains the following files

Loading the files please wait ...