Workflow example
Note: WIP
This is a set of shell scripts:
php-tests- tool to automate local testingmoomba- composer library creator script using template alecrabbit/php-package-templatebuild-image- convenient local docker image build tool (WIP)
See demos
Note :
moombascript does not requiredocker-composenordocker
Docker Engine 17.04.0+
- docker
- docker-compose
Get your copy of specific version
Note: Check releases tab for the latest version number
version="0.7.0"wget -qO- "https://github.com/alecrabbit/sh-php-dev-helper/archive/${version}.tar.gz" \
| tar -xz && cd sh-php-dev-helper-${version} && echo ${version} > php-dev-helper/VERSION \
&& ./install && cd ..Follow the instructions of install script.
Assuming your install path is ~/.local/bin, make sure your .profile file contains these lines:
# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/.local/bin" ] ; then
PATH="$HOME/.local/bin:$PATH"
fiCreate your own .templates_settings, use .templates_settings.dist as example
cp $HOME/.local/bin/php-dev-helper/.settings/.templates_settings.dist \
$HOME/.local/bin/php-dev-helper/.settings/.templates_settingsAnd edit that file as you wish
Note: if there is no
.templates_settingsfile internal defaults are used.
Project's file structure
Note: Windows is NOT supported.
| Supported OS |
|---|
| Ubuntu Linux (18.04 LTS) |
| Ubuntu Linux (19.04) |
Note: it should work practically on any linux installation. Known issues.