PHP code example of shopware / psh

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
D: php generate_some_things.php
bash
#!/usr/bin/env bash
# <PSH_EXECUTE_THROUGH_CMD>

FOO="BAR"

echo $PWD
echo $FOO
echo __PLACEHOLDER__

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".
	
	[....]