Skip to content

Commit

Permalink
Merge pull request #54 from nguyenanhung/v4.x
Browse files Browse the repository at this point in the history
Release version 4.0.3
  • Loading branch information
nguyenanhung authored Mar 31, 2024
2 parents 0bf3703 + 6846552 commit e0bb01d
Show file tree
Hide file tree
Showing 10 changed files with 672 additions and 753 deletions.
62 changes: 31 additions & 31 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,34 +2,34 @@
name: Testing PHP Package Debug & Logging by HungNG
on: [ push, pull_request ]
jobs:
build:
strategy:
matrix:
operating-system: [ 'ubuntu-latest', 'ubuntu-20.04', 'ubuntu-22.04', 'macos-latest', 'macos-11', 'macos-12' ]
php-versions: [ '7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2' ]
runs-on: ${{ matrix.operating-system }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup PHP, with composer and extensions
uses: shivammathur/setup-php@v2 # From https://github.com/shivammathur/setup-php
with:
php-version: ${{ matrix.php-versions }}
extensions: mbstring, intl, curl, dom, pdo, json, session, sockets, openssl
- name: Get composer cache directory
id: composer-cache
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
- name: Cache dependencies
uses: actions/cache@v3
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ runner.os }}-composer-
- name: Install dependencies
run: composer install --no-dev --no-progress --prefer-dist --optimize-autoloader
- name: Test class Logger
run: php ./test/test_logger.php
- name: Test class Utils
run: php ./test/test_utils.php
- name: Test class Benchmark
run: php ./test/test_benchmark.php
build:
strategy:
matrix:
operating-system: [ 'ubuntu-latest', 'macos-latest' ]
php-versions: [ '8.1', '8.2', '8.3' ]
runs-on: ${{ matrix.operating-system }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup PHP, with composer and extensions
uses: shivammathur/setup-php@v2 # From https://github.com/shivammathur/setup-php
with:
php-version: ${{ matrix.php-versions }}
extensions: mbstring, intl, curl, dom, pdo, json, session, sockets, openssl
- name: Get composer cache directory
id: composer-cache
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
- name: Cache dependencies
uses: actions/cache@v3
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ runner.os }}-composer-
- name: Install dependencies
run: composer install --no-dev --no-progress --prefer-dist --optimize-autoloader
- name: Test class Logger
run: php ./test/test_logger.php
- name: Test class Utils
run: php ./test/test_utils.php
- name: Test class Benchmark
run: php ./test/test_benchmark.php
87 changes: 42 additions & 45 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,47 +1,44 @@
{
"name": "nguyenanhung/my-debug",
"type": "library",
"description": "My Debug, Logger Library",
"keywords": [
"debug",
"logger",
"log"
],
"homepage": "https://github.com/nguyenanhung/my-debug",
"license": "GPL-3.0",
"authors": [
{
"name": "Nguyen An Hung",
"email": "[email protected]",
"homepage": "https://nguyenanhung.com",
"role": "Developer"
}
],
"require": {
"php": "^7.0 || ^8.0",
"ext-json": "*",
"ext-mbstring": "*",
"nguyenanhung/benchmark": "^2.0 || ^1.0",
"nguyenanhung/filesystem-helper": "^2.0 || ^1.0",
"nguyenanhung/slug-helper": "^2.0 || ^1.0",
"monolog/monolog": "^2.0 || ^1.27"
},
"require-dev": {
"kint-php/kint": "^5.0 || ^4.0 || ^3.0 || ^2.0 || ^1.0"
},
"suggest": {
"ext-json": "Needed to support JSON",
"ext-iconv": "Needed to support ICONV",
"ext-mbstring": "Needed to support MbString",
"ext-openssl": "Needed to support OpenSSL",
"sentry/sdk": "Need support for Logging with Sentry"
},
"autoload": {
"psr-4": {
"nguyenanhung\\MyDebug\\": "src/"
},
"files": [
"helpers/sentry.php"
]
}
"name": "nguyenanhung/my-debug",
"type": "library",
"description": "My Debug, Logger Library",
"keywords": [
"debug",
"logger",
"log"
],
"homepage": "https://github.com/nguyenanhung/my-debug",
"license": "GPL-3.0",
"authors": [
{
"name": "Nguyen An Hung",
"email": "[email protected]",
"homepage": "https://nguyenanhung.com",
"role": "Developer"
}
],
"require": {
"php": ">=8.1",
"ext-json": "*",
"ext-mbstring": "*",
"nguyenanhung/benchmark": "^2.0 || ^1.0",
"nguyenanhung/filesystem-helper": "^2.0 || ^1.0",
"nguyenanhung/slug-helper": "^2.0 || ^1.0",
"monolog/monolog": "^3.0"
},
"require-dev": {
"kint-php/kint": ">=3.0"
},
"suggest": {
"ext-json": "Needed to support JSON",
"ext-iconv": "Needed to support ICONV",
"ext-mbstring": "Needed to support MbString",
"ext-openssl": "Needed to support OpenSSL",
"sentry/sdk": "Need support for Logging with Sentry"
},
"autoload": {
"psr-4": {
"nguyenanhung\\MyDebug\\": "src/"
}
}
}
Loading

0 comments on commit e0bb01d

Please sign in to comment.