Skip to content

Commit ab14c03

Browse files
authored
chore: upgrade to v1 (#1)
1 parent 55aaebe commit ab14c03

3 files changed

Lines changed: 151 additions & 14 deletions

File tree

‎composer.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
"type": "project",
55
"license": "MIT",
66
"require": {
7-
"featurevisor/featurevisor-php": "^0.0.3"
7+
"featurevisor/featurevisor-php": "^1.0"
88
}
99
}

‎composer.lock‎

Lines changed: 148 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎src/index.php‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22

33
require_once __DIR__ . '/../vendor/autoload.php';
44

5-
use function Featurevisor\createInstance;
5+
use Featurevisor\Featurevisor;
66

77
// fetch datafile
88
$DATAFILE_URL = "https://featurevisor-example-cloudflare.pages.dev/production/featurevisor-tag-all.json";
99
$datafileContent = json_decode(file_get_contents($DATAFILE_URL), true);
1010

1111
// create instance
12-
$f = createInstance([
12+
$f = Featurevisor::createFeaturevisor([
1313
"datafile" => $datafileContent,
1414
]);
1515

0 commit comments

Comments
 (0)