-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTest.php
More file actions
44 lines (29 loc) · 815 Bytes
/
Test.php
File metadata and controls
44 lines (29 loc) · 815 Bytes
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
<?php
namespace Riddman\NovaPoshtaApi;
use Riddman\NovaPoshtaApi\NovaPoshta;
class Test
{
public static function getCities($key)
{
$cities = NovaPoshta::getCities($key);
foreach ($cities as $key => $item) {
dump($key);
}
dump(reset($cities['data']));
dump(reset($cities['info']));
}
public static function getDepartments($key)
{
$departments = NovaPoshta::getDepartments($key);
foreach ($departments as $key => $item) {
dump($key);
}
dump(reset($departments['data']));
dump('===============');
$departments = NovaPoshta::getDepartments($key, 5, 1);
foreach ($departments as $key => $item) {
dump($key);
}
dump($departments);
}
}