File tree 4 files changed +8
-23
lines changed
4 files changed +8
-23
lines changed Original file line number Diff line number Diff line change 1
1
language : php
2
2
3
- # # Run on container environment
4
- sudo : false
3
+ git :
4
+ depth : 2
5
5
6
6
env :
7
7
- COMPOSER_DISABLE_XDEBUG_WARN=1
8
8
9
9
php :
10
- - 7.2
11
10
- 7.3
12
11
- 7.4
13
-
14
- before_install :
15
- - composer self-update
12
+ - 8.0
13
+ - nightly
16
14
17
15
install :
18
- - composer install --prefer-dist
16
+ - composer install --prefer-dist --no-interaction --optimize-autoloader --no-progress
19
17
20
18
script :
21
- - vendor/bin/php-cs-fixer fix --dry-run --diff --config=.php_cs
19
+ - vendor/bin/php-cs-fixer fix --dry-run --diff
22
20
- vendor/bin/phpunit --coverage-clover=coverage.clover
23
21
24
22
after_script :
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ Wrapper Nominatim API
2
2
================
3
3
4
4
[ ![ Latest Stable Version] ( https://poser.pugx.org/maxh/php-nominatim/v/stable )] ( https://packagist.org/packages/maxh/php-nominatim )
5
- [ ![ Build Status] ( https://travis-ci.org /maxhelias/php-nominatim.svg?branch=master )] ( https://travis-ci.org /maxhelias/php-nominatim )
5
+ [ ![ Build Status] ( https://travis-ci.com /maxhelias/php-nominatim.svg?branch=master )] ( https://travis-ci.com /maxhelias/php-nominatim )
6
6
[ ![ Scrutinizer Code Quality] ( https://scrutinizer-ci.com/g/maxhelias/php-nominatim/badges/quality-score.png?b=master )] ( https://scrutinizer-ci.com/g/maxhelias/php-nominatim/?branch=master )
7
7
[ ![ Total Downloads] ( https://poser.pugx.org/maxh/php-nominatim/downloads )] ( https://packagist.org/packages/maxh/php-nominatim )
8
8
[ ![ MIT licensed] ( https://img.shields.io/badge/license-MIT-blue.svg )] ( https://github.com/maxhelias/php-nominatim/blob/master/LICENSE )
Original file line number Diff line number Diff line change 14
14
}
15
15
],
16
16
"require" : {
17
- "php" : " >=7.2 " ,
17
+ "php" : " >=7.3 " ,
18
18
"ext-mbstring" : " *" ,
19
19
"guzzlehttp/guzzle" : " @stable"
20
20
},
Original file line number Diff line number Diff line change 11
11
12
12
require '../vendor/autoload.php ' ;
13
13
14
- use maxh \Nominatim \Consts ;
15
14
use maxh \Nominatim \Nominatim ;
16
15
17
16
//URL Server
34
33
echo 'URL : ' .$ url .$ details ->getPath ().'? ' .$ details ->getQueryString ()."\n" ;
35
34
36
35
var_dump ($ result );
37
-
38
- //Details by osm type and osm id
39
- $ details = $ instance ->newDetails ()
40
- ->osmId (Consts \OsmTypes::RELATIVE , 2555133 )
41
- ;
42
-
43
- $ result = $ instance ->find ($ details );
44
-
45
- echo "Details by osm type and osm id \n" ;
46
- echo 'URL : ' .$ url .$ details ->getPath ().'? ' .$ details ->getQueryString ()."\n" ;
47
-
48
- var_dump ($ result );
49
36
} catch (\maxh \Nominatim \Exceptions \InvalidParameterException $ e ) {
50
37
// If you set invalid parameter in instance
51
38
var_dump ($ e ->getMessage ());
You can’t perform that action at this time.
0 commit comments