oluwatyson
oluwatyson

Reputation: 301

Use non-Laravel package in Laravel 7

I am trying to use this package within my Laravel project:

https://github.com/bkuhl/simple-ups

I am however struggling to use it within my controller as it has an hyphen within its path.

I have tried doing:

use Bkuhl\simple-ups\src\SimpleUPS\UPS.php

but it does not seem work. Does anyone have a guide as to how I can use it within my controller?

Upvotes: 0

Views: 132

Answers (1)

Michael Mano
Michael Mano

Reputation: 3440

use SimpleUPS\UPS; You can view the namespace of the class here https://github.com/bkuhl/simple-ups/blob/master/src/SimpleUPS/UPS.php

Upvotes: 1

Related Questions