Skip to content

Commit

Permalink
Merge branch 'dsdolzhenko-master' into composer-support
Browse files Browse the repository at this point in the history
Conflicts:
	kladr.php
  • Loading branch information
Iliya Garakh committed Jul 22, 2015
2 parents 03769ab + 3268501 commit 3e0a9c1
Show file tree
Hide file tree
Showing 12 changed files with 387 additions and 347 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.idea/
vendor/
composer.phar
21 changes: 21 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"name": "garakh/kladrapi-php",
"description": "PHP API for http://kladr-api.ru",
"type": "library",
"authors": [
{
"name": "Iliya Garakh",
"email": "[email protected]"
},
{
"name": "Alexandr Yakovlev",
"email": "[email protected]"
}
],
"autoload": {
"psr-4": {
"Kladr\\": "src/"
}
},
"require": {}
}
3 changes: 2 additions & 1 deletion examples/search_by_zip.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?
include '../kladr.php';

require __DIR__ . '/../vendor/autoload.php';

// Инициализация api, в качестве параметров указываем токен и ключ для доступа к сервису
$api = new Kladr\Api('51dfe5d42fb2b43e3300006e', '86a2c2a06f1b2451a87d05512cc2c3edfdf41969');
Expand Down
3 changes: 2 additions & 1 deletion examples/search_objects.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?php
include '../kladr.php';

require __DIR__ . '/../vendor/autoload.php';

use Kladr\Api;
use Kladr\Query;
Expand Down
3 changes: 2 additions & 1 deletion examples/search_one_string.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?
include '../kladr.php';

require __DIR__ . '/../vendor/autoload.php';

// Инициализация api, в качестве параметров указываем токен и ключ для доступа к сервису
$api = new Kladr\Api('51dfe5d42fb2b43e3300006e', '86a2c2a06f1b2451a87d05512cc2c3edfdf41969');
Expand Down
3 changes: 2 additions & 1 deletion examples/search_streets.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?
include '../kladr.php';

require __DIR__ . '/../vendor/autoload.php';

// Инициализация api, в качестве параметров указываем токен и ключ для доступа к сервису
$api = new Kladr\Api('51dfe5d42fb2b43e3300006e', '86a2c2a06f1b2451a87d05512cc2c3edfdf41969');
Expand Down
3 changes: 2 additions & 1 deletion examples/simple.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?php
include '../kladr.php';

require __DIR__ . '/../vendor/autoload.php';

$api = new Kladr\Api('51dfe5d42fb2b43e3300006e', '86a2c2a06f1b2451a87d05512cc2c3edfdf41969');

Expand Down
Loading

0 comments on commit 3e0a9c1

Please sign in to comment.