Skip to content
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
1 change: 1 addition & 0 deletions .phpunit.result.cache
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
C:37:"PHPUnit\Runner\DefaultTestResultCache":44:{a:2:{s:7:"defects";a:0:{}s:5:"times";a:0:{}}}
11 changes: 5 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,12 @@ php:
- 5.4
- 5.5
- 5.6
script: phpunit --coverage-clover=coverage.clover
- 7.0
script:
- vendor/bin/phpunit
branches:
only:
- master
before_script:
- wget http://getcomposer.org/composer.phar
- php composer.phar install
after_script:
- wget https://scrutinizer-ci.com/ocular.phar
- php ocular.phar code-coverage:upload --format=php-clover coverage.clover
- composer self-update
- composer install --prefer-source --no-interaction --dev
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Crie um arquivo chamado `composer.json` com o seguinte conteúdo:
```json
{
"minimum-stability": "dev",
"prefer-stable" : true,
"prefer-stable": true,
"require": {
"boletosimples/boletosimples": "dev-master"
}
Expand All @@ -47,7 +47,7 @@ require_once 'vendor/autoload.php';

BoletoSimples::configure(array(
"environment" => 'production', // default: 'sandbox'
"access_token" => 'access-token'
"api_token" => 'api-token'
));

?>
Expand All @@ -59,9 +59,8 @@ Você também pode configurar as variáveis de ambiente a seguir e não será ne

```bash
ENV['BOLETOSIMPLES_ENV']
ENV['BOLETOSIMPLES_APP_ID']
ENV['BOLETOSIMPLES_APP_SECRET']
ENV['BOLETOSIMPLES_ACCESS_TOKEN']
ENV['BOLETOSIMPLES_USER_AGENT']
ENV['BOLETOSIMPLES_API_TOKEN']
```

## Exemplos
Expand Down
48 changes: 31 additions & 17 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,35 +2,49 @@
"name": "boletosimples/boletosimples",
"type": "library",
"description": "A PHP client library for easily accessing Boleto Simples API.",
"keywords": ["boleto","simples","boletosimples","ecommerce"],
"keywords": [
"boleto",
"simples",
"boletosimples",
"ecommerce"
],
"homepage": "http://api.boletosimples.com.br",
"license": "MIT",
"authors": [
{
"name": "Rafael Lima",
"email": "contato@rafael.adm.br",
"homepage": "http://rafael.adm.br/"
},
{
"name": "Kivanio Barbosa",
"email": "kivanio@gmail.com",
"homepage": "http://kivanio.com.br/"
}
],
"support": {
"email": "suporte@boletosimples.com.br",
"issues": "http://github.com/BoletoSimples/boletosimples-php/issues",
"sources": "https://github.com/BoletoSimples/boletosimples-php"
},
"require": {
"guzzlehttp/guzzle": "5.*",
"commerceguys/guzzle-oauth2-plugin": "2.*"
"support": {
"email": "suporte@boletosimples.com.br",
"issues": "http://github.com/BoletoSimples/boletosimples-php/issues",
"sources": "https://github.com/BoletoSimples/boletosimples-php"
},
"require-dev": {
"php-vcr/php-vcr": "^1.5",
"php-vcr/phpunit-testlistener-vcr": "^3.2",
"ptrofimov/xpmock": "dev-master",
"phpunit/phpunit": "^9"
},
"require-dev": {
"phpunit/phpunit": "4.5.*",
"php-vcr/php-vcr": "~1.2",
"php-vcr/phpunit-testlistener-vcr": "*",
"ptrofimov/xpmock": "dev-master"
},
"autoload": {
"psr-4": {
"BoletoSimples\\": ["src/BoletoSimples","src/BoletoSimples/Resources"]
"BoletoSimples\\": [
"src/BoletoSimples",
"src/BoletoSimples/Resources"
]
},
"files": ["src/BoletoSimples.php"]
"files": [
"src/BoletoSimples.php"
]
},
"require": {
"guzzlehttp/guzzle": "^7.3"
}
}
Loading