{"id":37236749,"url":"https://github.com/hexboy/laravel-woocommerce-api-client","last_synced_at":"2026-01-16T04:53:40.888Z","repository":{"id":56984006,"uuid":"182828385","full_name":"hexboy/laravel-woocommerce-api-client","owner":"hexboy","description":"Laravel wrapper for the Woocommerce REST API","archived":false,"fork":false,"pushed_at":"2019-04-28T16:40:27.000Z","size":19,"stargazers_count":4,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-09T13:16:46.596Z","etag":null,"topics":["api-client","eccomerce","laravel","reset","woocommerce","wordpress"],"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/hexboy.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-04-22T16:43:52.000Z","updated_at":"2022-03-08T06:14:50.000Z","dependencies_parsed_at":"2022-08-21T11:50:52.050Z","dependency_job_id":null,"html_url":"https://github.com/hexboy/laravel-woocommerce-api-client","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/hexboy/laravel-woocommerce-api-client","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hexboy%2Flaravel-woocommerce-api-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hexboy%2Flaravel-woocommerce-api-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hexboy%2Flaravel-woocommerce-api-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hexboy%2Flaravel-woocommerce-api-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hexboy","download_url":"https://codeload.github.com/hexboy/laravel-woocommerce-api-client/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hexboy%2Flaravel-woocommerce-api-client/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28420814,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T10:47:48.104Z","status":"ssl_error","status_checked_at":"2026-01-14T10:46:19.031Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["api-client","eccomerce","laravel","reset","woocommerce","wordpress"],"created_at":"2026-01-15T04:16:58.166Z","updated_at":"2026-01-15T04:16:58.854Z","avatar_url":"https://github.com/hexboy.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Laravel 5 WooCommerce API Client\n\nA simple Laravel 5 wrapper for the [official WooCommerce REST API PHP Library](https://github.com/woothemes/wc-api-php) from Automattic.\n\n## Installation\n\n### Step 1: Install Through Composer\n\nFor API Version v3, WooCommerce 3.0+, Wordpress 4.4+, php 7.0+, Laravel 5.5+ use the v3.x branch\n``` bash\ncomposer require hexboy/laravel-woocommerce-api-client ^2.0\n```\n\n### Step 2: Publish configuration\n``` bash\nphp artisan vendor:publish --provider=\"Hexboy\\Woocommerce\\WoocommerceServiceProvider\"\n```\n\n### Step 3: Customize configuration\nYou can directly edit the configuration in `config/woocommerce.php` or copy these values to your `.env` file.\n```php\nWOOCOMMERCE_STORE_URL=http://example.org\nWOOCOMMERCE_VERIFY_SSL=false\nWOOCOMMERCE_VERSION=v3\nWOOCOMMERCE_WP_API=true\nWOOCOMMERCE_AUTH_TYPE=JWT\nWOOCOMMERCE_WP_TIMEOUT=15\n```\n\n## Examples\n\n### Get the index of all available endpoints\n```php\nuse Woocommerce;\n\nreturn Woocommerce::get('');\n```\n\n### View all orders\n```php\nuse Woocommerce;\n\nreturn Woocommerce::get('orders');\n```\n\n### View all completed orders created after a specific date\n`after` needs to be a ISO-8601 compliant date!≠\n\n```php\nuse Woocommerce;\n\n$data = [\n    'status' =\u003e 'completed',\n    'after' =\u003e '2019-01-14T00:00:00'\n    ]\n];\n\n$result = Woocommerce::get('orders', $data);\n\nforeach($result['orders'] as $order)\n{\n    // do something with $order\n}\n\n// you can also use array access\n$orders = Woocommerce::get('orders', $data)['orders'];\n\nforeach($orders as $order)\n{\n    // do something with $order\n}\n```\n\n### Update a product\n```php\nuse Woocommerce;\n\n$data = [\n    'product' =\u003e [\n        'title' =\u003e 'Updated title'\n    ]\n];\n\nreturn Woocommerce::put('products/1', $data);\n```\n\n### Pagination\nSo you don't have to mess around with the request and response header and the calculations this wrapper will do all the heavy lifting for you.\n(WC 2.6.x or later, WP 4.4 or later) \n\n## Laravel LengthAwarePaginator\n```php\nuse Woocommerce;\n\n$params = [\n    'per_page' =\u003e 25, \n    'page' =\u003e 5\n];\n\n// or\n\n$params = [];\n\n$products = Woocommerce::get('products', $params, true);\n$products-\u003ewithPath('custom/url');\nreturn $products;\n```\n\n## raw pagination data\n```php\nuse Woocommerce;\n\n// assuming we have 474 orders in pur result\n// we will request page 5 with 25 results per page\n$params = [\n    'per_page' =\u003e 25,\n    'page' =\u003e 5\n];\n\nWoocommerce::get('orders', $params);\n```\n\n### HTTP Request \u0026 Response (Headers)\n\n```php\nuse Woocommerce;\n\n// first send a request\nWoocommerce::get('orders');\n\n// get the request\nWoocommerce::getRequest();\n\n// get the response headers\nWoocommerce::getResponse();\n\n// get the total number of results\nWoocommerce::getResponse()-\u003egetHeaders()['X-WP-Total']\n```\n\n\n### More Examples\nRefer to [WooCommerce REST API Documentation](https://woocommerce.github.io/woocommerce-rest-api-docs) for more examples and documention.\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhexboy%2Flaravel-woocommerce-api-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhexboy%2Flaravel-woocommerce-api-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhexboy%2Flaravel-woocommerce-api-client/lists"}