PHPackages                             iqbalhasandev/sqlite-cache - 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. iqbalhasandev/sqlite-cache

ActiveLibrary[Caching](/categories/caching)

iqbalhasandev/sqlite-cache
==========================

The Missing Sqlite Cache Driver Package.You can easily use Sqlite Database as Cache Driver through this package

V2.0(5y ago)17860↓10.7%1MITPHP

Since Nov 28Pushed 4y ago1 watchersCompare

[ Source](https://github.com/iqbalhasandev/laravel-sqlite-cache)[ Packagist](https://packagist.org/packages/iqbalhasandev/sqlite-cache)[ RSS](/packages/iqbalhasandev-sqlite-cache/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (4)Used By (0)

Laravel Sqlite Cache - The Missing Sqlite Cache Driver Package
==============================================================

[](#laravel-sqlite-cache---the-missing-sqlite-cache-driver-package)

Made with ❤️ by [Iqbal Hasan](https://www.facebook.com/iqbalhasan.dev/)

- **Laravel**: 5.6/5.7/5.8/6.0/7.0/8.0
- **Author**: IQBAL HASAN
- **Website &amp; Documentation:**:

[![issues](https://camo.githubusercontent.com/7fc873198bc02b86ecbd30c7dc4076393d57538723b6bb9df833d6c8dbe347ce/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f697162616c686173616e6465762f6c61726176656c2d73716c6974652d6361636865)](https://github.com/iqbalhasandev/laravel-sqlite-cache/issues)[![forks](https://camo.githubusercontent.com/009f88093d7b996ddd5368a0aca4fe954cca62bcc0eaa372e7c69e110d57d60e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f666f726b732f697162616c686173616e6465762f6c61726176656c2d73716c6974652d6361636865)](https://github.com/iqbalhasandev/laravel-sqlite-cache/network/members)[![stars ](https://camo.githubusercontent.com/f42a3b9a4d4c3bca97c062a0eb20238284184944b108b5fde81e5b4d73e574a0/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f697162616c686173616e6465762f6c61726176656c2d73716c6974652d6361636865)](https://github.com/iqbalhasandev/laravel-sqlite-cache/stargazers)[![Latest Stable Version](https://camo.githubusercontent.com/3bf15b87ea4d8312951b00d7f7d5ed38d27ac5ed0164fc22d5b3e236c474b476/68747470733a2f2f706f7365722e707567782e6f72672f697162616c686173616e6465762f73716c6974652d63616368652f76)](https://packagist.org/packages/iqbalhasandev/sqlite-cache)[![Total Downloads](https://camo.githubusercontent.com/3970dc59008380281770d7524e93ddcb42f94ccabc70bef7216913ce95d77717/68747470733a2f2f706f7365722e707567782e6f72672f697162616c686173616e6465762f73716c6974652d63616368652f646f776e6c6f616473)](https://packagist.org/packages/iqbalhasandev/sqlite-cache)[![Latest Unstable Version](https://camo.githubusercontent.com/0939c36e074ef8e696c1cf4eb8a1d6b0b062df968076605bfffa3995803e8009/68747470733a2f2f706f7365722e707567782e6f72672f697162616c686173616e6465762f73716c6974652d63616368652f762f756e737461626c65)](https://packagist.org/packages/iqbalhasandev/sqlite-cache)[![license](https://camo.githubusercontent.com/ccca459e5c189e168368f11047f7cdcc36f97bf1538afade027ad0d14b555c91/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f697162616c686173616e6465762f6c61726176656c2d73716c6974652d6361636865)](http://opensource.org/licenses/MIT)

---

Integrate Cache Driver into your project easily with laravel-sqlite-cache package.

Installation Steps
------------------

[](#installation-steps)

### 1. Require the Package

[](#1-require-the-package)

After creating your new Laravel application you can include the Sqlite Cache Driver Package with the following command:

```
composer require iqbalhasandev/sqlite-cache
```

### 2. If you're using Laravel 5.5, this is all there is to do.

[](#2-if-youre-using-laravel-55-this-is-all-there-is-to-do)

Should you still be on version 5.4 of Laravel, the final steps for you are to add the service provider of the package and alias the package. To do this open your `config/app.php` file.

Add a new line to the `providers` array:

```
Iqbal\SqliteCache\SqliteCacheProvider::class

```

### 3. Then run the command in the terminal "php artisan sqlite-cache:install; php artisan sqlite-cache:table;"

[](#3-then-run-the-command-in-the-terminal-php-artisan-sqlite-cacheinstall-php-artisan-sqlite-cachetable)

```
// * To install & publish all config files of sqlite-cache package
php artisan sqlite-cache:install

//Then Run

// * To Create Cache Table
php artisan sqlite-cache:table
```

### 4. Change the Cache Driver " open .env file then change CACHE\_DRIVER=sqlite"

[](#4-change-the-cache-driver--open-env-file-then-change-cache_driversqlite)

```
CACHE_DRIVER=sqlite
```

Overview
--------

[](#overview)

Look at one of the following topics to learn more about laravel-bulksmsbd

- [Usage](#usage)
- [Configuration](#configuration)

Usage
-----

[](#usage)

Below is an example of Cache Data

```
//Route web.php

use Illuminate\Support\Facades\Cache;

Route::get('/laravel-sqlite-cache', function () {
    Cache::put('testing', 'laravel sqlite cache is Awesome');
    return Cache::get('testing');
});
```

To know more about the use of laravel cache, visit [ laravel Official Webpage](https://laravel.com/docs/7.x/cache#cache-usage)

### Configuration

[](#configuration)

You can change Cache Database Name to change name follow these step:

Add `CACHE_DATABASE` to **.env** file.
--------------------------------------

[](#add-cache_database-to-env-file)

```
// optional Defalt Cache Database Name 'cache.sqlite'
CACHE_DATABASE={databasename} //E.g. 'cache.sqlite'
```

Then run the command in the terminal "php artisan sqlite-cache:install; php artisan sqlite-cache:table;"
--------------------------------------------------------------------------------------------------------

[](#then-run-the-command-in-the-terminal-php-artisan-sqlite-cacheinstall-php-artisan-sqlite-cachetable)

```
// * To install & publish all config files of sqlite-cache package
php artisan sqlite-cache:install

//Then Run

// * To Create Cache Table
php artisan sqlite-cache:table
```

Credits
-------

[](#credits)

- IQBAL HASAN (the author of sqlite-cach package)
- [Contributors](https://github.com/iqbalhasandev/laravel-sqlite-cache/graphs/contributors)

Support
-------

[](#support)

Hey dude! Don't forget to mail me if you have any problem with the package.

- **Author E-mail**:
- **Author Facebook**:
- **Author linkedin**:
- **Author github**:
- **Author twitter**:

License
-------

[](#license)

This package inherits the licensing of its parent framework, Laravel, and as such is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT)

Extra
-----

[](#extra)

If you want to contribute, you can

Thank you for using this package😘 If you like it, don't forget to give a star⭐⭐⭐⭐⭐

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity56

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 ~8 days

Total

3

Last Release

2028d ago

Major Versions

V0.1 → V1.02020-11-28

V1.0 → V2.02020-12-13

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/39612205?v=4)[IQBAL HASAN](/maintainers/iqbalhasandev)[@iqbalhasandev](https://github.com/iqbalhasandev)

---

Top Contributors

[![iqbalhasandev](https://avatars.githubusercontent.com/u/39612205?v=4)](https://github.com/iqbalhasandev "iqbalhasandev (5 commits)")

---

Tags

cache-diver-integrationcache-diver-sqlitecache-drivercomposer-dependencyiqbalhasandevlaravel-cachelaravel-packagelaravel-sqlite-cachelearnphp-packagesqlitestudent-vscodepluginpackagelibrarycache driverSqlite Cache Driver

### Embed Badge

![Health badge](/badges/iqbalhasandev-sqlite-cache/health.svg)

```
[![Health](https://phpackages.com/badges/iqbalhasandev-sqlite-cache/health.svg)](https://phpackages.com/packages/iqbalhasandev-sqlite-cache)
```

###  Alternatives

[awssat/laravel-visits

Laravel Redis visits counter for Eloquent models

973172.3k2](/packages/awssat-laravel-visits)[rtcamp/nginx-helper

Cleans nginx's fastcgi/proxy cache or redis-cache whenever a post is edited/published. Also provides cloudflare edge cache purging with Cache-Tags.

23617.1k1](/packages/rtcamp-nginx-helper)[rapidwebltd/rw-file-cache

RW File Cache is a PHP File-based Caching Library. Its syntax is designed to closely resemble the PHP memcache extension.

15195.9k7](/packages/rapidwebltd-rw-file-cache)[mohammedjalal99/filament-cache-plugin

Complete caching solution for Filament PHP - Cache everything automatically

101.4k](/packages/mohammedjalal99-filament-cache-plugin)

PHPackages © 2026

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