{"id":15018953,"url":"https://github.com/kusflo/prestashopwebservice","last_synced_at":"2025-10-24T01:30:17.877Z","repository":{"id":57010000,"uuid":"85561350","full_name":"kusflo/PrestaShopWebService","owner":"kusflo","description":"PHP wrapper for PrestaShop Web Services 1.7.x and 1.6.x","archived":false,"fork":false,"pushed_at":"2021-01-25T17:48:32.000Z","size":80,"stargazers_count":27,"open_issues_count":0,"forks_count":14,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-01-30T21:43:08.229Z","etag":null,"topics":["api","easy","erp","php","prestashop","prestashop-webservices","service","services","web","webservice","webservices","wrapper"],"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/kusflo.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":"2017-03-20T10:01:40.000Z","updated_at":"2024-01-29T15:47:24.000Z","dependencies_parsed_at":"2022-08-21T15:10:16.640Z","dependency_job_id":null,"html_url":"https://github.com/kusflo/PrestaShopWebService","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kusflo%2FPrestaShopWebService","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kusflo%2FPrestaShopWebService/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kusflo%2FPrestaShopWebService/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kusflo%2FPrestaShopWebService/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kusflo","download_url":"https://codeload.github.com/kusflo/PrestaShopWebService/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":237896625,"owners_count":19383555,"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","easy","erp","php","prestashop","prestashop-webservices","service","services","web","webservice","webservices","wrapper"],"created_at":"2024-09-24T19:52:39.789Z","updated_at":"2025-10-24T01:30:17.339Z","avatar_url":"https://github.com/kusflo.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n[![Actions Status](https://github.com/kusflo/PrestaShopWebService/workflows/Build%20and%20Tests/badge.svg)](https://github.com/kusflo/PrestaShopWebService/actions)\n[![Latest Stable Version](https://poser.pugx.org/kusflo/prestashop-webservice/v/stable)](https://packagist.org/packages/kusflo/prestashop-webservice)\n[![Total Downloads](https://poser.pugx.org/kusflo/prestashop-webservice/downloads)](https://packagist.org/packages/kusflo/prestashop-webservice)\n[![License](https://poser.pugx.org/kusflo/prestashop-webservice/license)](https://packagist.org/packages/kusflo/prestashop-webservice)\n\n\n# PrestashopWebService Easy\nPHP wrapper for PrestaShop Webservices 1.7.x and 1.6.x\n\n# Description\nThis wrapper allows you to download data from the prestashop store in a simple way. \nThe data is transformed to an associative array.\n\n# Installation\ncomposer require kusflo/prestashop-webservice\n\n# Example Usage\n\n```\nfunction listOrdersAll()\n{\n    try {\n        $o = new PShopWsOrders(_PS_SHOP_PATH, _PS_WS_AUTH_KEY);\n        $orders = $o-\u003egetList();\n    } catch (PShopWsException $e) {\n        echo $e-\u003egetMessage();\n    }\n}\n```\n```\nfunction listOrdersLastDays($days)\n{\n    try {\n        $o = new PShopWsOrders(_PS_SHOP_PATH, _PS_WS_AUTH_KEY);\n        $orders = $o-\u003egetListLastDays($days);\n    } catch (PShopWsException $e) {\n        echo $e-\u003egetMessage();\n    }\n}\n```\n```\nfunction listOrdersToday()\n{\n    try {\n        $o = new PShopWsOrders(_PS_SHOP_PATH, _PS_WS_AUTH_KEY);\n        $orders = $o-\u003egetListToday();\n    } catch (PShopWsException $e) {\n        echo $e-\u003egetMessage();\n    }\n}\n```\n```\nfunction getOrderById($id)\n{\n    try {\n        $o = new PShopWsOrders(_PS_SHOP_PATH, _PS_WS_AUTH_KEY);\n        $order = $o-\u003egetById($id);\n    } catch (PShopWsException $e) {\n        echo $e-\u003egetMessage();\n    }\n}\n```\n```\nfunction listProducts()\n{\n    try {\n        $p = new PShopWsProducts(_PS_SHOP_PATH, _PS_WS_AUTH_KEY);\n        $products = $p-\u003egetList();\n    } catch (PShopWsException $e) {\n        echo $e-\u003egetMessage();\n    }\n}\n```\n```\nfunction getProductById($id)\n{\n    try {\n        $p = new PShopWsProducts(_PS_SHOP_PATH, _PS_WS_AUTH_KEY);\n        $product = $p-\u003egetById($id);\n    } catch (PShopWsException $e) {\n        echo $e-\u003egetMessage();\n    }\n}\n```\n```\nfunction listCategories()\n{\n    try {\n        $p = new PShopWsCategories(_PS_SHOP_PATH, _PS_WS_AUTH_KEY);\n        $categories = $p-\u003egetList();\n    } catch (PShopWsException $e) {\n        echo $e-\u003egetMessage();\n    }\n}\n```\n```\nfunction getCategoryById($id)\n{\n    try {\n        $p = new PShopWsCategories(_PS_SHOP_PATH, _PS_WS_AUTH_KEY);\n        $category = $p-\u003egetById($id);\n    } catch (PShopWsException $e) {\n        echo $e-\u003egetMessage();\n    }\n}\n```\n```\nfunction listManufacturers()\n{\n    try {\n        $p = new PShopWsManufacturers(_PS_SHOP_PATH, _PS_WS_AUTH_KEY);\n        $manufacturers = $p-\u003egetList();\n    } catch (PShopWsException $e) {\n        echo $e-\u003egetMessage();\n    }\n}\n```\n```\nfunction getManufacturerById($id)\n{\n    try {\n        $p = new PShopWsManufacturers(_PS_SHOP_PATH, _PS_WS_AUTH_KEY);\n        $manufacturer = $p-\u003egetById($id);\n    } catch (PShopWsException $e) {\n        echo $e-\u003egetMessage();\n    }\n}\n```\n```\nfunction listCustomers()\n{\n    try {\n        $c = new PShopWsCustomers(_PS_SHOP_PATH, _PS_WS_AUTH_KEY);\n        $customers = $c-\u003egetList();\n    } catch (PShopWsException $e) {\n        echo $e-\u003egetMessage();\n    }\n}\n```\n```\nfunction getCustomerById($id)\n{\n    try {\n        $c = new PShopWsCustomers(_PS_SHOP_PATH, _PS_WS_AUTH_KEY);\n        $customer = $c-\u003egetById($id);\n    } catch (PShopWsException $e) {\n        echo $e-\u003egetMessage();\n    }\n}\n```\n```\nfunction listApiPermissionsToXml()\n{\n    try {\n        $c = new PShopWsCustomers(_PS_SHOP_PATH, _PS_WS_AUTH_KEY);\n        $permissions = $c-\u003egetApiPermissions();\n        echo '\u003cpre\u003e';\n        var_dump($permissions);\n    } catch (PShopWsException $e) {\n        echo $e-\u003egetMessage();\n    }\n}\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkusflo%2Fprestashopwebservice","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkusflo%2Fprestashopwebservice","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkusflo%2Fprestashopwebservice/lists"}