vin-sw / psysh
Psysh integration for Shopware
Installs: 180
Dependents: 0
Suggesters: 0
Security: 0
Stars: 14
Watchers: 2
Forks: 1
Open Issues: 0
Type:shopware-platform-plugin
pkg:composer/vin-sw/psysh
Requires
- psy/psysh: ^0.10.5
This package is auto-updated.
Last update: 2025-10-25 21:12:52 UTC
README
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/tinkerrepository
- bobthecow/psyshrepository
New command:
bin/console sw:psysh
- Enter lsto get list of scoped variables.
- Enter listto 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)
- 
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.