PHPackages                             aerni/snipcart-api - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. aerni/snipcart-api

ActiveLibrary[API Development](/categories/api)

aerni/snipcart-api
==================

A Laravel wrapper for the Snipcart API

v1.2.0(2y ago)326.6k1MITPHPPHP ^8.1

Since Feb 9Pushed 2y ago1 watchersCompare

[ Source](https://github.com/aerni/snipcart-api)[ Packagist](https://packagist.org/packages/aerni/snipcart-api)[ Docs](https://github.com/aerni/snipcart-api)[ RSS](/packages/aerni-snipcart-api/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (5)Versions (4)Used By (1)

Laravel Snipcart API
====================

[](#laravel-snipcart-api)

This package makes it super easy to work with the Snipcart API in your Laravel application.

Installation
------------

[](#installation)

Install the package using Composer.

```
composer require aerni/snipcart-api
```

Set your Snipcart `Live Secret` and `Test Secret` in your `.env`. You can find them in your [Snipcart Dashboard](https://app.snipcart.com/dashboard/account/credentials).

```
SNIPCART_LIVE_SECRET=********************************
SNIPCART_TEST_SECRET=********************************
```

You may also publish the config of the package.

```
php artisan vendor:publish --provider="Aerni\SnipcartApi\SnipcartApiServiceProvider"
```

The following config will be published to `config/snipcart-api.php`.

```
