#!/bin/bash

ME="$(readlink -f $0)"
MYDIR="$(dirname "${ME}")"
CPHAR="${MYDIR}/composer.phar"

if [ ! -f "${CPHAR}" ]; then
    wget -q https://getcomposer.org/composer.phar -O "${CPHAR}"
fi

exec php -d memory_limit=-1 -d allow_url_fopen=1 "${CPHAR}" "$@"
