https://github.com/wingify/vwo-php-sdk-example
Provides a basic demo of how server-side works with VWO PHP SDK
https://github.com/wingify/vwo-php-sdk-example
php php-sdk sdk-example server-side server-side-rendering vwo
Last synced: 2 months ago
JSON representation
Provides a basic demo of how server-side works with VWO PHP SDK
- Host: GitHub
- URL: https://github.com/wingify/vwo-php-sdk-example
- Owner: wingify
- License: apache-2.0
- Created: 2019-07-30T10:00:04.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-10-04T10:18:22.000Z (over 1 year ago)
- Last Synced: 2025-01-08T18:44:40.531Z (4 months ago)
- Topics: php, php-sdk, sdk-example, server-side, server-side-rendering, vwo
- Language: PHP
- Homepage: https://developers.vwo.com/docs/fullstack-overview
- Size: 42 KB
- Stars: 2
- Watchers: 20
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
## VWO PHP SDK Example
[vwo-php-sdk](https://github.com/wingify/vwo-php-sdk) allows you to A/B Test your Website at server-side.
This repository provides a basic demo of how server-side works with VWO PHP SDK.
### Requirements
- PHP 5.6.0 or later
### Documentation
Refer [VWO Official Server-side Documentation](https://developers.vwo.com/reference#fullstack-introduction)
### Scripts
1. Install dependencies
```
composer install
```2. Update configuration based on your setup inside `config.php`
```php
const ACCOUNT_ID = '';
const SDK_KEY = '';const AB_CAMPAIGN_KEY = '';
const AB_CAMPAIGN_GOAL_IDENTIFIER = '';const FEATURE_ROLLOUT_CAMPAIGN_KEY = '';
const FEATURE_TEST_CAMPAIGN_KEY = '';const TAG_KEY = '';
const TAG_VALUE = '';
```3. Run application
```
php -S localhost:1112 -t .//open url without setttings-file being cached
http://localhost:1112//open url with setttings-file being cached
http://localhost:1112?cache=1
```4. For development
```
composer run-script start
```## License
[Apache License, Version 2.0](https://github.com/wingify/vwo-php-sdk-example/blob/master/LICENSE)
Copyright 2019-2020 Wingify Software Pvt. Ltd.