PHPackages                             davesweb/laravel-bricklink-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. davesweb/laravel-bricklink-api

ActiveLibrary

davesweb/laravel-bricklink-api
==============================

Laravel wrapper for the davesweb/bricklink-api package.

1.0.2(4y ago)325MITPHPPHP ^8.0

Since Aug 25Pushed 4y ago2 watchersCompare

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

READMEChangelog (4)Dependencies (2)Versions (5)Used By (0)

Laravel Bricklink API
=====================

[](#laravel-bricklink-api)

This package is a Laravel wrapper for the `davesweb/bricklink-api` package. It adds a config file for your Bricklink credentials, a service provider which registers everything correctly for dependency injection, and an autodiscover to the `davesweb/bricklink-api` package. Other functionality stays the same.

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

[](#installation)

Via composer: `composer require davesweb/laravel-bricklink-api`

After installation, publish the config file with `php artisan vendor:publish --tag=bricklink-config`.

Configuration
-------------

[](#configuration)

This package needs 4 new environment variables:

```
BRICKLINK_CONSUMER_KEY=
BRICKLINK_CONSUMER_SECRET=
BRICKLINK_TOKEN_VALUE=
BIRCKLINK_TOKEN_SECRET=

```

You can find the values for these in your Bricklink account.

Usage
-----

[](#usage)

This package takes care of the configuration of the API connection, so you can inject or resolve the repository classes directly in your Laravel application.

Example 1: Inject category repository in your controller:

```
