Skip to content

Commit 3c69084

Browse files
author
X-NicON
committed
fix composer.json
1 parent 2eaaef9 commit 3c69084

File tree

2 files changed

+10
-14
lines changed

2 files changed

+10
-14
lines changed

README.md

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,15 @@ To install Simple PHP Cache, simply:
88
### Example One
99
```php
1010
require __DIR__ . '/vendor/autoload.php';
11+
1112
use \phpCache\Cache;
1213

1314
$c = new Cache();
1415

1516
if(!$c->has("example")) {
16-
17-
$c->set("example", 'cache data', 300); // cache result for 5 minutes (300 seconds)
18-
17+
$c->set("example", 'cache data', 300); // cache result for 5 minutes (300 seconds)
1918
} else {
20-
21-
echo $c->get("example");
22-
19+
echo $c->get("example");
2320
}
2421

2522
```
@@ -29,14 +26,10 @@ if(!$c->has("example")) {
2926
$example = $c->get("example");
3027

3128
if($example !== false) {
32-
33-
echo "Cached: " . $example;
34-
$c->remove("example"); // remove from cache
35-
29+
echo "Cached: " . $example;
30+
$c->remove("example"); // remove from cache
3631
} else {
37-
38-
echo "Cache not found or expired";
39-
32+
echo "Cache not found or expired";
4033
}
4134
```
4235

composer.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@
99
"email": "xnicon@gmail.com"
1010
}
1111
],
12-
"minimum-stability": "stable",
12+
"minimum-stability": "dev",
13+
"require": {
14+
"php": ">=5.6"
15+
},
1316
"autoload": {
1417
"psr-4": {
1518
"phpCache\\": "."

0 commit comments

Comments
 (0)