2017 © Pedro Peláez
 

library wipotec-checkweigher-client

Wipotec checkweigher client written in PHP

image

graze/wipotec-checkweigher-client

Wipotec checkweigher client written in PHP

  • Thursday, April 26, 2018
  • by graze
  • Repository
  • 5 Watchers
  • 0 Stars
  • 1,081 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 77 % Grown

The README.md

Wipotec Checkweigher Client

Latest Version on Packagist Software License Build Status Coverage Status Quality Score Total Downloads, (*1)

Wipotec checkweigher client written in PHP., (*2)

Install

Via Composer, (*3)

``` bash $ composer require graze/wipotec-checkweigher-client, (*4)


## Usage ### Instantiating a client Use the `factory` method to return a `Client` instance: ```php $client = \Graze\WipotecCheckweigherClient\Client::factory(); ...

Sending requests

Connect to the remote checkweigher using the connect method:, (*5)

...
$dsn = '127.0.0.1:55001';
$client->connect($dsn);
...

Once connected, the sendRequest method can be used to send requests to the checkweigher:, (*6)

...
$request = new \Graze\WipotecCheckweigherClient\Request\RequestSetArticle();
$request->setArticleParam(Parameter::NAME, $articleName);
$request->setArticleParam(Parameter::NUMBER, $articleNumber);
$response = $client->sendRequest($request);
...

Responses

If a corresponding response class exists (in \Graze\Wipotec\Response\) for a request then it will be used, otherwise the ResponseGeneric will be returned., (*7)

All responses have the following methods:, (*8)

/**
 * Whether an error was returned.
 *
 * @return bool
 */
public function hasError();

/**
 * Get the error message. 
 *
 * @return string
 */
public function getError();

/**
 * Get the raw response as an array. 
 *
 * @return mixed[]
 */
public function getContents();

Change log

Please see CHANGELOG for more information what has changed recently., (*9)

Testing

make build test

Contributing

Please see CONTRIBUTING for details., (*10)

Security

If you discover any security related issues, please email security@graze.com instead of using the issue tracker., (*11)

Credits

License

The MIT License (MIT). Please see License File for more information., (*12)

The Versions

26/04 2018

dev-master

9999999-dev https://github.com/graze/wipotec-checkweigher-client

Wipotec checkweigher client written in PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

by Brendan Kay

graze wipotec checkweigher

26/04 2018
25/04 2018
20/03 2018
13/03 2018

v1.0.0

1.0.0.0 https://github.com/graze/wipotec-checkweigher-client

Wipotec checkweigher client written in PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

by Brendan Kay

graze wipotec checkweigher