Download the PHP package firstphp/icelog without Composer

On this page you can find all versions of the php package firstphp/icelog. 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 icelog

icelog

公共日志服务 for laravel

安装

composer require firstphp/icelog:"1.0"

数据迁移

拷贝迁移文件到指定目录: cp -R vendor/firstphp/icelog/src/Migrations/* database/migrations/

执行数据迁移命令: php artisan migrate
可能会报错,报错解决方法(详见文章 http://www.firstphp.com/archives/192.html):
/project/app/Providers/AppServiceProvider.php 中boot()方法添加:Schema::defaultStringLength(191);

因为laravel自身的Schema无法构造联合表,故而在生成表后,需手动执行一下该SQL:
ALTER TABLE `user_log` ENGINE=MRG_MyISAM UNION=(user_log_201801,user_log_201802,user_log_201803,user_log_201804,user_log_201805,user_log_201806,user_log_201807,user_log_201808,user_log_201809,user_log_201810,user_log_201811,user_log_201812);

注册服务 编辑 config/app.php 文件, 在 providers 数组中添加如下: Firstphp\Wechat\Providers\WechatServiceProvider::class,

示例代码

use Firstphp\Icelog\Facades\IcelogFactory;

......

添加日志:
    $data = [
        'user_id' => 1,
        'type' => 1,
        'source_id' => 1,
        'remark' => '描述内容201801',
        'original' => '原始内容11',
        'record' => '操作内容111',
    ];
    IcelogFactory::addlogs($data)

日志列表(支持分页):
    $offset = isset($this->params['offset']) && $this->params['offset'] ? $this->params['offset'] : 0;
    $limit = isset($this->params['limit']) && $this->params['limit'] ? $this->params['limit'] : 10;
    return IcelogFactory::getlogs($offset, $limit);

All versions of icelog with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.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 firstphp/icelog contains the following files

Loading the files please wait ....