Skip to content

Commit

Permalink
Iniciando projeto
Browse files Browse the repository at this point in the history
  • Loading branch information
mrprompt committed Nov 8, 2018
0 parents commit 492f4cd
Show file tree
Hide file tree
Showing 77 changed files with 11,384 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/vendor
/samples/*/*.*
23 changes: 23 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
language: php

php:
- 5.6
- 7.0
- 7.1
- 7.2
- nightly

matrix:
allow_failures:
- php: nightly

before_script:
- composer selfupdate
- composer install --dev --prefer-dist
- composer require --dev codeclimate/php-test-reporter

script:
- ./vendor/bin/phpunit --coverage-clover tmp/clover.xml

after_success:
- ./vendor/bin/test-reporter --coverage-report tmp/clover.xml
37 changes: 37 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
Celesc
======

[![Build Status](https://travis-ci.org/mrprompt/Celesc.svg?branch=master)](https://travis-ci.org/mrprompt/Celesc)
[![Code Climate](https://codeclimate.com/github/mrprompt/Celesc/badges/gpa.svg)](https://codeclimate.com/github/mrprompt/Celesc)
[![Test Coverage](https://codeclimate.com/github/mrprompt/Celesc/badges/coverage.svg)](https://codeclimate.com/github/mrprompt/Celesc/coverage)
[![Issue Count](https://codeclimate.com/github/mrprompt/Celesc/badges/issue_count.svg)](https://codeclimate.com/github/mrprompt/Celesc)

Biblioteca de integração com a Celesc por meio de troca de arquivos.

## Dependências

- php 5.6+

## Instalação

```
composer.phar require mrprompt/celesc
```

## Exemplos
Os exemplos estão na pasta *samples*.

Descrição dos exemplos

- samples/cart.php - Array com os parâmetros necessários para cada tipo de transação
- samples/remessa.php - Geração de arquivo de remessa
- samples/recebido.php - Leitura do arquivo de retorno

## Contribuindo

### Instalação
Após baixar o [Composer](http://www.getcomposer.org), basta rodar o *install*

```
composer.phar install --prefer-dist
```
49 changes: 49 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{
"name" : "mrprompt/celesc",
"description" : "Celesc integration",
"license" : "MIT",
"type": "library",
"version": "1.0.0",
"minimum-stability": "stable",
"autoload" : {
"psr-4" : {
"MrPrompt\\Celesc\\": "src/"
}
},
"autoload-dev" : {
"psr-4" : {
"MrPrompt\\Celesc\\Tests\\": "tests/"
}
},
"authors" : [
{
"name" : "Thiago Paes",
"email" : "[email protected]",
"role" : "Developer"
},
{
"name" : "Johnathan Cardoso",
"email" : "[email protected]",
"role" : "Collaborator"
},
{
"name" : "Walter Discher Cechinel",
"email" : "[email protected]",
"role" : "Collaborator"
},
{
"name" : "Luís Otávio Cobucci Oblonczyk",
"email" : "[email protected]",
"role" : "Collaborator"
}
],
"require": {
"php": "^7.1",
"respect/validation": "^1.1.12"
},
"require-dev": {
"phpunit/phpunit": "^6.1.3",
"mockery/mockery": "dev-master@dev",
"mikey179/vfsStream": "^1.6"
}
}
Loading

0 comments on commit 492f4cd

Please sign in to comment.