dennisdegreef/hp-officejet


PHP Implementation of an HP OfficeJet J6400-series scanner, to scan in an automated way

License: MIT

Language: PHP


dennisdegreef/hp-officejet

This library automates the HP OfficeJet J6400-series Web Scanning.

Usage

<?php

require_once 'vendor/autoload.php';

$guzzle = new GuzzleHttp\Client([
    'base_uri' => 'http://192.168.0.2/', // IP or hostname of the OfficeJet
]);
$httpClient = new \Link0\Hp\OfficeJet\HttpClient\GuzzleHttpClient($guzzle);
$scanner = new \Link0\Hp\OfficeJet\Scanner($httpClient);

$bytesWritten = file_put_contents('preview.jpg', $scanner->scanPreview());
var_dump($bytesWritten);

$bytesWritten = file_put_contents('scan.jpg', $scanner->scan());
var_dump($bytesWritten);

License

MIT

Project Statistics

Sourcerank 3
Repository Size 2.93 KB
Stars 2
Forks 0
Watchers 1
Open issues 0
Dependencies 1
Contributors 1
Tags 0
Created
Last updated
Last pushed

Top Contributors See all

Dennis de Greef

Something wrong with this page? Make a suggestion

Last synced: 2016-11-15 14:50:22 UTC

Login to resync this repository