Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installing Shippo PHP Manually

Is there a way to install the Shippo PHP files manually without Composer or Laravel?

I uploaded the files manually, but I get an error when I run the examples:

Warning: require_once(/var/www/html/shippo/examples../../vendor/autoload.php): failed to open stream: No such file or directory.

I'm not familiar with Composer or Laravel and have not been able to get Composer to work.

like image 606
jligda Avatar asked Aug 25 '26 16:08

jligda


1 Answers

In order to manually install the library, you'd need to be sure you're including full path to shippo-php-client/lib/Shippo.php. So something like:

require('shippo-php-client/lib/Shippo.php')

If you're going this route though, you'll want to be sure that you have all of the required dependencies. The library currently depends on the following PHP extensions:

  • curl
  • json
  • mbstring

The library was designed to be most easily installed using Composer, since its fairly ubiquitous amongst PHP projects and frameworks. I would still recommend revisiting setting up and using Composer to manage installing the Shippo library.

like image 189
mootrichard Avatar answered Aug 28 '26 05:08

mootrichard



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!