{"id":18035732,"url":"https://github.com/codexshaper/laravel-woocommerce","last_synced_at":"2025-04-12T21:19:42.556Z","repository":{"id":34570785,"uuid":"180436811","full_name":"Codexshaper/laravel-woocommerce","owner":"Codexshaper","description":"WooCommerce Rest API for Laravel","archived":false,"fork":false,"pushed_at":"2024-03-05T11:56:36.000Z","size":137,"stargazers_count":201,"open_issues_count":52,"forks_count":61,"subscribers_count":14,"default_branch":"master","last_synced_at":"2025-04-04T00:48:50.814Z","etag":null,"topics":["api","laravel","laravel-woocommerce","rest-api","woocommerce","woocommerce-api","wordpress"],"latest_commit_sha":null,"homepage":"","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/Codexshaper.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-04-09T19:35:22.000Z","updated_at":"2025-03-26T19:02:10.000Z","dependencies_parsed_at":"2024-03-05T12:54:42.456Z","dependency_job_id":null,"html_url":"https://github.com/Codexshaper/laravel-woocommerce","commit_stats":{"total_commits":126,"total_committers":10,"mean_commits":12.6,"dds":0.6111111111111112,"last_synced_commit":"b54d809b4d4299d21ecd561a3e1c398055334986"},"previous_names":[],"tags_count":32,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Codexshaper%2Flaravel-woocommerce","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Codexshaper%2Flaravel-woocommerce/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Codexshaper%2Flaravel-woocommerce/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Codexshaper%2Flaravel-woocommerce/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Codexshaper","download_url":"https://codeload.github.com/Codexshaper/laravel-woocommerce/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248632089,"owners_count":21136624,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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","laravel","laravel-woocommerce","rest-api","woocommerce","woocommerce-api","wordpress"],"created_at":"2024-10-30T12:09:22.884Z","updated_at":"2025-04-12T21:19:42.531Z","avatar_url":"https://github.com/Codexshaper.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![License](http://img.shields.io/:license-mit-blue.svg?style=flat-square)](http://badges.mit-license.org)\r\n[![Build Status](https://travis-ci.org/Codexshaper/laravel-woocommerce.svg?branch=master)](https://travis-ci.org/Codexshaper/laravel-woocommerce)\r\n[![StyleCI](https://github.styleci.io/repos/180436811/shield?branch=master)](https://github.styleci.io/repos/180436811)\r\n[![Quality Score](https://img.shields.io/scrutinizer/g/Codexshaper/laravel-woocommerce.svg?style=flat-square)](https://scrutinizer-ci.com/g/Codexshaper/laravel-woocommerce)\r\n[![Downloads](https://poser.pugx.org/Codexshaper/laravel-woocommerce/d/total.svg)](https://packagist.org/packages/Codexshaper/laravel-woocommerce)\r\n[![Latest Version on Packagist](https://img.shields.io/packagist/v/Codexshaper/laravel-woocommerce.svg?style=flat-square)](https://packagist.org/packages/Codexshaper/laravel-woocommerce)\r\n\r\n# Description\r\nWooCommerce Rest API for Laravel. You can Get, Create, Update and Delete your woocommerce product using this package easily.\r\n\r\n[Documentation](https://codexshaper.github.io/docs/laravel-woocommerce/)\r\n\r\n## Authors\r\n\r\n* **Md Abu Ahsan Basir** - [github](https://github.com/maab16)\r\n\r\n## License\r\n\r\n- **[MIT license](http://opensource.org/licenses/mit-license.php)**\r\n- Copyright 2020 © \u003ca href=\"https://github.com/Codexshaper/laravel-woocommerce/blob/master/LICENSE\" target=\"_blank\"\u003eCodexShaper\u003c/a\u003e.\r\n\r\n# Eloquent Style for Product, Customer and Order\r\n\r\n```\r\n// Where passing multiple parameters\r\n$products = Product::where('title','hello')-\u003eget();\r\nOR\r\n// You can call field with where clause\r\n$products = Product::whereTitle('hello')-\u003eget();\r\n// Fields name are more than one words or seperate by underscore (_). For example field name is `min_price`\r\n$products = Product::whereMinPrice(5)-\u003eget();\r\n\r\n// Where passing an array\r\n$orders = Order::where(['status' =\u003e 'processing']);\r\n$orders = Order::where(['status' =\u003e 'processing', 'orderby' =\u003e 'id', 'order' =\u003e 'asc'])-\u003eget();\r\n\r\n// Set Options\r\n$orders = Order::options(['status' =\u003e 'processing', 'orderby' =\u003e 'id', 'order' =\u003e 'asc'])-\u003eget();\r\n\r\n// You can set options by passing an array when call `all` method\r\n$orders = Order::all(['status' =\u003e 'processing', 'orderby' =\u003e 'id', 'order' =\u003e 'asc']);\r\n```\r\n#Product Options: https://woocommerce.github.io/woocommerce-rest-api-docs/#products\r\n\r\n#Customer Options: https://woocommerce.github.io/woocommerce-rest-api-docs/#customers\r\n\r\n#Order Options: https://woocommerce.github.io/woocommerce-rest-api-docs/#orders\r\n\r\n# You can also use ```WooCommerce``` Facade\r\n\r\n```\r\nuse Codexshaper\\WooCommerce\\Facades\\WooCommerce;\r\n\r\npublic function products()\r\n{\r\n  return WooCommerce::all('products');\r\n}\r\n\r\npublic function product( Request $request )\r\n{\r\n  $product = WooCommerce::find('products/'.$request-\u003eid);\r\n}\r\n\r\npublic function orders()\r\n{\r\n  return WooCommerce::all('orders');\r\n}\r\n\r\npublic function order( Request $request )\r\n{\r\n  $order = WooCommerce::all('orders/'.$request-\u003eid);\r\n}\r\n\r\npublic function customers()\r\n{\r\n  return WooCommerce::all('customers');\r\n}\r\n\r\npublic function customer( Request $request )\r\n{\r\n  $customer = WooCommerce::all('customers/'.$request-\u003eid);\r\n}\r\n```\r\n\r\n# Use Facade Alias\r\n\r\n```\r\nuse WooCommerce // Same as use Codexshaper\\WooCommerce\\Facades\\WooCommerce;\r\nuse Customer // Same as use Codexshaper\\WooCommerce\\Models\\Customer;\r\nuse Order // Same as use Codexshaper\\WooCommerce\\Models\\Order;\r\nuse Product // Same as Codexshaper\\WooCommerce\\Models\\Product;\r\n```\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodexshaper%2Flaravel-woocommerce","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodexshaper%2Flaravel-woocommerce","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodexshaper%2Flaravel-woocommerce/lists"}