{"id":36399023,"url":"https://github.com/lsv/food-market-integration-wrapper","last_synced_at":"2026-01-11T16:01:44.158Z","repository":{"id":45857820,"uuid":"422271027","full_name":"lsv/food-market-integration-wrapper","owner":"lsv","description":null,"archived":false,"fork":false,"pushed_at":"2021-12-01T14:45:11.000Z","size":91,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-08T10:38:06.219Z","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/lsv.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-10-28T16:09:07.000Z","updated_at":"2021-12-01T14:44:03.000Z","dependencies_parsed_at":"2022-07-22T11:02:50.426Z","dependency_job_id":null,"html_url":"https://github.com/lsv/food-market-integration-wrapper","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/lsv/food-market-integration-wrapper","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lsv%2Ffood-market-integration-wrapper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lsv%2Ffood-market-integration-wrapper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lsv%2Ffood-market-integration-wrapper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lsv%2Ffood-market-integration-wrapper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lsv","download_url":"https://codeload.github.com/lsv/food-market-integration-wrapper/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lsv%2Ffood-market-integration-wrapper/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28312133,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-11T14:58:17.114Z","status":"ssl_error","status_checked_at":"2026-01-11T14:55:53.580Z","response_time":60,"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-11T16:01:21.040Z","updated_at":"2026-01-11T16:01:44.117Z","avatar_url":"https://github.com/lsv.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Sinqro Food Market wrapper\n--------------------------\n\nPHP wrapper for [sinqro food market integration](https://developer.sinqro.com/en-es/cases/food_market_integration)\n\n## Install and basic usage\n\nInstall with composer, requires PHP \u003e8.0\n\n```bash\ncomposer require lsv/food-market-integration-wrapper\n\n# Add a PSR 18 client, fx\ncomposer require symfony/http-client\n# If you add another PSR18 client, then look below on how to use other PSR 18 clients\n```\n\nAuthenticate usage\n\n```php\nuse Lsv\\FoodMarketIntegration\\Authenticate;\nuse Lsv\\FoodMarketIntegration\\Request;\n\n$userAccessToken = 'your user access token';\n$serverAccessToken = 'your server access token';\n$authenticate = new Authenticate($userAccessToken, $serverAccessToken);\nRequest\\AbstractRequest::setAuthentication($authenticate);\n// Your requests\n```\n\nAnd basic usage, to fetch an order\n\n```php\nuse Lsv\\FoodMarketIntegration\\Request;\n\n$marketCodeIdentifier = 'your market code identifier';\n$marketOrderIdentifier = 'order id';\n\n$request = new Request\\GetOrder($marketCodeIdentifier, $marketOrderIdentifier);\n$response = $request-\u003erequest();\n# Response is now an object of Response\\Order\n```\n\nFor more usages, see below.\n\n## Usage\n\n#### Authenticate\n\n[Authenticate](docs/authenticate.md)\n\n#### Order requests\n\n| Request | Description | Response |\n| --- | --- | --- |\n| [CancelOrder](docs/request/CancelOrder.md) | Cancel a order | [Order](docs/response/Order.md) |\n| [GetOrder](docs/request/GetOrder.md) | Get order by identifier | [Order](docs/response/Order.md) |\n| [GetOrderStatus](docs/request/GetOrderStatus.md) | Get consumer order current status | [OrderStatus](docs/response/OrderStatus.md) |\n| [PostOrder](docs/request/PostOrder.md) | Create new order | [Order](docs/response/Order.md) |\n\n#### Selling point requests\n\n| Request | Description | Response |\n| --- | --- | --- |\n| [GetMarketSellingPoint](docs/request/GetMarketSellingPoint.md) | Get market selling point by id | [SellingPoint](docs/response/SellingPoint.md) |\n| [GetMarketSellingPoints](docs/request/GetMarketSellingPoints.md) | Get all market selling points | array of [SellingPoint](docs/response/SellingPoint.md) |\n| [GetSellingPointAvailability](docs/request/GetSellingPointAvailability.md) | Return information about selling point services | [SellingPointAvailability](docs/response/SellingPointAvailability.md) |\n| [GetSellingPointClosingExceptions](docs/request/GetSellingPointClosingExceptions.md) | Get selling point next closing exceptions | array of [SellingPointException](docs/response/SellingPointException.md) |\n| [GetSellingPointMenus](docs/request/GetSellingPointMenus.md) | Get menus | array of [Menu](docs/response/Menu.md) |\n| [GetSellingPointMenusAvailability](docs/request/GetSellingPointMenusAvailability.md) | Get menus with availability | array of [Menu](docs/response/Menu.md) |\n| [GetSellingPointZonesAndTables](docs/request/GetSellingPointZonesAndTables.md) | Get all the restaurant zones and tables | [ServiceZone](docs/response/ServiceZone.md) |\n\n## Use another PSR18 HTTP Client\n\nIf you dont want to use symfony/http-client implementation, you can easily change it to another one.\n\nYou can use a http client from [this list](https://packagist.org/providers/psr/http-client-implementation) - These are all PSR18 http client implementations.\n\n```php\nuse Lsv\\FoodMarketIntegration\\Request;\n\n$client = $YourPSR18Client;\nRequest\\AbstractRequest::setHttpClient($client);\n// Your requests\n```\n\n## TODO\n\n* Easier to make the [websocket integration](https://developer.sinqro.com/en-us/notifications)\n\n## License\n\n[License](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flsv%2Ffood-market-integration-wrapper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flsv%2Ffood-market-integration-wrapper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flsv%2Ffood-market-integration-wrapper/lists"}