1. Go to this page and download the library: Download shopware/psh library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
shopware / psh example snippets
xml
<template
source="templates/consts.tpl"
destination="app/consts.php"
/>
xml
<template
source="templates/consts.tpl"
destination="app/consts-__ENVIRONMENT__.php"
/>
sh
TEMPLATE: ../templates/template.ini.tpl:../destination/template.ini
sh
> ./psh.phar unit
###################
Starting Execution of 'unit' ('actions/unit.sh')
(1/3) Starting
> bin/php-cs-fixer fix
You are running php-cs-fixer with xdebug enabled. This has a major impact on runtime performance.
Loaded config from "/var/www/swag/psh/.php_cs".
[....]
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.