I'm trying to use the LupeCode\phpTraderNative at https://github.com/LupeCode/phpTraderNative
I'm an "old school BASIC GOTO 10 procedural coding" kinda guy, though I've often used other libraries that use namespaces, objects, classes, and whatnot but there's usually an example included on how to use them. This one hasn't.
The documentation states:
If you had
trader_adosc($high, $low, $close, $volume, $fastPeriod, $slowPeriod)
You can swap that withTrader::adosc($high, $low, $close, $volume, $fastPeriod, $slowPeriod)
You only need to change trader_ to Trader::. That's it!
So after installing it with composer and requiring the vendor/autoload.php i'm having a hard time figuring out how to use Trader:: in my code.
Fatal error: Uncaught Error: Class "Trader" not found in
I tried several things like:
use Lupecode\phpTraderNative;
or
$var = new Trader();
And variations, even tried including files from the source. But nothing seems to enable me to use it. Can someone point me in the right direction here?