Skip to content

Commit

Permalink
Merge branch 'main' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
adeildo-jr authored Sep 27, 2023
2 parents 82687d8 + 92cddf1 commit 2c6b98d
Show file tree
Hide file tree
Showing 123 changed files with 1,982 additions and 10,057 deletions.
4 changes: 4 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
CELCOIN_LOGIN_URL='https://sandbox.openfinance.celcoin.dev/v5/token' # Your Login Auth here
CELCOIN_API_URL='https://sandbox.openfinance.celcoin.dev' # Your API URL here
CELCOIN_CLIENT_ID='' # Your Client ID here
CELCOIN_CLIENT_SECRET='' # Your Client Secret here
11 changes: 4 additions & 7 deletions .github/workflows/laravel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@ name: Laravel

on:
push:
branches: [main]
branches: [ main ]
pull_request:
branches: [main]
branches: [ main ]

jobs:
laravel-tests:
runs-on: ubuntu-latest

strategy:
matrix:
php: [8.1, 8.2]
php: [ 8.1, 8.2 ]

steps:
- name: Checkout
Expand All @@ -24,11 +24,8 @@ jobs:
tools: composer:v2
php-version: ${{ matrix.php }}

- name: Copy .env
run: php -r "file_exists('.env') || copy('.env.example', '.env');"

- name: Install Dependencies
run: composer install --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist

- name: Execute tests (Unit and Feature tests) via Pest
- name: Execute tests (Unit and Feature tests)
run: vendor/bin/phpunit
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ npm-debug.log
yarn-error.log
.gitkeep
.idea
composer.lock
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Changelog

All notable changes to `celcoin-laravel` will be documented in this file

## 0.0.1-beta - 2023-08-24

- Initial beta release
21 changes: 21 additions & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) We Dev Tecnologia

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
23 changes: 11 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
# Celcoin Laravel API Wrapper

This package is an **UNOFFICIAL** API Wrapper for [Celcoin/Acesso API](https://developers.celcoin.com.br/).
This package is an **UNOFFICIAL** API Wrapper for [Celcoin API](https://developers.celcoin.com.br/).

## Requirements
PHP >= 8.0
Laravel >= 8.x

- PHP >= 8.1
- Laravel >= 8.x

## Installation

Expand All @@ -15,28 +16,26 @@ composer require wedevbr/celcoin-laravel
```

After install, just publish your config files:

```bash
php artisan vendor:publish --provider="WeDevBr\Celcoin\CelcoinServiceProvider"
```

## Usage
First you need to set up your credentials. Define yours `CELCOIN_CLIENT_SECRET`, `CELCOIN_CLIENT_ID`, `CELCOIN_LOGIN_URL` and `CELCOIN_API_URL` at .env file.

### Changelog

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

## Contributing

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.
First you need to set up your credentials. Define
yours `CELCOIN_CLIENT_SECRET`, `CELCOIN_CLIENT_ID`, `CELCOIN_LOGIN_URL` and `CELCOIN_API_URL` at .env file.

### Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.
If you discover any security related issues, please email [email protected] instead of using the issue
tracker.

## Credits

- [We Dev Tecnologia LTDA](https://github.com/wedevbr)
- [Aron Peyroteo Cardoso](https://github.com/aronpc)
- [Vagner Paes](https://github.com/VagnerPaes)

## License

Expand Down
69 changes: 34 additions & 35 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,38 +1,37 @@
{
"name": "wedevbr/celcoin-laravel",
"description": "Celcoin API wrapper",
"type": "library",
"license": "MIT",
"autoload": {
"psr-4": {
"WeDevBr\\Celcoin\\": "src/"
"name": "wedevbr/celcoin-laravel",
"description": "Celcoin API wrapper",
"type": "library",
"license": "MIT",
"autoload": {
"psr-4": {
"WeDevBr\\Celcoin\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"WeDevBr\\Celcoin\\Tests\\": "tests/"
}
},
"require": {
"php": "^8.1",
"laravel/framework": "^9.0|^10.0",
"guzzlehttp/guzzle": "^7.7"
},
"require-dev": {
"orchestra/testbench": "^7.24.1",
"phpunit/phpunit": "^9.6.9",
"laradumps/laradumps": "^2.0",
"phpstan/phpstan": "^1.10"
},
"extra": {
"laravel": {
"providers": [
"WeDevBr\\Celcoin\\CelcoinServiceProvider"
],
"aliases": {
"Celcoin": "WeDevBr\\Celcoin\\CelcoinFacade"
}
}
}
},
"autoload-dev": {
"psr-4": {
"WeDevBr\\Celcoin\\": "src/",
"Tests\\": "tests/"
}
},
"require": {
"php": "^8.1",
"laravel/framework": "^9.52.9|^10.0",
"guzzlehttp/guzzle": "^7.7"
},
"require-dev": {
"orchestra/testbench": "^7.24.1",
"phpunit/phpunit": "^9.6.9",
"laradumps/laradumps": "^2.0",
"phpstan/phpstan": "^1.10"
},
"extra": {
"laravel": {
"providers": [
"WeDevBr\\Celcoin\\CelcoinServiceProvider"
],
"aliases": {
"Celcoin": "WeDevBr\\Celcoin\\CelcoinFacade"
}
}
}
}
Loading

0 comments on commit 2c6b98d

Please sign in to comment.