From 98fdef8ce5e63fab8488def6a1e0139253e401ac Mon Sep 17 00:00:00 2001 From: ve3 Date: Thu, 12 Dec 2024 11:50:13 +0700 Subject: [PATCH] v3.0.4 Try to fix composer.json. --- .gitignore | 2 +- README.md | 5 +++-- composer.json | 23 +++++++++++++++++++++++ src/SimpleCache.php | 4 ++-- 4 files changed, 29 insertions(+), 5 deletions(-) create mode 100644 composer.json diff --git a/.gitignore b/.gitignore index c13bdee..57855db 100644 --- a/.gitignore +++ b/.gitignore @@ -28,7 +28,7 @@ $RECYCLE.BIN/ cache/ cache/* # composer.json for development only. -./composer.json +/composer.json # unit tests cache file. .phpunit.result.cache .phpunit.cache \ No newline at end of file diff --git a/README.md b/README.md index 6603ec5..0e431bd 100644 --- a/README.md +++ b/README.md @@ -16,8 +16,9 @@ composer require rundiz/simple-cache ``` ### For development -To install for development, clone this repository then copy composer-fordevonly.json to composer.json and check update packages using composer packages. -This is for prevent package dependencies conflict with the others while keep this package running on wider PHP versions. +To install for development, clone this repository then copy **composer-fordevonly.json** to **composer.json** and check update packages using composer packages. +This is for prevent package dependencies conflict with the others while keep this package running on wider PHP versions. +The required packages on composer.json must not exists, only php version. ## Example We currently support APC, APCu, Memcache, Memcached, File system drivers. These are how to initialize for each driver class. diff --git a/composer.json b/composer.json new file mode 100644 index 0000000..b65aed6 --- /dev/null +++ b/composer.json @@ -0,0 +1,23 @@ +{ + "name": "rundiz/simple-cache", + "type": "library", + "description": "The simple and easy PHP cache drivers for cache any PHP data type.", + "keywords": ["cache", "php cache", "filesystem cache", "file system cache", "APC", "APCu", "Memcache", "Memcached"], + "license": "MIT", + "authors": [ + { + "name": "Vee W.", + "email": "kawewong@gmail.com", + "homepage": "http://rundiz.com", + "role": "Developer" + } + ], + "require": { + "php": ">=7.0" + }, + "autoload": { + "psr-4": { + "Rundiz\\SimpleCache\\" : "src" + } + } +} diff --git a/src/SimpleCache.php b/src/SimpleCache.php index b7c4e12..88ea83d 100644 --- a/src/SimpleCache.php +++ b/src/SimpleCache.php @@ -11,13 +11,13 @@ * Rundiz SimpleCache * * @since 3.0 - * @version 3.0.3 + * @version 3.0.4 */ class SimpleCache { - const VERSION = '3.0.3'; + const VERSION = '3.0.4'; }