Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/FriendsOfShopware/FroshDevelopmentHelper
Helpful development tools
https://github.com/FriendsOfShopware/FroshDevelopmentHelper
Last synced: 3 months ago
JSON representation
Helpful development tools
- Host: GitHub
- URL: https://github.com/FriendsOfShopware/FroshDevelopmentHelper
- Owner: FriendsOfShopware
- Created: 2019-09-24T19:09:00.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2024-01-22T22:05:06.000Z (10 months ago)
- Last Synced: 2024-04-23T17:53:11.931Z (7 months ago)
- Language: PHP
- Homepage:
- Size: 209 KB
- Stars: 77
- Watchers: 8
- Forks: 15
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Development Helper for Shopware 6
Successor plugin of FroshProfiler and FroshMailCatcher
## Installation
## Git Version
* Checkout Plugin in `/custom/plugins/FroshDevelopmentHelper`
* Download [FroshPluginUploader](https://github.com/FriendsOfShopware/FroshPluginUploader) and run `ext:prepare [folder to plugin]`
* Install the Plugin with the Plugin Manager## Features
* Show Twig Includes / Blocks in Template as HTML Comment
* Disable Annoying Storefront Error Handler
* Disables Twig Cache
* Twig Variables in Twig Tab
* Generate definition from command line### Generate plugin
```shell
./bin/console frosh:make:plugin
```Optional with `--namespace=xxx\\xx` specifying the namespace
### Generating Entities or edit Entities
Start wizard with
```
./bin/console frosh:make:definition My\\Plugin\\Namespace\\SomeDefinition
```### Generate Migration
```shell
./bin/console frosh:make:migration
```Example entity name: product, category, order
Checks the difference of that definition with the database and creates a migration
### Generate Twig Extension file
```shell
./bin/console frosh:extend:template
```Asks for the block you want to extend and creates the twig extension file for you
### SQL Logger for Console Debugging
Prints executed SQL to the console, in such a way that they can be easily copied to other SQL tools for further
debugging. This is similar to the symfony debug bar, but useful in CLI commands and tests.Usage:
Kernel::getConnection()->getConfiguration()->setSQLLogger(
new \Frosh\DevelopmentHelper\Doctrine\EchoSQLLogger()
);## Known issues
### Some HTML is not rendered correctly when this plugin is active 💣
This plugin can cause problems with blocks, due to the feature to show the block name as HTML comment.
If you encounter such issues with your plugin or project, you can configure this in [config/packages/frosh_development_helper.yaml](https://github.com/FriendsOfShopware/FroshDevelopmentHelper/blob/main/src/Resources/config/packages/frosh_development_helper.yaml)There is a predefined list of pattern which likely would cause such problems - feel free to provide a pull request with more such generic patterns.