/rebitClient

rebit client; SCI project

Primary LanguagePHP

rebitClient

rebit client; SCI project

  1. install php 5.6 or above -sudo add-apt-repository ppa:ondrej/php5-5.6 -sudo apt-get update -sudo apt-get install python-software-properties -sudo apt-get update -sudo apt-get install php5

commands taken from: https://www.dev-metal.com/install-setup-php-5-6-ubuntu-14-04-lts/

  1. install composer -sudo apt-get update -sudo apt-get install curl php5-cli git -curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer

commands taken from: https://www.digitalocean.com/community/tutorials/how-to-install-and-use-composer-on-ubuntu-14-04

  1. clone repository run at desired path: -git clone https://github.com/hoommaah/rebitClient.git

  2. install GuzzleHttp -curl -sS https://getcomposer.org/installer | php -php composer.phar require guzzlehttp/guzzle -require 'vendor/autoload.php'; -composer.phar update

commands take from official documentation at : https://github.com/guzzle/guzzle

  1. install phpunit (5.4 stable) -wget https://phar.phpunit.de/phpunit.phar -chmod +x phpunit.phar -sudo mv phpunit.phar /usr/local/bin/phpunit

commands taken from official documentation at : https://phpunit.de/manual/current/en/installation.html

  1. composer install -run 'composer install' inside rebitClient folder

commands for running tests on classes: -use 'phpunit VendorTest.php', -use 'phpunit RecipientTest.php', -use 'phpunit RemittanceTest.php', and -use 'phpunit UserTest.php'

models to require: -require 'Vendors.php', -require 'User.php', -require 'Recipient.php', and -require 'Remittance.php'