An open API service indexing awesome lists of open source software.

https://github.com/r3code/pochtaru-parcel-cost

The php wrapper for the new pochta.ru/parcel delivery cost calculator.
https://github.com/r3code/pochtaru-parcel-cost

api delivery php pochtaru service

Last synced: 7 months ago
JSON representation

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

Awesome Lists containing this project

README

          

# 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](https://travis-ci.org/r3code/pochtaru-parcel-cost.svg?branch=master)](https://travis-ci.org/r3code/pochtaru-parcel-cost)

## Setup Cloud9 Environment

### Install PHPUnit 4.8 for Cloud9 php5.5.9 run
```
#create %user%/bin
mkdir ~/bin/
echo "bin" >> .gitignore

# Install old stable HPUnit 4.8 for correct work with Cloud9 php5.5.9
wget https://phar.phpunit.de/phpunit-old.phar -P ~/bin/

#make executable
chmod +x ~/bin/phpunit.phar

#add symlink
ln -s ~/bin/phpunit.phar ~/bin/phpunit

#check phpunit installed
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:
```
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/