jeremy379/toolbox

Install a set of custom library in a laravel project from github or any zip source

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

This package is auto-updated.

Last update: 2024-04-26 21:08:19 UTC


README

Install a set of library

Basic Installation

  • composer require jeremy379/toolbox

  • In Laravel < 5.5 : Add Jeremy379\Toolbox\ToolboxServiceProvider::class in config/app.php

  • Launch the command jeremy379:toolbox

Using custom config file

  • You can use your own set of custom library by specifying the path to a json config file.

    jeremy379:toolbox --config=config.json

  • The default content for the json files should follow this structure :

{
    "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"
    }
}
  • The path need to be a github zip (or at least, an zip archive like github do, with "master" in the name)