goosfraba/teryt-sdk
最新稳定版本:1.0.0
Composer 安装命令:
composer require goosfraba/teryt-sdk
包简介
The SDK for GUS TERYT API
README 文档
README
The library provides a wrapper for GUS TERYT SOAP API.
Installation
Recommended way of installation is via composer
composer require goosfraba/teryt-sdk
Usage
Create an instance of the API:
use Goosfraba\Teryt\Soap\TerytApiFactory; use Goosfraba\Teryt\Soap\Dsn; $factory = new TerytApiFactory(); $dsn = Dsn::prod("your-user", "your-pass"); // or $dsn = Dsn::test(); // public test credentials // or $dsn = Dsn::parse("gus+teryt://your-user:your-pass@prod"); // your production credentials $api = $factory->create($dsn);
Use API according to their documentation:
use Goosfraba\Teryt\TerytApi; /** @var TerytApi $api */ $catalogFile = $api->PobierzKatalogSIMCAdr(); // downloads the SIMC catalogue in address version $fileObject = $catalogFile->dump(); // Dumps the catalogue content into a file \SplFileObject
Supported functions
For know the SDK supports the following functions:
- CzyZalogowany
- PobierzDateAktualnegoKatTerc
- PobierzDateAktualnegoKatNTS
- PobierzDateAktualnegoKatSimc
- PobierzDateAktualnegoKatUlic
- PobierzListeWojewodztw
- PobierzListePowiatow
- PobierzListeGmin
- PobierzGminyiPowDlaWoj
- PobierzKatalogTERC
- PobierzKatalogTERCAdr
- PobierzKatalogNTS
- PobierzKatalogSIMCAdr
- PobierzKatalogSIMC
- PobierzKatalogSIMCStat
- PobierzKatalogULIC
- PobierzKatalogULICAdr
- PobierzKatalogULICBezDzielnic
- PobierzKatalogWMRODZ
- PobierzSlownikRodzajowJednostek
- PobierzSlownikCechULIC
- PobierzSlownikRodzajowSIMC
Feel free to contrubute and add support for more functions.
统计信息
- 总下载量: 2.79k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-04-13