This application has been built using the FuelPHP HMVC Framework.
This Project uses the following Composer Dependencies which are set inside the composer.json file
- "curl/curl": "^1.2",
- "asymptix/php-html-dom-parser": "1.5.*",
- "pimple/pimple": "~3.0",
- "phpunit/phpunit": "^5.1"
- Create a new virtual host and point the document root to sainsburys/src/public inside this project
- Open Terminal and change directory to sainsburys/src
- run the following commands
- rm -rf composer.lock
- rm -rf fuel/vendor/*
- php composer.phar install
You can now view the newly installed application at your selected
virtual host address eg http://www.example.com via any browser
- For Unit tests you must update the $hostname variable at the top of sainsburys/test/Base.php to your virtual hostname. eg http://www.example.com/
- Open terminal and change directory to the base folder /sainsburys and run the required command below:
phpunit --colors
src/fuel/vendor/bin/phpunit --colors
All of the custom project files are stored in these folders below:
- sainsburys/src/fuel/app/classes/controller/
- sainsburys/src/fuel/library/
- sainsburys/test/
- sainsburys/src/fuel/app/classes/controller/home.php
- sainsburys/src/fuel/app/classes/controller/base/rest.php
- sainsburys/src/fuel/app/classes/controller/test/curl.php
- sainsburys/src/fuel/library/Di.php
- sainsburys/src/fuel/library/Common/Curl.php
- sainsburys/src/fuel/library/Consume/Product.php
- sainsburys/src/fuel/library/Consume/ProductList.php
- sainsburys/test/Base.php
- sainsburys/test/Restful/Home.php
- sainsburys/test/Functional/Library/Common/Curl.php
- sainsburys/test/Functional/Library/Consume/Product.php
- sainsburys/test/Functional/Library/Consume/ProductList.php