{"id":13578948,"url":"https://github.com/shopware/SwagShopwarePwa","last_synced_at":"2025-04-05T20:32:46.850Z","repository":{"id":44720656,"uuid":"216656196","full_name":"shopware/SwagShopwarePwa","owner":"shopware","description":"This extension adds additional endpoints to your Shopware 6 platform to let it integrate with Shopware PWA.","archived":false,"fork":false,"pushed_at":"2024-09-05T10:02:23.000Z","size":574,"stargazers_count":40,"open_issues_count":12,"forks_count":17,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-03-12T21:29:39.731Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shopware.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-10-21T20:09:20.000Z","updated_at":"2024-09-16T01:07:06.000Z","dependencies_parsed_at":"2023-12-06T13:45:34.369Z","dependency_job_id":"5c4e3230-9367-4b8b-9a62-1414b48da3b2","html_url":"https://github.com/shopware/SwagShopwarePwa","commit_stats":null,"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shopware%2FSwagShopwarePwa","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shopware%2FSwagShopwarePwa/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shopware%2FSwagShopwarePwa/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shopware%2FSwagShopwarePwa/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shopware","download_url":"https://codeload.github.com/shopware/SwagShopwarePwa/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247399818,"owners_count":20932875,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T15:01:35.248Z","updated_at":"2025-04-05T20:32:46.554Z","avatar_url":"https://github.com/shopware.png","language":"PHP","funding_links":[],"categories":["PHP"],"sub_categories":[],"readme":"# Shopware PWA extension\n\nThis extension provides a collection of helper functions to integrate with the [shopware-pwa](https://github.com/DivanteLtd/shopware-pwa) client library.\n\nIn order to use this extension with Shopware 6, make sure you install the latest [available version](#versions) compatible with your Shopware version.\n\nThere is a [video on how to set up](https://drive.google.com/open?id=1ynpoWw9b7hljzkqzVv2JFDxTtgomyVg4) the extension correctly (please be aware that this applies to the old 6.1 version).\n\n## Table of content\n\n* [Versions](#versions)\n* [Setup](#setup)\n* [Documentation](#documentation)\n* [Tests](#tests)\n\n## Versions\n\n| Shopware Version | SwagShopwarePwa Version | PWA Version |\n|------------------|-------------------------| --- |\n| 6.3.*            | 0.2.*                   | 0.8.* |\n| 6.4.*            | 0.3.*                   | 0.9.* |\n| 6.5.*            | 0.4.*                   | canary |\n| 6.6.*            | 0.5.*                   | canary |\n| 6.6.x-dev        | master                  | canary |\n\n## Setup\n\n### Install extension\n\nThere are two ways you can require the extension.\n\n#### Composer\n\nRun\n\n```\n$ composer require shopware-pwa/shopware-pwa\n```\n\nwithin your Shopware installation directory. This will install a composer managed package of the extension. To use the latest version run\n\n```\n$ composer require shopware-pwa/shopware-pwa:dev-master\n```\n\ninstead.\n\nWe recommend using this way of installing the extension, because it reduces the risk of having an outdated/incompatible dependency.\n\n#### Manual\n\nClone the repository into the local `plugins` directory of your Shopware installation.\n\n```\n$ git clone https://github.com/shopware/SwagShopwarePwa.git custom/plugins/SwagShopwarePwa\n```\n\nThis will allow you to make changes and pull requests to this very repository, since you're using a local copy of the extension.\n\n### Install extension\n\nRun the following commands in your Shopware root directory.\n\nRefresh extension list\n\n```bash\n$ bin/console plugin:refresh\n```\n\nInstall and activate the extension\n\n```bash\n$ bin/console plugin:install --activate SwagShopwarePwa\n```\n\nClear the cache (sometimes invalidation is needed for the new routes to activate)\n\n```bash\n$ bin/console cache:clear\n```\n\n### Generate routes\n\nMake sure you've created a sales channel and assigned SEO URL templates (either using the database or the administration panel).\n\nCurrently 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. \n\nRefresh the index tables (containing the SEO URLs) manually\n\n```bash\n$ bin/console dal:refresh:index\n```\n\n## Documentation\n\n### Endpoints\n\nThis extension adds multiple endpoints to both, the store and the admin API. All endpoints below accept `POST` requests.\n\n**/store-api/pwa/page**\n\nResolves a given path to cms or product page and accepts include parameters to specifiy the fields contained in your response.\n \n**/api/_action/pwa/dump-bundles**\n\nThis 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.\n \n## Tests\n\nTests are located in `src/Test` and configured in `phpunit.xml`.\n\nIn order to run the tests you have to set up the test database so that Shopware runs them with our extension enabled.\n\nAfter 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):\n\n```bash\n$ ./psh.phar init-test-databases\n```\n\nThen execute the following commands in the extension's root directory to run the test.\n\n```bash\n$ composer install\n$ ../../../vendor/bin/phpunit\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshopware%2FSwagShopwarePwa","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshopware%2FSwagShopwarePwa","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshopware%2FSwagShopwarePwa/lists"}