jeudi 19 janvier 2017

Adding a composer package to Laravel 5

"require": {
    "infusionsoft/php-sdk": "^1.2",
    "laravel/lumen-framework": "5.1.*",
    "vlucas/phpdotenv": "~1.0",
    "barryvdh/laravel-debugbar": "^2.2",
    "goaop/framework": "^2.0",
    "php-http/httplug": "^1.1",
    "infusionsoft/old-php-isdk": "*"
},

I'm trying to use the "infusionsoft/old-php-isdk" which is in the packagist composer repository but it's not specific to Laravel. I'm using an order controller and it's code that I picked up from another developer so he references the current (and working) "infusionsoft/php-sdk" as the following

"use infusionsoft\infusionsoft;"

What namespace do I call it if it has no namespace from the package?

Here's the original link to the composer package. http://ift.tt/1EKzsba

Am I missing something? Do I need to assign it a namespace? What and where would I put it?



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2iH5f9U
via IFTTT

Aucun commentaire:

Enregistrer un commentaire