https://github.com/vienthuong/shopwarepsysh
A Psysh integration for Shopware
https://github.com/vienthuong/shopwarepsysh
psysh shopware shopware-6 shopware-plugin shopware-psysh shopware-tinker shopware6-plugin
Last synced: about 2 months ago
JSON representation
A Psysh integration for Shopware
- Host: GitHub
- URL: https://github.com/vienthuong/shopwarepsysh
- Owner: vienthuong
- Created: 2021-01-12T17:01:25.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-01-12T18:00:40.000Z (over 4 years ago)
- Last Synced: 2024-12-01T00:39:35.438Z (6 months ago)
- Topics: psysh, shopware, shopware-6, shopware-plugin, shopware-psysh, shopware-tinker, shopware6-plugin
- Language: PHP
- Homepage:
- Size: 4.88 KB
- Stars: 15
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Shopware Psysh
----
Inspired by the `frosh tinker` that inspired by `laravel tinker` command from laravel this plugin adds a similar command to Shopware 6.
It's basically a fork version of `frosh tinker` for Shopware 6 with additional features.
Read more:
- [`frosh/tinker`](https://github.com/FriendsOfShopware/FroshTinker) repository
- [`bobthecow/psysh`](https://github.com/bobthecow/psysh) repository## New command:
```
bin/console sw:psysh
```- Enter `ls` to get list of scoped variables.
- Enter `list` to get list of avaialbe commands.## Additional features:
- Shopware's Core Services aliases
(e.g new EqualsFilter via CLI instead of fully qualified class name `Shopware\Core\Framework\DataAbstractionLayer\Search\Filter\EqualsFilter`.
_(There is some rare cases that two classes use the same class alias so you need to give the fullname to make it work)_- Shopware's service container auto-completion.
- Struct Object caster.
- Default scoped variables: $container (Service Container object), $connection (Doctrine Connection object), $context (Default context object), $criteria (default criteria object)...and more
## Requirements
- Shopware 6.3 or above (older versions might work, but were not tested)
- PHP 7.1 or above## Installation via composer
```
composer require vin-sw/psysh
bin/console plugin:refresh
bin/console plugin:install --activate ShopwarePsysh
bin/console sw:psysh
```## Contributing
Feel free to fork and send pull requests!
## Licence
This project uses the [MIT License](LICENCE.md).