Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

merge develop #7

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .coveralls.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
coverage_clover: clover.xml
json_path: coveralls-upload.json
src_dir: src
40 changes: 27 additions & 13 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,39 @@
sudo: false

language: php

php:
- 5.3
- 5.4
- 5.5
- 5.6
- hhvm
cache:
directories:
- $HOME/.composer/cache
- vendor

matrix:
allow_failures:
fast_finish: true
include:
- php: 5.5
env:
- EXECUTE_CS_CHECK=true
- php: 5.6
env:
- EXECUTE_TEST_COVERALLS=true
- php: 7
- php: hhvm

before_script:
before_install:
- if [[ $EXECUTE_TEST_COVERALLS != 'true' ]]; then phpenv config-rm xdebug.ini || return 0 ; fi
- composer self-update
- composer install --dev --prefer-source
- if [[ $EXECUTE_TEST_COVERALLS == 'true' ]]; then composer require --no-update satooshi/php-coveralls:dev-master ; fi

install:
- travis_retry composer install --no-interaction --ignore-platform-reqs --prefer-source
- composer info -i

script:
- ./vendor/bin/phpunit
- ./vendor/bin/phpcs --standard=PSR2 ./src/ ./test
- if [[ $EXECUTE_TEST_COVERALLS == 'true' ]]; then ./vendor/bin/phpunit ; fi
- if [[ $EXECUTE_TEST_COVERALLS != 'true' ]]; then ./vendor/bin/phpunit --no-coverage ; fi
- if [[ $EXECUTE_CS_CHECK == 'true' ]]; then ./vendor/bin/phpcs --standard=PSR2 ./src/ ./test ; fi

after_script:
- php vendor/bin/coveralls -v
- if [[ $EXECUTE_TEST_COVERALLS == 'true' ]]; then ./vendor/bin/coveralls ; fi
- wget https://scrutinizer-ci.com/ocular.phar
- php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml
- if [[ $EXECUTE_TEST_COVERALLS == 'true' ]]; then php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml ; fi
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# BlockchainWalletApi CHANGELOG

## Version 2.0.0 TBA

* Uses module config cache now, removed module feature providers

## Version 1.0.0 - (2014-07-01)

* Satoshi view helper which converts satoshi to other unit e.g. bitcoin
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/sandrokeil/BlockchainWalletApi/badges/quality-score.png?s=e0089b63bdd99801480a5c7aedbda372767990ab)](https://scrutinizer-ci.com/g/sandrokeil/BlockchainWalletApi/)
[![Coverage Status](https://coveralls.io/repos/sandrokeil/BlockchainWalletApi/badge.png)](https://coveralls.io/r/sandrokeil/BlockchainWalletApi)
[![HHVM Status](http://hhvm.h4cc.de/badge/sandrokeil/blockchain-wallet-api.svg)](http://hhvm.h4cc.de/package/sandrokeil/blockchain-wallet-api)
[![PHP 7 ready](http://php7ready.timesplinter.ch/sandrokeil/BlockchainWalletApi/badge.svg)](https://travis-ci.org/sandrokeil/BlockchainWalletApi)
[![SensioLabsInsight](https://insight.sensiolabs.com/projects/eb0ea220-d358-431e-8862-1e85c84ad06a/mini.png)](https://insight.sensiolabs.com/projects/eb0ea220-d358-431e-8862-1e85c84ad06a)
[![Latest Stable Version](https://poser.pugx.org/sandrokeil/blockchain-wallet-api/v/stable.png)](https://packagist.org/packages/sandrokeil/blockchain-wallet-api)
[![Dependency Status](https://www.versioneye.com/user/projects/53615c9cfe0d07b45c000082/badge.svg)](https://www.versioneye.com/user/projects/53615c9cfe0d07b45c000082)
Expand All @@ -35,7 +36,7 @@ Put the following into your composer.json

{
"require": {
"sandrokeil/blockchain-wallet-api": "~1.0"
"sandrokeil/blockchain-wallet-api": "~2.0"
}
}

Expand Down
124 changes: 78 additions & 46 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,49 +1,81 @@
{
"name": "sandrokeil/blockchain-wallet-api",
"description": "Zend Framework 2 (ZF2) client library for blockchain wallet api. Configure request, call the service and access the response data via objects.",
"homepage": "https://github.com/sandrokeil/BlockchainWalletApi",
"license": "BSD-3-Clause",
"type": "library",
"keywords": [
"blockchain",
"bitcoin",
"zf2",
"blockchain wallet api",
"wallet",
"api",
"webservice",
"client",
"payment"
],
"authors": [
{"name": "Sandro Keil", "homepage": "https://github.com/sandrokeil"}
],
"autoload": {
"psr-4": {
"Sake\\BlockchainWalletApi\\": "src/",
"SakeTest\\BlockchainWalletApi\\": "test/"
}
},
"require": {
"php": "~5.3",
"zendframework/zend-servicemanager": "~2.2",
"zendframework/zend-stdlib": "~2.2",
"zendframework/zend-http": "~2.2",
"zendframework/zend-filter": "~2.2",
"sandrokeil/easy-config": "~1.0"
},
"require-dev": {
"zendframework/zend-test": "~2.2",
"zendframework/zend-config": "~2.2",
"zendframework/zend-form": "~2.2",
"zendframework/zend-serializer": "~2.2",
"zendframework/zend-log": "~2.2",
"zendframework/zend-modulemanager": "~2.2",
"zendframework/zend-view": "~2.2",
"sandrokeil/citools": "~1.0"
},
"suggest": {
"zendframework/zend-view": "Zend\\View to use satoshi view helper",
"zendframework/zend-modulemanager": "Zend\\ModuleManager to use default module configuration e.g. services"
"name": "sandrokeil/blockchain-wallet-api",
"description": "Zend Framework 2 (ZF2) client library for blockchain wallet api. Configure request, call the service and access the response data via objects.",
"homepage": "https://github.com/sandrokeil/BlockchainWalletApi",
"license": "BSD-3-Clause",
"type": "library",
"keywords": [
"blockchain",
"bitcoin",
"zf2",
"blockchain wallet api",
"wallet",
"api",
"webservice",
"client",
"payment"
],
"authors": [
{
"name": "Sandro Keil",
"homepage": "https://sandro-keil.de"
}
],
"support": {
"issues": "https://github.com/sandrokeil/BlockchainWalletApi/issues",
"source": "https://github.com/sandrokeil/BlockchainWalletApi",
"docs": "https://github.com/sandrokeil/BlockchainWalletApi"
},
"repositories": [
{
"type": "composer",
"url": "https://packages.zendframework.com/"
}
],
"autoload": {
"psr-4": {
"Sake\\BlockchainWalletApi\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"SakeTest\\BlockchainWalletApi\\": "test/"
}
},
"require": {
"php": "~5.5",
"sandrokeil/easy-config": "~1.3",
"zendframework/zend-http": "~2.5",
"zendframework/zend-inputfilter": "~2.5",
"zendframework/zend-servicemanager": "~2.6",
"zendframework/zend-stdlib": "~2.6"
},
"require-dev": {
"phpunit/phpunit": "~4.8",
"phpunit/php-invoker": "~1.1",
"squizlabs/php_codesniffer": "~2.3",
"sebastian/peek-and-poke": "1.0.x-dev",
"zendframework/zend-view": "~2.5"
},
"suggest": {
"zendframework/zend-view": "Zend\\View to use satoshi view helper",
"zendframework/zend-modulemanager": "Zend\\ModuleManager to use default module configuration e.g. services"
},
"minimum-stability": "dev",
"prefer-stable": true,
"extra": {
"branch-alias": {
"dev-master": "2.0-dev",
"dev-develop": "2.1-dev"
}
},
"archive": {
"exclude": [
"test",
"phpunit.xml*",
".travis.yml",
".scrutinizer.yml",
".coveralls.yml"
]
}
}
13 changes: 13 additions & 0 deletions config/module.config.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?php
/**
* Sake
*
* @link http://github.com/sandrokeil/BlockchainWalletApi for the canonical source repository
* @copyright Copyright (c) 2014 - 2015 Sandro Keil
* @license http://github.com/sandrokeil/BlockchainWalletApi/blob/master/LICENSE.txt New BSD License
*/

return array(
'service_manager' => require __DIR__ . '/service_manager.config.php',
'view_helper' => require __DIR__ . '/view_helper.config.php',
);
2 changes: 1 addition & 1 deletion config/service_manager.config.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Sake
*
* @link http://github.com/sandrokeil/BlockchainWalletApi for the canonical source repository
* @copyright Copyright (c) 2014 Sandro Keil
* @copyright Copyright (c) 2014 - 2015 Sandro Keil
* @license http://github.com/sandrokeil/BlockchainWalletApi/blob/master/LICENSE.txt New BSD License
*/

Expand Down
2 changes: 1 addition & 1 deletion config/view_helper.config.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Sake
*
* @link http://github.com/sandrokeil/BlockchainWalletApi for the canonical source repository
* @copyright Copyright (c) 2014 Sandro Keil
* @copyright Copyright (c) 2014 - 2015 Sandro Keil
* @license http://github.com/sandrokeil/BlockchainWalletApi/blob/master/LICENSE.txt New BSD License
*/

Expand Down
1 change: 0 additions & 1 deletion phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
<!-- disable strict to debug tests -->
<phpunit bootstrap="./test/Bootstrap.php"
colors="true"
strict="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
Expand Down
2 changes: 1 addition & 1 deletion src/Exception/ExceptionInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Sake
*
* @link http://github.com/sandrokeil/BlockchainWalletApi for the canonical source repository
* @copyright Copyright (c) 2014 Sandro Keil
* @copyright Copyright (c) 2014 - 2015 Sandro Keil
* @license http://github.com/sandrokeil/BlockchainWalletApi/blob/master/LICENSE.txt New BSD License
*/

Expand Down
2 changes: 1 addition & 1 deletion src/Exception/RuntimeException.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Sake
*
* @link http://github.com/sandrokeil/BlockchainWalletApi for the canonical source repository
* @copyright Copyright (c) 2014 Sandro Keil
* @copyright Copyright (c) 2014 - 2015 Sandro Keil
* @license http://github.com/sandrokeil/BlockchainWalletApi/blob/master/LICENSE.txt New BSD License
*/

Expand Down
2 changes: 1 addition & 1 deletion src/Hydrator/AddressListStrategy.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Sake
*
* @link http://github.com/sandrokeil/BlockchainWalletApi for the canonical source repository
* @copyright Copyright (c) 2014 Sandro Keil
* @copyright Copyright (c) 2014 - 2015 Sandro Keil
* @license http://github.com/sandrokeil/BlockchainWalletApi/blob/master/LICENSE.txt New BSD License
*/

Expand Down
2 changes: 1 addition & 1 deletion src/Hydrator/AddressStrategy.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Sake
*
* @link http://github.com/sandrokeil/BlockchainWalletApi for the canonical source repository
* @copyright Copyright (c) 2014 Sandro Keil
* @copyright Copyright (c) 2014 - 2015 Sandro Keil
* @license http://github.com/sandrokeil/BlockchainWalletApi/blob/master/LICENSE.txt New BSD License
*/

Expand Down
25 changes: 5 additions & 20 deletions src/Module.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,39 +3,24 @@
* Sake
*
* @link http://github.com/sandrokeil/BlockchainWalletApi for the canonical source repository
* @copyright Copyright (c) 2014 Sandro Keil
* @copyright Copyright (c) 2014 - 2015 Sandro Keil
* @license http://github.com/sandrokeil/BlockchainWalletApi/blob/master/LICENSE.txt New BSD License
*/

namespace Sake\BlockchainWalletApi;

use Zend\ModuleManager\Feature\ServiceProviderInterface;
use Zend\ModuleManager\Feature\ViewHelperProviderInterface;

/**
* This class initializes the BlockchainWalletApi module.
*/
class Module implements ServiceProviderInterface, ViewHelperProviderInterface
class Module
{
/**
* Return service config
*
* @see ServiceProviderInterface::getServiceConfig()
* @return array
*/
public function getServiceConfig()
{
return require dirname(__DIR__) . '/config/service_manager.config.php';
}

/**
* Expected to return \Zend\ServiceManager\Config object or array to
* seed such an object.
* Return module config e.g. service manager, view helper
*
* @return array
*/
public function getViewHelperConfig()
public function getConfig()
{
return require dirname(__DIR__) . '/config/view_helper.config.php';
return require dirname(__DIR__) . '/config/module.config.php';
}
}
2 changes: 1 addition & 1 deletion src/Request/AddressArchive.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Sake
*
* @link http://github.com/sandrokeil/BlockchainWalletApi for the canonical source repository
* @copyright Copyright (c) 2014 Sandro Keil
* @copyright Copyright (c) 2014 - 2015 Sandro Keil
* @license http://github.com/sandrokeil/BlockchainWalletApi/blob/master/LICENSE.txt New BSD License
*/

Expand Down
2 changes: 1 addition & 1 deletion src/Request/AddressBalance.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Sake
*
* @link http://github.com/sandrokeil/BlockchainWalletApi for the canonical source repository
* @copyright Copyright (c) 2014 Sandro Keil
* @copyright Copyright (c) 2014 - 2015 Sandro Keil
* @license http://github.com/sandrokeil/BlockchainWalletApi/blob/master/LICENSE.txt New BSD License
*/

Expand Down
2 changes: 1 addition & 1 deletion src/Request/AddressUnarchive.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Sake
*
* @link http://github.com/sandrokeil/BlockchainWalletApi for the canonical source repository
* @copyright Copyright (c) 2014 Sandro Keil
* @copyright Copyright (c) 2014 - 2015 Sandro Keil
* @license http://github.com/sandrokeil/BlockchainWalletApi/blob/master/LICENSE.txt New BSD License
*/

Expand Down
2 changes: 1 addition & 1 deletion src/Request/AutoConsolidateAddresses.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Sake
*
* @link http://github.com/sandrokeil/BlockchainWalletApi for the canonical source repository
* @copyright Copyright (c) 2014 Sandro Keil
* @copyright Copyright (c) 2014 - 2015 Sandro Keil
* @license http://github.com/sandrokeil/BlockchainWalletApi/blob/master/LICENSE.txt New BSD License
*/

Expand Down
2 changes: 1 addition & 1 deletion src/Request/ListAddresses.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Sake
*
* @link http://github.com/sandrokeil/BlockchainWalletApi for the canonical source repository
* @copyright Copyright (c) 2014 Sandro Keil
* @copyright Copyright (c) 2014 - 2015 Sandro Keil
* @license http://github.com/sandrokeil/BlockchainWalletApi/blob/master/LICENSE.txt New BSD License
*/

Expand Down
2 changes: 1 addition & 1 deletion src/Request/NewAddress.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Sake
*
* @link http://github.com/sandrokeil/BlockchainWalletApi for the canonical source repository
* @copyright Copyright (c) 2014 Sandro Keil
* @copyright Copyright (c) 2014 - 2015 Sandro Keil
* @license http://github.com/sandrokeil/BlockchainWalletApi/blob/master/LICENSE.txt New BSD License
*/

Expand Down
2 changes: 1 addition & 1 deletion src/Request/Recipient.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Sake
*
* @link http://github.com/sandrokeil/BlockchainWalletApi for the canonical source repository
* @copyright Copyright (c) 2014 Sandro Keil
* @copyright Copyright (c) 2014 - 2015 Sandro Keil
* @license http://github.com/sandrokeil/BlockchainWalletApi/blob/master/LICENSE.txt New BSD License
*/

Expand Down
Loading