2017 © Pedro Peláez
 

library onvif

Onvif IP camera library.

image

rockyjvec/onvif

Onvif IP camera library.

  • Monday, September 19, 2016
  • by rockyjvec
  • Repository
  • 1 Watchers
  • 4 Stars
  • 45 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 1 Versions
  • 7 % Grown

The README.md

Onvif IP Camera library for PHP

This library will be the basis of a Network Video Recorder (NVR) application I am writing in Laravel. It provides a php interface to Onvif compatible cameras. I have only tested it with the RLC-410., (*1)

It supports subscribing to motion events., (*2)

Installation

Pull in the package through Composer., (*3)

Run: composer require rockyjvec/onvif, (*4)

Usage

Device discovery:, (*5)

$r = Onvif::Discovery();
print_r($r);

You need to specify the endpoint, username, and password of the camera you want to connect to. Here is the basic code to get the capabilities of the camera:, (*6)

$o = new Rockyjvec\Onvif\Onvif("http://camera.hostname:8000/onvif/device_service", "username", "password");
var_dump($o->device->GetCapabilities());

The various services are available as properties of the Onvif class: $o->device, $o->media, $o->events, ..., (*7)

The capabilities are parsed when constructing the Onvif class and services are null if the camera doesn't have that capability, (*8)

For information about the available methods, etc. See "ONVIF WSDL and XML Schemas Specifications" section on this page: http://www.onvif.org/Documents/Specifications.aspx, (*9)

The Versions

19/09 2016

dev-master

9999999-dev

Onvif IP camera library.

  Sources   Download

MIT

The Requires

  • php >=5.4.0
  • ext-soap >=5.4.0

 

by Rocky Cardwell

soap camera onvif