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 .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
/.env
/clover.xml
.php_cs.cache
.phpunit.result.cache
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ language: php
dist: trusty
sudo: false
php:
- '7.3'
- '7.4'
install:
- composer update
- composer dump-autoload
Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## 1.26.1
* Update dependency versions

## 1.26.0
* Feature - Add support for Guatemala and Paraguay Credit/Debit cards [#192](https://github.com/ebanx/benjamin/pull/192/)

Expand Down
17 changes: 17 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
FROM php:7.4-cli
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice. Long time I don't check this repo.
Just make sure in case a php version goes unsupported (as in: no more security updates) it's a good idea to also raise the version to something secure and also test it with the latest version.
If we test the higher and lower limits we can be sure all versions in between will work.
That way in case a merchant is using an older version of PHP that has known CVEs we notify them (or ask their rep in merchant services to do so) so that they upgrade, no matter what the team lead says about supporting old versions! In case a team lead insists make them sign a document stating they will pay for the damages in case the merchant gets hacked, thank you! XD


RUN apt-get update && apt-get -y --no-install-recommends install libzip-dev git zip unzip
RUN docker-php-ext-install zip

COPY . /src/benjamin
WORKDIR /src/benjamin

RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
RUN php -r "if (hash_file('sha384', 'composer-setup.php') === '906a84df04cea2aa72f40b5f787e49f22d4c2f19492ac310e8cba5b96ac8b64115ac402c8cd292b8a03482574915d1a8') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
RUN php composer-setup.php
RUN php -r "unlink('composer-setup.php');"
RUN mv composer.phar /usr/local/bin/composer
RUN chmod +x /usr/local/bin/composer
RUN composer install

CMD ["composer", "test-all"]
15 changes: 8 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,19 @@
"type": "library",
"license": "Apache-2.0",
"minimum-stability": "dev",
"version": "1.26.1",
"require": {
"php": ">=7.3",
"php": ">=7.4",
"ext-curl": "*",
"ext-json": "*"
},
"require-dev": {
"phpunit/phpunit": "^6.5",
"fzaninotto/faker": "^1.6@dev",
"justinrainbow/json-schema": "^5.0@dev",
"vlucas/phpdotenv": "^2.4@dev",
"sebastian/phpcpd": "^2.0.4",
"friendsofphp/php-cs-fixer": "^2.2.3"
"phpunit/phpunit": "^9.5.13",
"fzaninotto/faker": "^v1.9.2",
"justinrainbow/json-schema": "^5.2.11",
"vlucas/phpdotenv": "^v5.4.1",
"sebastian/phpcpd": "^6.0.3",
"friendsofphp/php-cs-fixer": "^v3.6.0"
},
"autoload": {
"psr-4": {
Expand Down
Loading