All Projects → mapbuh → onvif-client-php

mapbuh / onvif-client-php

Licence: other
ONVIF PHP client

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to onvif-client-php

onvif-django-client
Django(Python) app to connect to onvif cameras (onvif django client)
Stars: ✭ 66 (+247.37%)
Mutual labels:  onvif, onvif-client, onvif-camera
onvif-viewer
Onvif Viewer capable of a rudimentary HMI/SCADA interface
Stars: ✭ 27 (+42.11%)
Mutual labels:  onvif, onvif-client
xsd-parser-rs
A xsd/wsdl => rust code generator written in rust
Stars: ✭ 45 (+136.84%)
Mutual labels:  onvif
wsdd
wsdd is Linux daemon for ONVIF WS-Discovery service (server side)
Stars: ✭ 41 (+115.79%)
Mutual labels:  onvif
v4l2onvif
ONVIF server for V4L2 Devices
Stars: ✭ 83 (+336.84%)
Mutual labels:  onvif
libONVIF
Yet another ONVIF library
Stars: ✭ 96 (+405.26%)
Mutual labels:  onvif
rrtsp client
Rust high level RTSP client
Stars: ✭ 12 (-36.84%)
Mutual labels:  onvif
onvif
full and enhanced onvif protocol stack in golang.
Stars: ✭ 251 (+1221.05%)
Mutual labels:  onvif
ONVIF-Java
A Java client library to discover, control and manage ONVIF-supported devices.
Stars: ✭ 94 (+394.74%)
Mutual labels:  onvif
onvif-discovery
C# .NetStandard 2.0 library to discover ONVIF compliant devices
Stars: ✭ 29 (+52.63%)
Mutual labels:  onvif
onvif-nvt
ONVIF library for NVT (Network Video Transmitter) devices.
Stars: ✭ 62 (+226.32%)
Mutual labels:  onvif

ONVIF client library classes

ONVIFDevicemgmt

The class uses slightly modified devicemgmt.wsdl where endpoint is defined and the reference to onvif.xsd is fixed. The endpoint is overwritten with the parameter but it is still needed

example:

include( 'inc/ONVIFDevicemgmt.inc.php' );
ini_set( 'default_socket_timeout', 1800 ); 
$wsdl    = 'http://localhost/WSDL/devicemgmt-mod.wsdl';
$service = 'http://192.168.0.1:888/onvif/device_service';
$username = 'username';
$password = 'password';
$client = new ONVIFDevicemgmt( $wsdl, $service, $username, $password);
try {
	$res = $client->get_network_interfaces();
	var_dump( $res );
} catch ( Exception $e ) {
	print "SOAP error occured\n";
	$res = $client->client->__getLastRequest();
	print "Last request:\n";
	print( $res . "\n" );
	$res = $client->client->__getLastResponse();
	print "Last response:\n";
	print( $res . "\n");
}

ONVIF PTZ client library class

The class uses slightly modified ptz.wsdl where endpoint is defined and the reference to onvif.xsd is fixed. The endpoint is overwritten with the parameter but it is still needed

include( 'inc/ONVIFPTZ.inc.php' );
ini_set( 'default_socket_timeout', 1800 ); 
$wsdl    = 'http://localhost/WSDL/ptz-mod.wsdl';
$service = 'http://192.168.0.1:888/onvif/device_service';
$username = 'username';
$password = 'password';
$client = new ONVIFPTZ( $wsdl, $service, $username, $password);
try {
	$client->response_dump( 'GetServiceCapabilities', $client->get_service_capabilities() );
	$client->response_dump( 'GetNodes', $client->get_nodes() );
	$client->response_dump( 'GetNode', $client->get_node('ptz0') );
	$client->response_dump( 'GetConfigurations', $client->get_configurations() );
	$client->response_dump( 'GetConfiguration', $client->get_configuration('ptzconf0') );
	$client->response_dump( 'GetConfigurationOptions', $client->get_configuration_options('ptzconf0') );
} catch ( Exception $e ) {
	print "SOAP error occured\n";
	$res = $client->client->__getLastRequest();
	print "Last request:\n";
	print( $res . "\n" );
	$res = $client->client->__getLastResponse();
	print "Last response:\n";
	print( $res . "\n");
}

ONVIF Media client library class

The class uses slightly modified media.wsdl where endpoint is defined and
the reference to onvif.xsd is fixed. The endpoint is overwritten with the
parameter but it is still needed

include( 'inc/ONVIFMedia.inc.php' );
ini_set( 'default_socket_timeout', 1800 ); 
$wsdl    = 'http://localhost/WSDL/media-mod.wsdl';
$service = 'http://192.168.0.1:888/onvif/device_service';
$username = 'username';
$password = 'password';
$client = new ONVIFMedia( $wsdl, $service, $username, $password);
try {
	$client->response_dump( 'GetProfiles', $client->get_profiles() );
} catch ( Exception $e ) {
	print "SOAP error occured\n";
	$res = $client->client->__getLastRequest();
	print "Last request:\n";
	print( $res . "\n" );
	$res = $client->client->__getLastResponse();
	print "Last response:\n";
	print( $res . "\n");
}
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].