andri-sudarmawijaya / ci-activities
Activities Log for CodeIgniter 3
Installs: 10
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:codeigniter-third-party
Requires
- andri-sudarmawijaya/coreui-smarty-acl: 1.0.x-dev
- andri-sudarmawijaya/smartyacl: 1.0.x-dev
- oomphinc/composer-installers-extender: ^2.0
This package is auto-updated.
Last update: 2024-11-23 20:42:38 UTC
README
Third party will be installed automatically to application/third_party by Composer Installers Extender.
This third party use Smarty ACL to get identity.
Installation
composer require andri-sudarmawijaya/ci-activities:1.0.x-dev
or
composer require andri-sudarmawijaya/ci-activities
add this third party as package to config/autoload.php
$autoload['packages'] = array( '...', 'APPPATH.'third_party/ci-activities' );
Use
In your controller
function __construct() { ...; $this->load->library('activities'); }
use activities log
in your part of code
$param['tabel'] = 'Your tabel'; $param['content'] = 'Your content want to log'; $param['info'] = 'Your short info'; $this->activities->log($param);
use telegram bot
in your part of code
'...'; $param['botToken'] = 'XXXXXXXXXX:YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY'; //your telegram bot $param['chatId'] = '-ZZZZZZZZZ'; //Your chat id $param['content'] = 'Your content want to log'; // your message to telegram $this->activities->telegram($param);
import tabel
Import activities.sql to your database