Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow install via composer #5

Merged
merged 7 commits into from
Sep 12, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ If you find a bug in the SDK, please let us know about it. However, before you c

- **Minimum requirements** - to use the SDK you must be using OWA core v1.7.0 or later as well as PHP 7+. We highly recommend having your PHP compiled with the cURL extension.

- **Install the SDK** - download a tarball of the latest release or check the code out from a branch in this Github repository. If you do pull the code from a branch, be sure ot run `composer update` in order to pull in all of the dependancies (Guzzle, etc.) that are required.
- **Install the SDK with composer** - composer require open-web-analytics/owa-php-sdk

- **User Guide** - reead the [user guide](https://github.com/Open-Web-Analytics/owa-php-sdk/wiki) in order to lear how to work wit hthe SDK.

Expand All @@ -30,10 +30,9 @@ If you find a bug in the SDK, please let us know about it. However, before you c
### Create a Tracker ###

```php
<?php require_once('owa-php-sdk/owa-autoloader.php');

$config = [
'instance_url' => 'http://your.domain.com/owa/'
'instance_url' => 'http://your.domain.com/owa/',
'cookie_domain' => 'your.domain.com'
];

$sdk = new OwaSdk\sdk($config);
Expand Down
7 changes: 6 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,10 @@
},
"require": {
"guzzlehttp/guzzle": "~6.0"
}
},
"autoload": {
"psr-4": {
"OwaSdk\\": "src/"
}
}
}
148 changes: 98 additions & 50 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading