Download the PHP package drumm3r/shopware-pwa without Composer

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

Shopware PWA extension

Please pay attention! This is not the shopware-pwa Plugin created by Shopware AG. This is a fork of the plugin to fix some critical bugs.

This extension provides a collection of helper functions to integrate with the shopware-pwa client library.

In order to use this extension with Shopware 6, make sure you install the latest available version compatible with your Shopware version.

There is a video on how to set up the extension correctly (please be aware that this applies to the old 6.1 version).

Table of content

Versions

Shopware Version SwagShopwarePwa Version PWA Version
6.3.* 0.2.* 0.8.*
6.4.* 0.3.* 0.9.*

Setup

Install extension

There are two ways you can require the extension.

Composer

Run

within your Shopware installation directory. This will install a composer managed package of the extension. To use the latest version run

instead.

We recommend using this way of installing the extension, because it reduces the risk of having an outdated/incompatible dependency.

Manual

Clone the repository into the local plugins directory of your Shopware installation.

This will allow you to make changes and pull requests to this very repository, since you're using a local copy of the extension.

Install extension

Run the following commands in your Shopware root directory.

Refresh extension list

Install and activate the extension

Clear the cache (sometimes invalidation is needed for the new routes to activate)

Generate routes

Make sure you've created a sales channel and assigned SEO URL templates (either using the database or the administration panel).

Currently there are the following requirements: As headless sales channels don't support SEO URLs, you have to select a "storefront" sales channel as a base.

Refresh the index tables (containing the SEO URLs) manually

Documentation

Endpoints

This extension adds multiple endpoints to both, the store and the admin API. All endpoints below accept POST requests.

/store-api/pwa/page

Resolves a given path to cms or product page and accepts include parameters to specifiy the fields contained in your response.

/api/_action/pwa/dump-bundles

This endpoint is required to connect Shopware extensions with your PWA during the application build. It dumps your extensions metadata and configuration and PWA specific source files and delivers via a safe channel.

Tests

Tests are located in src/Test and configured in phpunit.xml.

In order to run the tests you have to set up the test database so that Shopware runs them with our extension enabled.

After the extension is installed in your shop, make sure you execute the follwing command (in the Shopware root directory) to dump the current configuration of your shop to the test-database (when using Docker, run it inside the container):

Then execute the following commands in the extension's root directory to run the test.


All versions of shopware-pwa with dependencies

PHP Build Version
Package Version
Requires shopware/core Version ~6.4.0
shopware/storefront Version ~6.4.0
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 drumm3r/shopware-pwa contains the following files

Loading the files please wait ....