Skip to content

Commit 18eb759

Browse files
author
Orkun
authored
feat: update php version for public consts & simplify docs (#42)
1 parent 12f10b2 commit 18eb759

File tree

6 files changed

+18
-18
lines changed

6 files changed

+18
-18
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ This PHP package is automatically generated by the [Swagger Codegen](https://git
3636

3737
## Requirements
3838

39-
PHP 5.5 and later
39+
PHP 7.1 and later
4040

4141
## Installation & Usage
4242
### Composer
@@ -86,14 +86,14 @@ Please follow the [installation procedure](#installation--usage) and then run th
8686
require_once(__DIR__ . '/vendor/autoload.php');
8787

8888
// Our Fingerprint API Secret
89-
define('FPJS_API_SECRET', getenv('FPJS_API_SECRET'));
89+
const FPJS_API_SECRET = "YOUR SECRET KEY COMES HERE";
9090
// A Request ID that made by a specific visitor
91-
define('FPJS_REQUEST_ID', getenv('FPJS_REQUEST_ID'));
91+
const FPJS_REQUEST_ID = "REQUEST ID"; // Change this value with your request id
9292
// A Visitor ID of a specific visitor
93-
define('FPJS_VISITOR_ID', getenv('FPJS_VISITOR_ID'));
93+
const FPJS_VISITOR_ID = "VISITOR ID"; // Change this value with your visitor id
9494

9595
// Linked id of the visit
96-
const FPJS_LINKED_ID = '12';
96+
const FPJS_LINKED_ID = "LINKED ID"; // Change this value with your linked id
9797
// How many items to fetch, while paginating
9898
const LIMIT = 10;
9999
// How many items to skip, while paginating

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
}
1818
],
1919
"require": {
20-
"php": ">=5.5",
20+
"php": ">=7.1",
2121
"ext-curl": "*",
2222
"ext-json": "*",
2323
"ext-mbstring": "*",

src/Configuration.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@
3838
*/
3939
class Configuration
4040
{
41-
const REGION_GLOBAL = "https://api.fpjs.io";
42-
const REGION_EUROPE = "https://eu.api.fpjs.io";
43-
const REGION_ASIA = "https://ap.api.fpjs.io";
41+
public const REGION_GLOBAL = "https://api.fpjs.io";
42+
public const REGION_EUROPE = "https://eu.api.fpjs.io";
43+
public const REGION_ASIA = "https://ap.api.fpjs.io";
4444
private static $defaultConfiguration;
4545

4646
/**

template/Configuration.mustache

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ namespace {{invokerPackage}};
2929
*/
3030
class Configuration
3131
{
32-
const REGION_GLOBAL = "https://api.fpjs.io";
33-
const REGION_EUROPE = "https://eu.api.fpjs.io";
34-
const REGION_ASIA = "https://ap.api.fpjs.io";
32+
public const REGION_GLOBAL = "https://api.fpjs.io";
33+
public const REGION_EUROPE = "https://eu.api.fpjs.io";
34+
public const REGION_ASIA = "https://ap.api.fpjs.io";
3535
private static $defaultConfiguration;
3636
3737
/**

template/README.mustache

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ This PHP package is automatically generated by the [Swagger Codegen](https://git
4646

4747
## Requirements
4848

49-
PHP 5.5 and later
49+
PHP 7.1 and later
5050

5151
## Installation & Usage
5252
### Composer
@@ -96,14 +96,14 @@ Please follow the [installation procedure](#installation--usage) and then run th
9696
require_once(__DIR__ . '/vendor/autoload.php');
9797

9898
// Our Fingerprint API Secret
99-
define('FPJS_API_SECRET', getenv('FPJS_API_SECRET'));
99+
const FPJS_API_SECRET = "YOUR SECRET KEY COMES HERE";
100100
// A Request ID that made by a specific visitor
101-
define('FPJS_REQUEST_ID', getenv('FPJS_REQUEST_ID'));
101+
const FPJS_REQUEST_ID = "REQUEST ID"; // Change this value with your request id
102102
// A Visitor ID of a specific visitor
103-
define('FPJS_VISITOR_ID', getenv('FPJS_VISITOR_ID'));
103+
const FPJS_VISITOR_ID = "VISITOR ID"; // Change this value with your visitor id
104104

105105
// Linked id of the visit
106-
const FPJS_LINKED_ID = '12';
106+
const FPJS_LINKED_ID = "LINKED ID"; // Change this value with your linked id
107107
// How many items to fetch, while paginating
108108
const LIMIT = 10;
109109
// How many items to skip, while paginating

template/composer.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
}
2020
],
2121
"require": {
22-
"php": ">=5.5",
22+
"php": ">=7.1",
2323
"ext-curl": "*",
2424
"ext-json": "*",
2525
"ext-mbstring": "*",

0 commit comments

Comments
 (0)