2017 © Pedro Peláez
 

bundle verilocationsoapbundle

Symfony2 bundle for verilocation soap client

image

olegkhuss/verilocationsoapbundle

Symfony2 bundle for verilocation soap client

  • Wednesday, March 30, 2016
  • by olegkhuss
  • Repository
  • 0 Watchers
  • 0 Stars
  • 54 Installations
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

Sample usage

Include in composer.json

{
    .....
    "require": {
        "olegkhuss/verilocationsoapbundle": "~0.2@dev"
    }
}

config.yml

gelo_verilocation_soap:
    auto_logon: false
    username: <username>
    password: <password>
    wsdl: 'http://www.verilocation.com/gps/xml/version_001.asmx?wsdl'
# SoapClient options see http://php.net/manual/ru/soapclient.soapclient.php
#    options: ~ 

PHP code

<?php
// ...
public function indexAction(Request $request)
{
    $client = $this->get('gelo_verilocation_soap.client');
    try {
        $client->doLogon(
            $this->container->getParameter('gelo_verilocation_soap.client.username'),
            $this->container->getParameter('gelo_verilocation_soap.client.password')
        );

        // is webservice active?
        print_r($client->isWebserviceActive());
        // get all vehicles
        print_r($client->getVehicles());
        // get all vehicles extended
        print_r($client->getVehiclesExt());
        // get all latest positions
        print_r($client->getLocationsLatest());

    } catch (\Exception $e) {
        // could not login, check username/password
        throw $e;
    }
}

if auto_logon: true, avoid manual doLogon call

<?php

public function indexAction(Request $request)
{
    try {
        $client = $this->get('gelo_verilocation_soap.client');
        // is webservice active?
        print_r($client->isWebserviceActive());
        // ...

    } catch (\Exception $e) {
        // could not login, check username/password
        throw $e;
    }
}

The Versions

30/03 2016

dev-master

9999999-dev https://bitbucket.org/olegkhuss/verilocationsoap

Symfony2 bundle for verilocation soap client

  Sources   Download

MIT

The Requires

 

by Oleg Khussainov

30/03 2016

0.3.0

0.3.0.0 https://bitbucket.org/olegkhuss/verilocationsoap

Symfony2 bundle for verilocation soap client

  Sources   Download

MIT

The Requires

 

by Oleg Khussainov

19/11 2014

0.2.1

0.2.1.0 https://bitbucket.org/olegkhuss/verilocationsoap

Symfony2 bundle for verilocation soap client

  Sources   Download

MIT

The Requires

 

by Oleg Khussainov

19/11 2014

0.2.0

0.2.0.0 https://bitbucket.org/olegkhuss/verilocationsoap

Symfony2 bundle for verilocation soap client

  Sources   Download

MIT

The Requires

 

by Oleg Khussainov

19/11 2014

0.1.0

0.1.0.0 https://bitbucket.org/olegkhuss/verilocationsoap

Symfony2 bundle for verilocation soap client

  Sources   Download

MIT

The Requires

 

by Oleg Khussainov