项目作者: r3code

项目描述 :
The php wrapper for the new pochta.ru/parcel delivery cost calculator.
高级语言: PHP
项目地址: git://github.com/r3code/pochtaru-parcel-cost.git
创建时间: 2016-02-21T17:20:33Z
项目社区:https://github.com/r3code/pochtaru-parcel-cost

开源协议:Apache License 2.0

下载


Pochta.ru parcel delivery calculator

The php wrapper for the new pochta.ru/parcel delivery cost calculator.

To run tests

Call sh testall.sh it will start PHPUnit and run tests.
Build Status

Setup Cloud9 Environment

Install PHPUnit 4.8 for Cloud9 php5.5.9 run

  1. #create %user%/bin
  2. mkdir ~/bin/
  3. echo "bin" >> .gitignore
  4. # Install old stable HPUnit 4.8 for correct work with Cloud9 php5.5.9
  5. wget https://phar.phpunit.de/phpunit-old.phar -P ~/bin/
  6. #make executable
  7. chmod +x ~/bin/phpunit.phar
  8. #add symlink
  9. ln -s ~/bin/phpunit.phar ~/bin/phpunit
  10. #check phpunit installed
  11. phpunit --version

Inspired by https://gist.github.com/mikedfunk/5146798

Set Apache output encoding

Enable “Show Hidden Files” and create .htaccess file in the root foolder.
Add this line to it:

  1. AddDefaultCharset utf-8

Push to Github

To push code to Github do http://www.jimcode.org/2012/12/setting-git-github-cloud9-ide-pushing-live-server/