著名交互/toolbox

此包已被 弃用 且不再维护。作者建议使用 jeremy379/toolbox 包。

从github或任何zip源安装一组自定义库到laravel项目中

V1.1 2018-08-31 12:42 UTC

This package is auto-updated.

Last update: 2022-02-01 13:10:03 UTC


README

安装一组库

基本安装

  • composer require jeremy379/toolbox

  • 在Laravel < 5.5中:将 Jeremy379\Toolbox\ToolboxServiceProvider::class 添加到 config/app.php

  • 运行命令 jeremy379:toolbox

使用自定义配置文件

  • 您可以通过指定json配置文件的路径来使用自己的自定义库集。

    jeremy379:toolbox --config=config.json

  • json文件默认内容应遵循以下结构

{
    "aws": {
        "description": "Install a set of library to use the face and scene rekognition on Amazon web services",
        "configkeys": [
            "AWS_REGION","AWS_KEY","AWS_SECRET","AWS_BUCKET"
        ],
        "path": "https://github.com/jeremy379/toolbox-lib-aws/archive/master.zip"
    },
    "helper": {
        "description": "A lot of function nice to have as a helper to use easily in the view and wherever you need",
        "configkeys": [],
        "path": "https://github.com/jeremy379/toolbox-lib-helper/archive/master.zip",
        "post-install": "Open you Providers/AppServiceProvider.php and add 'include __DIR__.'/../Libraries/Helper/function.php';' in the register() method"
    },
    "httpcommunicator": {
        "description": "It's an helper for Guzzle providing basic method for RESTfull calls.",
        "configkeys": [],
        "path": "https://github.com/jeremy379/toolbox-lib-httpcommunicator/archive/master.zip"
    },
    "dropbox": {
        "description": "Call using the dropbox API",
        "configkeys": ["DROPBOX_ACCESS_TOKEN"],
        "path": "https://github.com/jeremy379/toolbox-lib-dropbox/archive/master.zip"
    },
    "auth": {
            "description": "A set of file to implement a custom and managable authentification system",
            "configkeys": ["auth_remember_token_cookie_name"],
            "post-install": "Read the README in the Auth directory. A lot of files need to be moved",
            "path": "https://github.com/jeremy379/toolbox-lib-auth/archive/master.zip"
    }
}
  • 路径需要是github zip(或者至少,一个像github那样的zip存档,其中包含"master"名称)