Login   Register  
PHP Classes
elePHPant
Icontem

File: install.sh

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Giovanni Ramos  >  PDO4You  >  install.sh  >  Download  
File: install.sh
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: PDO4You
Access SQL databases using the PDO extension
Author: By
Last change: Updated installation scripts
Date: 11 months ago
Size: 550 bytes
 

Contents

Class file image Download
#!/bin/sh
_COMPOSER=$DIRECTORY"composer.phar"
_AUTOLOAD=$DIRECTORY"vendor/autoload.php"

if [ ! -z $DIRECTORY ]
	then
		if [ ! -f $_COMPOSER ]; then
			curl -sS https://getcomposer.org/installer | php -- --install-dir=$DIRECTORY
		fi
		php $_COMPOSER install --dev --working-dir=$DIRECTORY
	else
		if [ ! -f $_COMPOSER ]; then
			curl -sS https://getcomposer.org/installer | php
		fi
		php $_COMPOSER install --dev
fi
echo ""
echo ""
if [ -f $_AUTOLOAD ]; then
	echo "-- The autoloader and all project dependencies have been installed --"
	echo ""
fi