Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do I install this driver? #5

Closed
ranrinc opened this issue Mar 8, 2019 · 11 comments
Closed

How do I install this driver? #5

ranrinc opened this issue Mar 8, 2019 · 11 comments

Comments

@ranrinc
Copy link

ranrinc commented Mar 8, 2019

Is there a documentation with explanation to install it?
Would love to test it too.

@gundamew
Copy link
Owner

gundamew commented Mar 8, 2019

I recommend you to create the base project with BotMan Studio:

composer create-project --prefer-dist botman/studio <directory>

Then you can load the driver via Composer. See: Loading a package from a VCS repository section.

For example:

{
    "require": {
        "gundamew/botman-driver-line": "dev-master",
    },
    "repositories": [
        {
            "type": "path",
            "url": "../botman-driver-line"
        }
    ]
}

Finally, run Composer and the driver configurations will published automatically.

@ranrinc
Copy link
Author

ranrinc commented Mar 8, 2019

Hi @gundamew,

thanks for the help.. I did install botman using botman studio will try to load the driver via VCS.. btw is there anything else that I need to know? I mean when you say run Composer?

thanks.

@gundamew
Copy link
Owner

gundamew commented Mar 8, 2019

Oh, I mean run composer install or composer update after editing composer.json file, and the Composer scripts will publish the driver configurations automatically.

@ranrinc
Copy link
Author

ranrinc commented Mar 12, 2019

@gundamew hi there.. so sorry would really love to implement botman into line. However still did not get how to install. repository would be to this github? Furthermore is there a step to install the driver into botman? php artisan botman:install-driver line ?? Very nubie and would like to have line on my messenger list. Thanks

@gundamew
Copy link
Owner

This BotMan driver is an unofficial driver so you can not install it via BotMan. You have to install it manually.

If you want to try this driver, you should know how to require Composer package locally at least.

@ranrinc
Copy link
Author

ranrinc commented Mar 12, 2019

@gundamew put the json and then run composer update... with error.. What did I do wrong?

Screen Shot 2019-03-12 at 11 46 57 AM

this is my json

{
    "name": "botman/studio",
    "description": "BotMan Chatbot framework.",
    "keywords": [
        "botman",
        "chatbot",
        "framework",
        "laravel"
    ],
    "license": "MIT",
    "type": "project",
    "require": {
        "php": "^7.1.3",
        "botman/botman": "~2.0",
        "botman/driver-facebook": "^1.9",
        "botman/driver-telegram": "^1.5",
        "gundamew/botman-driver-line": "dev-master",
        "botman/driver-web": "~1.0",
        "botman/studio-addons": "~1.3",
        "botman/tinker": "~1.0",
        "fideloper/proxy": "^4.0",
        "laravel/framework": "5.7.*",
        "laravel/tinker": "^1.0"
    },
    "require-dev": {
        "beyondcode/laravel-dump-server": "^1.0",
        "filp/whoops": "~2.0",
        "fzaninotto/faker": "~1.4",
        "mockery/mockery": "^1.0",
        "nunomaduro/collision": "^2.0",
        "phpunit/phpunit": "^7.0"
    },
    "autoload": {
        "classmap": [
            "database/seeds",
            "database/factories"
        ],
        "psr-4": {
            "App\\": "app/"
        }
    },
    "autoload-dev": {
        "psr-4": {
            "Tests\\": "tests/"
        }
    },
    "extra": {
        "laravel": {
            "dont-discover": [
            ]
        }
    },
    "scripts": {
        "post-root-package-install": [
            "php -r \"file_exists('.env') || copy('.env.example', '.env');\""
        ],
        "post-create-project-cmd": [
            "php artisan key:generate"
        ],
        "post-install-cmd": [
            "Illuminate\\Foundation\\ComposerScripts::postInstall",
            "BotMan\\Studio\\Providers\\DriverServiceProvider::publishDriverConfigurations"
        ],
        "post-update-cmd": [
            "Illuminate\\Foundation\\ComposerScripts::postUpdate",
            "BotMan\\Studio\\Providers\\DriverServiceProvider::publishDriverConfigurations"
        ],
        "post-autoload-dump": [
            "Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
            "@php artisan package:discover"
        ]
    },
    "config": {
        "preferred-install": "dist",
        "sort-packages": true,
        "optimize-autoloader": true
    },
    "repositories": [
        {
            "type": "path",
            "url": "../botman-driver-line"
        }
    ],
    "minimum-stability": "dev",
    "prefer-stable": true
}

@gundamew
Copy link
Owner

Did you download the driver before running Composer? Please read the “Repositories” chapter in Composer document for more information.

@ranrinc
Copy link
Author

ranrinc commented Mar 12, 2019

@gundamew got it... have it working... yay.... is there a specific line only tags? like making a horizontal carrousel?

@gundamew
Copy link
Owner

I did not write any document. Please check LINE Messaging API document and read the code stored in src/Extensions path.

And remember this repository is still work in progress, the code may change in the future.

@gundamew
Copy link
Owner

@ranrinc if you have installed the driver successfully. Please close this issue. Thanks. 😄

@ranrinc
Copy link
Author

ranrinc commented Mar 12, 2019

Again thanks @gundamew

@ranrinc ranrinc closed this as completed Mar 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants