Skip to content

Commit

Permalink
* #6 removed module provider interfaces
Browse files Browse the repository at this point in the history
* updated dependencies and php version to 5.5
* removed unnecessary dev dependencies
* updated copyright
* optimized travis config and added php 7 check
  • Loading branch information
sandrokeil committed Aug 25, 2015
1 parent 373ea81 commit 6565f38
Show file tree
Hide file tree
Showing 101 changed files with 237 additions and 221 deletions.
4 changes: 4 additions & 0 deletions .coveralls.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# for php-coveralls
service_name: travis-ci
src_dir: lib
coverage_clover: build/logs/clover*.xml
29 changes: 23 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,40 @@
sudo: false

language: php

cache:
directories:
- $HOME/.composer/cache
- vendor

php:
- 5.3
- 5.4
- 5.5
env:
- EXECUTE_CS_CHECK=true
- 5.6
env:
- EXECUTE_COVERAGE=true
- 7.0
- hhvm

matrix:
allow_failures:
- php: hhvm
- php: 7.0

before_script:
before_install:
- if [[ $EXECUTE_COVERAGE != 'true' ]]; then phpenv config-rm xdebug.ini || return 0 ; fi
- composer self-update
- composer install --dev --prefer-source
- if [[ $EXECUTE_COVERAGE == '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_COVERAGE == 'true' ]]; then ./vendor/bin/phpunit ; fi
- if [[ $EXECUTE_COVERAGE != '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
Expand Down
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
123 changes: 77 additions & 46 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,49 +1,80 @@
{
"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.0",
"zendframework/zend-http": "~2.4",
"zendframework/zend-inputfilter": "~2.5",
"zendframework/zend-servicemanager": "~2.6",
"zendframework/zend-stdlib": "~2.5"
},
"require-dev": {
"phpunit/phpunit": "~4.8",
"sandrokeil/citools": "~2.0",
"sebastian/peek-and-poke": "1.0.x-dev",
"zendframework/zend-view": "~2.4"
},
"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
2 changes: 1 addition & 1 deletion src/Request/RequestInterface.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/Send.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/SendMany.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

0 comments on commit 6565f38

Please sign in to comment.