{"id":40488995,"url":"https://github.com/davesweb/laravel-bricklink-api","last_synced_at":"2026-01-20T18:49:55.543Z","repository":{"id":40463580,"uuid":"394622417","full_name":"davesweb/laravel-bricklink-api","owner":"davesweb","description":"Laravel specific implementation for the davesweb/bricklink-api package","archived":false,"fork":false,"pushed_at":"2022-05-06T18:22:21.000Z","size":49,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-04T21:51:34.726Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/davesweb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-08-10T11:10:51.000Z","updated_at":"2023-05-17T20:46:03.000Z","dependencies_parsed_at":"2022-08-09T21:12:32.586Z","dependency_job_id":null,"html_url":"https://github.com/davesweb/laravel-bricklink-api","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/davesweb/laravel-bricklink-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davesweb%2Flaravel-bricklink-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davesweb%2Flaravel-bricklink-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davesweb%2Flaravel-bricklink-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davesweb%2Flaravel-bricklink-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/davesweb","download_url":"https://codeload.github.com/davesweb/laravel-bricklink-api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davesweb%2Flaravel-bricklink-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28609209,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T16:10:39.856Z","status":"ssl_error","status_checked_at":"2026-01-20T16:10:39.493Z","response_time":117,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-01-20T18:49:55.450Z","updated_at":"2026-01-20T18:49:55.506Z","avatar_url":"https://github.com/davesweb.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Laravel Bricklink API\nThis 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. \n\n## Installation\nVia composer:\n`composer require davesweb/laravel-bricklink-api`\n\nAfter installation, publish the config file with `php artisan vendor:publish --tag=bricklink-config`.\n\n## Configuration\nThis package needs 4 new environment variables:\n\n```\nBRICKLINK_CONSUMER_KEY=\nBRICKLINK_CONSUMER_SECRET=\nBRICKLINK_TOKEN_VALUE=\nBIRCKLINK_TOKEN_SECRET=\n```\n\nYou can find the values for these in your Bricklink account.\n\n## Usage\nThis package takes care of the configuration of the API connection, so you can inject or resolve the repository classes directly in your Laravel application.\n\nExample 1: Inject category repository in your controller:\n```php\n\u003c?php\n\nnamespace App\\Http\\Controllers;\n\nuse Illuminate\\Contracts\\Support\\Renderable;\nuse Davesweb\\BricklinkApi\\Repositories\\CategoryRepository;\n\nclass CategoryController extends Controller\n{\n    public function index(CategoryRepository $repository): Renderable\n    {\n        $categories = $repository-\u003eindex();\n        \n        return view('categories.index', [\n            'categories' =\u003e $categories,\n        ]);\n    }\n}\n```\n\nExample 2: Inject a repository in your controller and use value objects and transformers:\n```php\n\u003c?php\n\nnamespace App\\Http\\Controllers;\n\nuse App\\Http\\Requests\\StoreCouponRequest;\nuse Illuminate\\Contracts\\Support\\Renderable;\nuse Davesweb\\BricklinkApi\\Repositories\\CouponRepository;\nuse Davesweb\\BrinklinkApi\\Transformers\\CouponTransformer;\n\nclass CouponController extends Controller\n{\n    public function store(StoreCouponRequest $request, CouponRepository $repository, CouponTransformer $transformer): Renderable\n    {\n        $coupon = $transformer-\u003etoObject($request-\u003evalidated());\n        \n        $newCoupon = $repository-\u003estore($coupon);\n        \n        return redirect()-\u003eback()-\u003ewith('success', 'Succesfully created the new coupon ' . $newCoupon-\u003ecouponId . '.');\n    }\n}\n```\n\nFor the documentation on how to use the repositories and value objects please refer to the [davesweb/bricklink-api](https://github.com/davesweb/bricklink-api) package.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavesweb%2Flaravel-bricklink-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdavesweb%2Flaravel-bricklink-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavesweb%2Flaravel-bricklink-api/lists"}