PHPackages                             emirustaoglu/filecache - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Caching](/categories/caching)
4. /
5. emirustaoglu/filecache

ActiveLibrary[Caching](/categories/caching)

emirustaoglu/filecache
======================

File Cache

1.0.2(1y ago)0151MITPHPPHP &gt;=7.4

Since Jan 1Pushed 1y ago1 watchersCompare

[ Source](https://github.com/emirustaoglu/filecache)[ Packagist](https://packagist.org/packages/emirustaoglu/filecache)[ Docs](https://github.com/emirustaoglu/filecache)[ RSS](/packages/emirustaoglu-filecache/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)DependenciesVersions (5)Used By (1)

```

  ____  _   _ ____            _____ _ _       ____           _
 |  _ \| | | |  _ \          |  ___(_) | ___ / ___|__ _  ___| |__   ___
 | |_) | |_| | |_) |  _____  | |_  | | |/ _ \ |   / _` |/ __| '_ \ / _ \
 |  __/|  _  |  __/  |_____| |  _| | | |  __/ |__| (_| | (__| | | |  __/
 |_|   |_| |_|_|             |_|   |_|_|\___|\____\__,_|\___|_| |_|\___|

```

📜 Genel Bilgiler
----------------

[](#-genel-bilgiler)

**Proje Adı:** `filecache`

`filecache` ile basit bir json veri cachleme yapısı kurabilirsiniz. Bu proje olabildiğince basit tutulmuştur.

🚀 Kurulum
---------

[](#-kurulum)

**PHP FileCache** kurulumunu, proje ana dizininde aşağıdaki komutu yazarak kolayca gerçekleştirebilirsiniz:

```
composer require emirustaoglu/filecache
```

veya `composer.json` dosyanıza aşağıdaki satırları ekleyerek manuel kurulum yapabilirsiniz

```
{
    "require": {
        "emirustaoglu/filecache": "^1.0.0"
    }
}
```

Daha sonrasında aşağıdaki komutu çalıştırın

```
composer install
```

⚙️ Gereksinimler
----------------

[](#️-gereksinimler)

- PHP Sürümü:
    - Minimum: PHP 7.4
    - Tavsiye Edilen: PHP 8.1 veya üzeri

💻 Kullanım Örneği
-----------------

[](#-kullanım-örneği)

```
use emirustaoglu\filecache;

/**
 * @string $cacheDir Cache dizinini belirtiniz.
 * @int $cacheMinutes Cache dosyalarınız için dakika bazında süre belirtiniz. Bu süre default olarak 1 gündür
 * @bool $base64 Cache yapısında dosya isminin base64 olarak şifrelenip şifrelenmeyeceğini belirtiniz.
 */
$cache = new FileCache(__DIR__ . "/cache/", 1440, false);

//Cache Dosyası Oluşturma

/**
 * @array $data Ddatanız. Bu değer Cache dosyasına yazılacaktır.
 * @string $cacheName Cache Dosya adını belirtiniz.
 * @return bool
 */
if ($cache->createCache($data, "currencyCache")) {
    //... cache dosyası yazıldı
} else {
    //... cache dosyası yazılamadı
}

//Cache verisini çekme
/**
 * @string $cacheName Okunacak Cache dosya adını veriniz.
 * @return false|mixed
 */
$getCache = $cache->getCache("currencyCache");

print_r($getCache);
```

🤝 Katkıda Bulunma
-----------------

[](#-katkıda-bulunma)

Bu proje açık kaynaklıdır. İsteyen herkes katkıda bulunabilir.

1. Projeyi forklayın (  )
2. Özellik dalınızı (branch) oluşturun (git checkout -b yeni-ozellik)
3. Değişikliklerinizi commitleyin (git commit -am 'Yeni özellik eklendi')
4. Dalınıza push yapın (git push origin yeni-ozellik)
5. Yeni bir Pull Request oluşturun

📜 Lisans
--------

[](#-lisans)

Bu proje [MIT](http://opensource.org/licenses/MIT) Lisansı altında lisanslanmıştır. Dilediğiniz gibi kullanabilir ve dağıtabilirsiniz.

### 🎉 Kullandığınız için Teşekkürler!

[](#-kullandığınız-için-teşekkürler)

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance40

Moderate activity, may be stable

Popularity6

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

4

Last Release

500d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/dc973b7a187ba141f50a985f14095b9f95aa21e19c2d3aafd20bca98a248c773?d=identicon)[emirustaoglu](/maintainers/emirustaoglu)

---

Top Contributors

[![emirustaoglu](https://avatars.githubusercontent.com/u/101502889?v=4)](https://github.com/emirustaoglu "emirustaoglu (7 commits)")

---

Tags

cachefilejson cache

### Embed Badge

![Health badge](/badges/emirustaoglu-filecache/health.svg)

```
[![Health](https://phpackages.com/badges/emirustaoglu-filecache/health.svg)](https://phpackages.com/packages/emirustaoglu-filecache)
```

###  Alternatives

[lochmueller/staticfilecache

Transparent static file cache solution using mod\_rewrite and mod\_expires. Increase performance for static pages by a factor of 230!!

1311.3M3](/packages/lochmueller-staticfilecache)[matomo/cache

PHP caching library based on Doctrine cache

38854.1k4](/packages/matomo-cache)[vink/nova-cache-card

Manage your application's cache from a handy Laravel Nova dashboard card.

26317.3k1](/packages/vink-nova-cache-card)[garyr/memento

Lightweight cache library

186.6k1](/packages/garyr-memento)[mantoufan/yzhancache

Simple, effient cache class for PHP. 简单、高效的 PHP 缓存类

341.5k2](/packages/mantoufan-yzhancache)[bnomei/kirby3-redis-cachedriver

Advanced Redis cache-driver with in-memory store, transactions and preloading

101.7k](/packages/bnomei-kirby3-redis-cachedriver)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
