Skip to content

Commit

Permalink
Merge pull request #44 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 Apr 5, 2024
2 parents 4a9c6e9 + 87d1c32 commit da3dcf8
Show file tree
Hide file tree
Showing 18 changed files with 387 additions and 248 deletions.
54 changes: 27 additions & 27 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,30 +2,30 @@
name: Testing PHP Package Cache by HungNG
on: [ push, pull_request ]
jobs:
build:
strategy:
matrix:
operating-system: [ ubuntu-latest, macos-latest ]
php-versions: [ '8.0', '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, apcu, json, openssl, iconv, gettext, memcache, memcached, redis
- 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.json') }}
restore-keys: ${{ runner.os }}-composer-
- name: Install dependencies
run: composer install --no-progress --prefer-dist --optimize-autoloader
- name: Test PHP Package Cache by HungNG
run: php ./test/test.php
build:
strategy:
matrix:
operating-system: [ ubuntu-latest ]
php-versions: [ '8.0', '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, apcu, json, openssl, iconv, gettext, memcache, memcached, redis
- 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.json') }}
restore-keys: ${{ runner.os }}-composer-
- name: Install dependencies
run: composer install --no-progress --prefer-dist --optimize-autoloader
- name: Test PHP Package Cache by HungNG
run: php ./test/test.php
6 changes: 6 additions & 0 deletions .ide.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?php

defined('BASEPATH') or exit('Only for IDE Purpose');
function log_message($level, $message)
{
}
104 changes: 52 additions & 52 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,55 +1,55 @@
{
"name": "nguyenanhung/my-cache",
"type": "library",
"description": "My Cache Library",
"keywords": [
"cache",
"phpfastcache",
"my cache"
],
"homepage": "https://github.com/nguyenanhung/my-cache",
"license": "GPL-3.0",
"authors": [
{
"name": "Nguyen An Hung",
"email": "dev@nguyenanhung.com",
"homepage": "https://nguyenanhung.com",
"role": "Developer"
"name": "nguyenanhung/my-cache",
"type": "library",
"description": "My Cache Library",
"keywords": [
"cache",
"phpfastcache",
"my cache"
],
"homepage": "https://github.com/nguyenanhung/my-cache",
"license": "GPL-3.0",
"authors": [
{
"name": "Nguyen An Hung",
"email": "dev@nguyenanhung.com",
"homepage": "https://nguyenanhung.com",
"role": "Developer"
}
],
"require": {
"php": "^8.0 || ^7.0",
"ext-json": "*",
"ext-iconv": "*",
"ext-openssl": "*",
"ext-mbstring": "*",
"nguyenanhung/my-debug": "^4.0 || ^3.0",
"phpfastcache/phpfastcache": "^9.0 || ^8.1"
},
"require-dev": {
"kint-php/kint": ">=3.0"
},
"autoload": {
"psr-4": {
"nguyenanhung\\MyCache\\": "src/"
}
},
"suggest": {
"ext-apcu": "*",
"ext-intl": "*",
"ext-memcached": "*",
"ext-memcache": "*",
"ext-redis": "*",
"ext-xcache": "*",
"ext-sqlite": "*",
"ext-wincache": "*",
"ext-leveldb": "*",
"ext-couchbase": "*",
"ext-couchbase_v3": "*",
"predis/predis": "^1.1",
"mongodb/mongodb": "^1.9",
"phpfastcache/phpssdb": "~1.0.0",
"phpfastcache/couchdb": "~1.0.0",
"phpfastcache/mongodb-extension": "~9.2.0"
}
],
"require": {
"php": "^8.0 || ^7.0",
"ext-json": "*",
"ext-iconv": "*",
"ext-openssl": "*",
"ext-mbstring": "*",
"nguyenanhung/my-debug": "^4.0 || ^3.0",
"phpfastcache/phpfastcache": "^9.0 || ^8.1"
},
"require-dev": {
"kint-php/kint": ">=3.0"
},
"autoload": {
"psr-4": {
"nguyenanhung\\MyCache\\": "src/"
}
},
"suggest": {
"ext-apcu": "*",
"ext-intl": "*",
"ext-memcached": "*",
"ext-memcache": "*",
"ext-redis": "*",
"ext-xcache": "*",
"ext-sqlite": "*",
"ext-wincache": "*",
"ext-leveldb": "*",
"ext-couchbase": "*",
"ext-couchbase_v3": "*",
"predis/predis": "^1.1",
"mongodb/mongodb": "^1.9",
"phpfastcache/phpssdb": "~1.0.0",
"phpfastcache/couchdb": "~1.0.0",
"phpfastcache/mongodb-extension": "~9.2.0"
}
}
Loading

0 comments on commit da3dcf8

Please sign in to comment.