bunq / tinker_php

Install Tinker by just running this command: bash <(curl -s https://tinker.bunq.com/php/setup.sh)
MIT License
7 stars 8 forks source link

How to install and use bunq tinker in laravel? #17

Closed jimkaler closed 6 years ago

jimkaler commented 6 years ago

Hey guys, i need to know how can we use bunq tinker in laravel project?

What I've done so far, Installed tinker in new directory because when I try to run "bash <(curl -s https://tinker.bunq.com/php/setup.sh)" command it was saying " Please run the script from an empty directory". And I've moved tinker folder in laravel vendor. But whenever i try to use BunqLib class in controller it giving me error "Class 'bunq\tinker\BunqLib' not found". I have also tried with providers and alias in app.php but same error "class not found" I'm stuck in bunq. I need help, Is anyone bunq expert here who can help me out? Here the screenshot of error: @OGKevin screenshot from 2018-04-07 12-18-02

OGKevin commented 6 years ago

@jimkaler tinker is a command line tool and should not be used in a larval project unless your using it to execute command line commands like tinker/user-overview.

You should consider using bunq/sdk_php for this instead of tinker. You can then use BunqLib.php as example on how to use the bunq/sdk_php.

Closing this issue as its not a bug. Feel free to continue commenting.

jimkaler commented 6 years ago

Thanks @OGKevin It was so complicated. Now I have found a way to implement it. Thanks a lot.

Shohan494 commented 2 years ago

@jimkaler can you help me explaining the integration 😅