francescozanoni / zend-cache-sqlite3-pdo
SQLite 3 cache engine for Zend Framework 1, based on PDO driver
Installs: 33
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/francescozanoni/zend-cache-sqlite3-pdo
Requires
- php: >=5.3
 - ext-pdo: *
 - zendframework/zendframework1: ^1.12
 
Requires (Dev)
- phpunit/phpunit: ^4.8
 
This package is auto-updated.
Last update: 2025-10-27 03:29:46 UTC
README
Purposes
- add SQLite 3-based cache engine to Zend Framework 1, besides the default SQLite 2 engine
 - provide it as Composer package, with specific requirements and fully automated installation
 - integrate with the official Zend Framework 1 package
 
How to use
- add this package to your project dependencies:
composer require francescozanoni/zend-cache-sqlite3-pdo
 - customize application.ini file:
resources.cachemanager.<cache_name>.backend.name = Sqlite3 resources.cachemanager.<cache_name>.backend.options.cache_db_complete_path = "/path/to/cache.sqlite"
 - create cache database file and make it writable by web user (tables are created automatically by the engine itself):
touch /path/to/cache.sqlite chmod 777 /path/to/cache.sqlite
 
How to test
- on Unix/Linux:
cd /path/to/zend-cache-sqlite3-pdo vendor/bin/phpunit test
 - on Windows:
cd \path\to\zend-cache-sqlite3-pdo vendor\bin\phpunit.bat test
 
History
- gencer/zend-cache-sqlite3 started the project, with instructions on how to manually copy and paste the code to the suitable Zend Framework's subfolder. PDO and native driver versions are provided together.
 - tttptd/zend-cache-sqlite3 added a basic Composer-compliant structure, but left the manual installation and the two versions together.
 - I've added the official Zend Framework 1 package as requirement and split the original package into two different packages: this one and francescozanoni/zend-cache-sqlite3-native, in order to let the final user choose and handle requirements accordingly. The engine code (src/Zend/Cache/Backend/Sqlite3.php) was taken as-is from the mentioned repositories, I've only wrapped it into a Composer-compliant file/folder structure.