{"id":37010095,"url":"https://github.com/kudobuzz/laravel-bigcommerce-1","last_synced_at":"2026-01-14T00:58:53.106Z","repository":{"id":57009735,"uuid":"186605139","full_name":"kudobuzz/laravel-bigcommerce-1","owner":"kudobuzz","description":"Laravel Bigcommerce","archived":false,"fork":true,"pushed_at":"2019-11-05T13:52:22.000Z","size":24,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-08T10:37:22.388Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"oseintow/laravel-bigcommerce","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kudobuzz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-05-14T11:06:33.000Z","updated_at":"2019-11-05T13:53:25.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/kudobuzz/laravel-bigcommerce-1","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kudobuzz/laravel-bigcommerce-1","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kudobuzz%2Flaravel-bigcommerce-1","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kudobuzz%2Flaravel-bigcommerce-1/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kudobuzz%2Flaravel-bigcommerce-1/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kudobuzz%2Flaravel-bigcommerce-1/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kudobuzz","download_url":"https://codeload.github.com/kudobuzz/laravel-bigcommerce-1/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kudobuzz%2Flaravel-bigcommerce-1/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28407627,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T00:40:43.272Z","status":"ssl_error","status_checked_at":"2026-01-14T00:40:42.636Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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-14T00:58:45.689Z","updated_at":"2026-01-14T00:58:53.075Z","avatar_url":"https://github.com/kudobuzz.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Laravel Bigcommerce\n\nLaravel Bigcommerce is a simple package which helps to build robust integration into bigcommerce.\nThis package support the Version 2 and 3 of the Bigcommerce Api.\n\n## Installation\n\nAdd package to composer.json\n\n    composer require kudobuzz/laravel-bigcommerce\n\nAdd the service provider to config/app.php in the providers array.\n\n```php5\n\u003c?php\n\n'providers' =\u003e [\n    ...\n    Kudobuzz\\Bigcommerce\\BigcommerceServiceProvider::class,\n],\n```\n\nSetup alias for the Facade\n\n```php5\n\u003c?php\n\n'aliases' =\u003e [\n    ...\n    'Bigcommerce' =\u003e Kudobuzz\\Bigcommerce\\Facades\\Bigcommerce::class,\n],\n```\n\n## Configuration\n\nLaravel Bigcommerce requires connection configuration. You will need to publish vendor assets\n\n    php artisan vendor:publish\n\nThis will create a bigcommerce.php file in the config directory. You will need to set your **auth** keys\n\n#### OAUTH\n\nSet **CLIENT ID** , **CLIENT SECRET** AND **REDIRECT URL**\n\n#### BasicAuth\n\nSet **API_KEY** , **USERNAME** AND **STORE URL**\n\nLet's retrieve access token\n\n```php5\nRoute::get(\"process_oauth_result\",function(\\Illuminate\\Http\\Request $request)\n{\n    $response = Bigcommerce::getAccessToken($request-\u003ecode, $request-\u003escope, $request-\u003econtext));\n\n    dd($response);\n});\n```\n\n## Usage\n\nThere are 2 ways to access resource from bigcommerce using this package.\n\n1. Using the http verbs(ie. this gives you more flexibility and also support api v3 and also returns laravel collection)\n2. Using Bigcommerce Collection (this does not support api v3 and laravel collection).\n\nBy default the package support **API v3**\n\nTo set it to version 2 or 3 use\n\n```php5\nBigcommerce::setApiVersion('v2');\n```\n\nor\n\n```php5\nBigcommerce::setApiVersion('v3');\n```\n\n## Using Http verbs\n\n```php5\nBigcommerce::get(\"resource uri\",[\"query string params\"]);\nBigcommerce::post(\"resource uri\",[\"post body\"]);\nBigcommerce::put(\"resource uri\",[\"put body\"]);\nBigcommerce::delete(\"resource uri\");\n```\n\nLet use our access token to get products from bigcommerce.\n\n**NB:** You can use this to access any resource on bigcommerce (be it Products, Shops, Orders, etc).\nAnd also you dont need store hash and access token when using basic auth.\n\n```php5\n$storeHash = \"ecswer\";\n$accessToken = \"xxxxxxxxxxxxxxxxxxxxx\";\n$products = Bigcommerce::setStoreHash($storeHash)-\u003esetAccessToken($accessToken)-\u003eget(\"products\");\n```\n\nTo pass query params\n\n```php5\n// returns Collection\n$bigcommerce = Bigcommerce::setStoreHash($storeHash)-\u003esetAccessToken($accessToken);\n$products = $bigcommerce-\u003eget(\"admin/products.json\", [\"limit\"=\u003e20, \"page\" =\u003e 1]);\n```\n\n## Controller Example\n\nIf you prefer to use dependency injection over facades like me, then you can inject the Class:\n\n```php5\nuse Illuminate\\Http\\Request;\nuse Kudobuzz\\Bigcommerce\\Bigcommerce;\n\nclass Foo\n{\n    protected $bigcommerce;\n\n    public function __construct(Bigcommerce $bigcommerce)\n    {\n        $this-\u003ebigcommerce = $bigcommerce;\n    }\n\n    /*\n    * returns Collection\n    */\n    public function getProducts(Request $request)\n    {\n        $products = $this-\u003ebigcommerce-\u003esetStoreHash($storeHash)\n            -\u003esetAccessToken($accessToken)\n            -\u003eget('products');\n\n        $products-\u003eeach(function($product){\n             \\Log::info($product-\u003etitle);\n        });\n    }\n}\n```\n\n## Miscellaneous\n\nTo get Response headers\n\n```php5\nBigcommerce::getHeaders();\n```\n\nTo get specific header\n```php5\nBigcommerce::getHeader(\"Content-Type\");\n```\n\nTo get response status code or status message\n```php5\nBigcommerce::getStatus(); // 200\n```\n\n## Using Bigcommerce Collection\n\n#### Testing Configuration\n\nUse code below To test if configuration is correct. Returns false if unsuccessful otherwise return DateTime Object.\n\n```php5\n$time = Bigcommerce::getTime();\n```\n\n### Accessing Resources\n```php5\n//  oauth\n$storeHash = \"afw2w\";\n$accessToken = \"xxxxxxxxxxxxxxxxxxxxx\";\n$products = Bigcommerce::setStoreHash($storeHash)-\u003esetAccessToken($accessToken)-\u003egetProducts();\n\n//Basic Auth\n$products = Bigcommerce::getProducts();\n```\n\n\n## Paging and Filtering\n\nAll the default collection methods support paging, by passing the page number to the method as an integer:\n\n$products = Bigcommerce::getProducts(3);\n\nIf you require more specific numbering and paging, you can explicitly specify a limit parameter:\n\n```php5\n$filter = array(\"page\" =\u003e 3, \"limit\" =\u003e 30);\n\n$products = Bigcommerce::getProducts($filter);\n```\n\nTo filter a collection, you can also pass parameters to filter by as key-value pairs:\n\n```php5\n$filter = array(\"is_featured\" =\u003e true);\n\n$featured = Bigcommerce::getProducts($filter);\n```\n\nSee the API documentation for each resource for a list of supported filter parameters.\n\nUpdating existing resources (PUT)\n\nTo update a single resource:\n\n```php5\n$product = Bigcommerce::getProduct(11);\n\n$product-\u003ename = \"MacBook Air\";\n$product-\u003eprice = 99.95;\n$product-\u003eupdate();\n```\n\nFor more info on the Bigcommerce Collection check [this](https://packagist.org/packages/bigcommerce/api)\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkudobuzz%2Flaravel-bigcommerce-1","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkudobuzz%2Flaravel-bigcommerce-1","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkudobuzz%2Flaravel-bigcommerce-1/lists"}