Skip to content

Commit

Permalink
Merge pull request #9 from arif98741/php_version
Browse files Browse the repository at this point in the history
PHP Version Pipeline Check
  • Loading branch information
arif98741 authored Jan 29, 2025
2 parents aadcd88 + ca84e9e commit fce7670
Show file tree
Hide file tree
Showing 5 changed files with 55 additions and 4 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/php-version-installation-pipeline.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Check Composer Compatibility for PHP 8.0, 8.1, 8.2, 8.3, 8.4

on:
push:
branches:
- master
- dev
pull_request:
branches:
- master
- dev
jobs:
check-php-versions:
runs-on: ubuntu-latest

strategy:
matrix:
php-version: [8.0, 8.1, 8.2, 8.3, 8.4] # Added PHP 8.0 to the matrix

steps:
# Step 1: Check out the code
- name: Checkout code
uses: actions/checkout@v2

# Step 2: Set up PHP version
- name: Set up PHP ${{ matrix.php-version }}
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
extensions: mbstring, intl, bcmath, curl, json # Add any required PHP extensions

# Step 3: Install Composer
- name: Install Composer
run: curl -sS https://getcomposer.org/installer | php

# Step 4: Install dependencies using Composer
- name: Install dependencies with Composer
run: php composer.phar install --no-progress --prefer-dist

# Step 5: Run tests or any checks (optional)
- name: Run PHPUnit tests (if applicable)
run: vendor/bin/phpunit --configuration phpunit.xml.dist || true # Adjust as needed
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# CHANGELOG

## [v1.9.2.3](https://github.com/arif98741/nagadApi/releases/tag/v1.9.2.3) - 2023-06-07 17:35:22

**Full Changelog**: https://github.com/arif98741/nagadApi/compare/v1.9.2.2...v1.9.2.3

## [v1.9.2.2](https://github.com/arif98741/nagadApi/releases/tag/v1.9.2.2) - 2023-04-07 18:06:41

*No description*

## [v1.9.2.1](https://github.com/arif98741/nagadApi/releases/tag/v1.9.2.1) - 2023-04-07 18:04:36

## [v1.9.2.0](https://github.com/arif98741/nagadApi/releases/tag/v1.9.2.0) - 2023-01-08 07:35:21

**Full Changelog**: https://github.com/arif98741/nagadApi/compare/v1.9.1.9...v1.9.2.0
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"email": "arif98741@gmail.com"
},
"require": {
"php": "^7.3|^8.0|^8.1|^8.2",
"php": "^7.4|^8.0",
"ext-curl": "*",
"ext-json": "*",
"nesbot/carbon": "^2.59",
Expand Down
1 change: 0 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ require 'vendor/autoload.php';
$config = [
'NAGAD_APP_ENV' => 'development', // development|production
'NAGAD_APP_LOG' => '1',
'NAGAD_APP_ACCOUNT' => '016XXXXXXXX', //demo
'NAGAD_APP_MERCHANTID' => '6800000025', //demo
'NAGAD_APP_MERCHANT_PRIVATE_KEY' => 'MIIEvFAAxN1qfKiRiCL720FtQfIwPDp9ZqbG2OQbdyZUB8I08irKJ0x/psM4SjXasglHBK5G1DX7BmwcB/PRbC0cHYy3pXDmLI8pZl1NehLzbav0Y4fP4MdnpQnfzZJdpaGVE0oI15l',
'NAGAD_APP_MERCHANT_PG_PUBLIC_KEY' => 'MIIBIjANBc54jjMJoP2toR9fGmQV7y9fzj',
Expand Down
4 changes: 2 additions & 2 deletions src/lib/Key.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public function __construct($config)
}

$this->appEnv = $envData['NAGAD_APP_ENV'];
$this->appAccount = $envData['NAGAD_APP_ACCOUNT'];
//$this->appAccount = $envData['NAGAD_APP_ACCOUNT'];
$this->appMerchantID = $envData['NAGAD_APP_MERCHANTID'];
$this->merchantPrivateKey = $envData['NAGAD_APP_MERCHANT_PRIVATE_KEY'];
$this->pgPublicKey = $envData['NAGAD_APP_MERCHANT_PG_PUBLIC_KEY'];
Expand Down Expand Up @@ -221,4 +221,4 @@ public function setTimeZone($timeZone)
$this->timeZone = $timeZone;
}

}
}

0 comments on commit fce7670

Please sign in to comment.