- Install Git
- Install VirtualBox: https://www.virtualbox.org/wiki/Downloads
- Install Vagrant: http://www.vagrantup.com/ (version 1.2.2+ or later)
- Open a terminal
- Clone the project:
git clone https://github.com/borivojevic/rescuetime-api-php.git
- Enter the project directory:
cd rescuetime-api-php
When you're ready to start working, boot the VM:
vagrant up
The first time you do this Vagrant will have to download and install VM image which can take ~15 minutes or more depending on internet connection speed.
When machine boots up ssh into it by typing:
vagrant ssh
# password: vagrant
On Windows: Use : ssh vagrant@127.0.0.1 -p 2222
The application code is found in vagrant home directory at /home/vagrant
The very first time you'll have to install application dependencies:
sudo composer self-update
composer install
Basic Workflow: Run vagrant machine >> Update repository >> Edit >> Send GitHub pull request
- Update repository
cd /home/vagrant
git checkout master
git pull
- Make changes to RescueTime API
cd /home/vagrant
- (Make changes)
git commit ...
- (Make sure all tests pass. See testing)
git push
- Submit pull request to master repository
- Using pull requests
- Creating a pull request
To run unit test suite type:
phpunit
To run coding standard tests type:
phpcs --standard=PSR2 src/
phpcs --standard=PSR2 tests/