Twilio including external namespaces best practice??
They suggest having the folder at the root and linking it as so:
require __DIR__ . '/twilio-php-master/Twilio/autoload.php';
However what would be the best practice to include and load these files in the package?
Thanks in advance
Thanks, sorry to ask but could you indicate what script to add and to what file?
> On 24 Sep 2017, at 09:50, concrete5 Community <[email protected]> wrote:
Unfortunately, I couldn't get it to work with something I was trying to install. :(
I managed to get this working a treat.
All the best
It's also a good idea to add [SOLVED] to the forum title.
What is it specifically you are struggling with? I just followed the two articles above?
Not having a problem at all, but I got it working doesn't help anybody else in the forum that might have a similar problem.
A brief breakdown of the solution and changing the subject to include [SOLVED] helps everybody.
Did you use composer? What path did you include the library in your package? Did the use statements change, etc...