PHPackages                             survos/pwa-extra-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. survos/pwa-extra-bundle

ActiveSymfony-bundle[Utility &amp; Helpers](/categories/utility)

survos/pwa-extra-bundle
=======================

Extra tools for https://github.com/Spomky-Labs/phpwa

1.6.44(9mo ago)0567MITPHPPHP ^8.3CI passing

Since Mar 4Pushed 8mo ago2 watchersCompare

[ Source](https://github.com/survos/SurvosPwaExtraBundle)[ Packagist](https://packagist.org/packages/survos/pwa-extra-bundle)[ GitHub Sponsors](https://github.com/kbond)[ RSS](/packages/survos-pwa-extra-bundle/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (15)Versions (409)Used By (0)

PWA Extra Bundle
================

[](#pwa-extra-bundle)

This bundle is a playground for ideas to improve

The idea is that after these tools are developed they'll be incorporated into that the core bundle and this one won't be necessary.

Extra Features
--------------

[](#extra-features)

Before generating the initial configuration, generate the icons. Yes, this is a bit of a pain, but it's a requirement for the manifest. A manifest is required to run offline.

```
composer req symfony/ux-twig-component
```

```

        Lauch button here...

            Install as PWA

```

To generate the initial PWA Yaml configuration, run

```
bin/console survos:pwa:config
```

To create screenshots!!

```
composer req symfony/mime symfony/filesystem symfony/panther
composer require --dev dbrekelmans/bdi
vendor/bin/bdi detect drivers
symfony server:status
bin/console pwa:create:screenshot https://127.0.0.1:8001/ -o homepage
```

Simple installation
===================

[](#simple-installation)

```
symfony new pwa-demo --webapp --php=8.2 && cd pwa-demo
composer config extra.symfony.allow-contrib true
composer config minimum-stability dev
composer require spomky-labs/pwa-bundle:1.2.x

bin/console importmap:require bootstrap
echo "import 'bootstrap/dist/css/bootstrap.min.css'" >> assets/app.js
bin/console importmap:require bootstrap-icons/font/bootstrap-icons.min.css
echo "import 'bootstrap-icons/font/bootstrap-icons.min.css'" >> assets/app.js

bin/console make:controller AppController
sed -i "s|Route('/app'|Route('/'|" src/Controller/AppController.php
sed -i "s|'app_app'|'app_homepage'|" src/Controller/AppController.php

cat > templates/app/index.html.twig
