admn/admn-php
Composer 安装命令:
composer require admn/admn-php
包简介
PHP Package To Interact With ADMN Service
README 文档
README
A simple wrapper for ADMN.io API written in PHP.
Features
- Log action as entity (User, Customer, Employee, etc.)
Requirements
- PHP 7+
- For Laravel, use our Laravel SDK
Installation
Via Composer.
Installation:
composer require admn/admn-php
Usage:
use Admn\Admn\AuditLogger; use Admn\Admn\Actor; // Set API Token Globally AuditLogger::setCredentials($token, $secret); // Create Actor Identifier Object $actor = (new Actor())->setIdentifier(email, 'john@doe.com')->setDisplay('John Doe'); // Send Action return AuditLogger::make($actor) )->setAction('Updated a user record') ->setTags(['user:123','user-update']) ->setContext([ 'key' => 'email', 'original_value' => 'jane@google.com', 'updated_value' => 'jane@doe.com', ]) ->save();
统计信息
- 总下载量: 402
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2022-01-12