ready2order / r2o-api-client-php
PHP library for ready2order POS API v1
Installs: 3 150
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 4
Forks: 4
Open Issues: 0
Requires
- php: >=7.4
- ext-curl: *
- guzzlehttp/guzzle: ^7.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.16
- phpunit/phpunit: 9.0.*
- symfony/var-dumper: ^5.1
- vlucas/phpdotenv: ^5.0
Replaces
This package is auto-updated.
Last update: 2024-11-22 23:16:18 UTC
README
ready2order PHP API v1 is a PHP-wrapper for simply using ready2order API api.ready2order.com
Get started
- Make sure you register as a developer first here to obtain your "Developer Token"
- Use the developer token you received to request access to existing accounts to obtain the "Account Token"
- Use the "Account Token" for your API requests
Installation
You can install this package with composer
composer require ready2order/r2o-api-client-php
Examples
Fetch account information
use \ready2order\Client; $client = new Client('your-token'); print_r($client->get('company'));
Insert new product group with one product
use \ready2order\Client; $client = new Client('your-token'); // Insert a new productgroup $productGroup = $client->put('productgroups',array( "productgroup_name" => "Soft drinks" )); $this->assertArrayHasKey("productgroup_name",$productGroup); // Insert product $product = $client->put('products',array( "product_name" => "Cupcake", "product_price" => "5.2", "product_vat" => "20", "productgroup" => array( "productgroup_id" => $productGroup["productgroup_id"] ) ));