-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
Hi,
I'm making a website that uses swetest. I tried out your example of Composer, but it doesn't run okay.. My PHP version is 7.1.23. The following is my source code:
<?php
require_once 'vendor/autoload.php';
use DestinyLab\Swetest;
$swetest = new Swetest();
// ephemeris of Mercury (-p2) starting on 1 Dec 1900,
// 15 positions (-n15) in two-day steps (-s2)
// $swetest->query('-b5.1.2002 -p2 -house12.05,49.50,k -ut12:30')->execute();
$swetest->query('-b5.1.2002 -eswe -p123456789 -house12.05,49.50,k -ut12:30 +head')->execute();
// get response (status + output)
print_r($swetest->response());
// or just get status
print_r($swetest->getStatus());
// or just get output
print_r($swetest->getOutput());
// get last query
print_r($swetest->getLastQuery());
And the following is the output:
Array
(
[status] => 126
[output] => Array
(
[0] =>
)
)
126Array
(
[0] =>
)
***-***swetest -edir***-*** -b5.1.2002 -eswe -p123456789 -house12.05,49.50,k -ut12:30 +head
Metadata
Metadata
Assignees
Labels
No labels