stefano / address
斯洛伐克邮政地址API
0.0.6
2019-12-01 21:29 UTC
Requires
- php: ^7.1.3
- ext-ctype: *
- ext-iconv: *
- ext-zip: *
- doctrine/doctrine-bundle: ^2.0
- phpoffice/phpspreadsheet: ^1.8
- symfony/console: ^5.0
- symfony/dotenv: ^5.0
- symfony/flex: ^1.4
- symfony/framework-bundle: ^5.0
- symfony/twig-bundle: ^5.0
- symfony/yaml: ^5.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.12
- phpunit/phpunit: ^8.2
- symfony/debug-pack: ^1.0
Conflicts
This package is auto-updated.
Last update: 2024-08-29 23:29:12 UTC
README
安装
- 运行
composer create-project stefano/address my-project
- 创建数据库
database.sql
- 将 .end.dist 重命名为 .env 并填写您的设置
- 运行导入
bin/console import:address
API端点文档
GET /api/address
- 字段 [数组] [可选]
- [字符串] street, city, postcode, post_office
- 过滤器 [数组] [可选]
- street [字符串] [可选]
- city [字符串] [可选]
- postcode [字符串] [可选]
- post_office [字符串] [可选]
- orders [数组] [可选]
- [字符串] street, city, postcode, post_office
- order-direction [asc 或 desc] [可选] 默认 asc
- limit [数字] [可选] 默认 20
- offset [数字] [可选] 默认 0
响应
{
items: [
street, string,
city: string,
postcode: string,
post_office: string
]
}