yapro/history-data
最新稳定版本:v1.0.1
Composer 安装命令:
composer require yapro/history-data
包简介
README 文档
README
Run tests:
vendor/bin/phpunit tests/Functional/
How to configure Symfony
Add to config/services.yaml
YaPro\Helper\: resource: '../vendor/yapro/helpers/src/*' YaPro\HistoryData\: resource: '../vendor/yapro/history-data/src/*' yapro.pdo.sqlite: class: YaPro\HistoryData\HistoryDataManager factory: ['YaPro\HistoryData\HistoryDataManager', 'getPdo'] arguments: ['%env(FILE_PATH_TO_SQLITE_DB)%',] YaPro\HistoryData\HistoryDataManager: arguments: ['@yapro.pdo.sqlite',]
File mydb.sq3 is ready for use.
But, if you want to have own sqlite db - make it:
sudo apt install sqlite3 sqlite3 mydb.sq3
Tip: https://www.sqlite.org/cli.html
And make the table in sqlite db:
create table history_data
(
createdAt INTEGER default CURRENT_TIMESTAMP not null,
ipAddress TEXT not null,
userAgent TEXT not null,
operationName TEXT not null,
entityName TEXT not null,
entityId TEXT not null,
jsonData TEXT not null
);
And don`t forgеt, almost every sqlite table has a hidden AUTOINCREMENT column rowid:
SELECT rowid, * FROM history_data
统计信息
- 总下载量: 989
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2021-10-13