Download the PHP package dagasmart/auditing without Composer

On this page you can find all versions of the php package dagasmart/auditing. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package auditing

Auditing

自动记录模型数据变更的审计包

这个包能帮咱干啥

‌自动记录数据变化‌:模型创建、更新、删除、恢复操作都会自动存到 audits 表里,不用手动写监听器 。 ‌完整操作追溯‌:每条记录包含旧值、新值、操作用户 ID、IP 地址、User Agent、URL 等上下文信息 。 ‌灵活控制审计范围‌:

可以用$auditInclude 指定只审计哪些字段,或用$auditExclude排除敏感字段如密码 。

‌多模型统一存储‌:一个 audits 表通过多态关联能记录所有模型的变更,查询和管理都方便 。‌‌‌ 怎么快速装好用起来

Composer 安装‌:运行

composer require dagasmart/auditing

注意包名拼写准确,dagasmart作者组织名

发布迁移文件‌:执行

生成审计表迁移文件,‌运行数据库迁移‌:执行

创建 audits 表,不跑这步会报错表不存在 。

模型启用审计‌:在需要审计的模型里 use Auditable trait 并实现 AuditableContract 接口,两个缺一不可 。

Laravel model

哪些 Laravel 版本能配合‌:支持 Laravel 11.x 到 13.x,PHP 8.3 以上,当前活跃维护中 。


All versions of auditing with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
ext-json Version *
illuminate/console Version ^11.0|^12.0|^13.0
illuminate/database Version ^11.0|^12.0|^13.0
illuminate/filesystem Version ^11.0|^12.0|^13.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package dagasmart/auditing contains the following files

Loading the files please wait ...