Skip to content

Commit c23cade

Browse files
authored
Merge pull request #4 from dougchan-okta/master
Allow require by composer
2 parents a1c8201 + 78f4ea6 commit c23cade

File tree

2 files changed

+26
-1
lines changed

2 files changed

+26
-1
lines changed

composer.json

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"name": "flickerbox/marketo",
3+
"description": "A PHP client for the Marketo SOAP API",
4+
"type": "library",
5+
"license": "MIT",
6+
"authors": [
7+
{
8+
"name": "Ben Ubois",
9+
"email": "[email protected]"
10+
}
11+
],
12+
"autoload": {
13+
"psr-0": {
14+
"Flickerbox\\Marketo": "src/"
15+
}
16+
},
17+
"require": {}
18+
}

marketo.php renamed to src/Flickerbox/Marketo.php

+8-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
<?php
22

3+
namespace Flickerbox;
4+
5+
use \stdClass;
6+
use SoapClient;
7+
use SoapHeader;
8+
use Exception;
9+
310
// This is the annotated source for [marketo](http://github.com/flickerbox/marketo), a simple Marketo SOAP client.
411
class Marketo
512
{
@@ -25,7 +32,7 @@ public function __construct($user_id, $encryption_key, $soap_host)
2532

2633
$wsdl_url = $soap_end_point . '?WSDL';
2734

28-
$this->soap_client = new soapClient($wsdl_url, $options);
35+
$this->soap_client = new SoapClient($wsdl_url, $options);
2936
}
3037

3138
// Public: Get a lead record

0 commit comments

Comments
 (0)