-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.php
49 lines (43 loc) · 1.38 KB
/
test.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<?php
require_once __DIR__ . '/vendor/autoload.php';
use FetchMeditation\SPADLanguage;
use FetchMeditation\SPADSettings;
use FetchMeditation\SPAD;
use FetchMeditation\JFTLanguage;
use FetchMeditation\JFTSettings;
use FetchMeditation\JFT;
//$settings = new JFTSettings(JFTLanguage::English);
//$jft = JFT::getInstance($settings);
//$entry = $jft->fetch();
//echo $entry->quote;
//foreach (JFTLanguage::cases() as $shape) {
// if ($shape->name == 'French') {
// // French server is really slow
// continue;
// }
// echo "\n\n-=-=-=-=-=-=-=-= JFT - $shape->name -=-=-=-=-=-=-=-=\n\n";
// $settings = new JFTSettings($shape);
// $jft = JFT::getInstance($settings);
// $entry = $jft->fetch();
// print_r($entry->quote);
// echo "-- " . $jft->getLanguage()->name;
//}
//
//foreach (SPADLanguage::cases() as $shape) {
// echo "\n\n-=-=-=-=-=-=-=-= SPAD - $shape->name -=-=-=-=-=-=-=-=\n\n";
// $settings = new SPADSettings($shape);
// $spad = SPAD::getInstance($settings);
// $entry = $spad->fetch();
// print_r($entry->quote);
// echo "-- " . $spad->getLanguage()->name;
//}
foreach (JFTLanguage::cases() as $shape) {
if ($shape->name == 'French') {
// French server is really slow
continue;
}
$settings = new JFTSettings($shape);
$jft = JFT::getInstance($settings);
$entry = $jft->fetch();
print_r($entry->toJson());
}