Download the PHP package davesweb/laravel-bricklink-api without Composer
On this page you can find all versions of the php package davesweb/laravel-bricklink-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download davesweb/laravel-bricklink-api
More information about davesweb/laravel-bricklink-api
Files in davesweb/laravel-bricklink-api
Package laravel-bricklink-api
Short Description Laravel wrapper for the davesweb/bricklink-api package.
License MIT
Informations about the package 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
Via composer:
composer require davesweb/laravel-bricklink-api
After installation, publish the config file with php artisan vendor:publish --tag=bricklink-config
.
Configuration
This package needs 4 new environment variables:
You can find the values for these in your Bricklink account.
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:
Example 2: Inject a repository in your controller and use value objects and transformers:
For the documentation on how to use the repositories and value objects please refer to the davesweb/bricklink-api package.
All versions of laravel-bricklink-api with dependencies
illuminate/support Version ^8.0|^9.0
davesweb/bricklink-api Version ^1.0.0