urban-brussels/nova-api
Composer 安装命令:
composer require urban-brussels/nova-api
包简介
PHP wrapper for Nova API. Nova is a shared IT platform of the Brussels-Capital Region dedicated to the file management of planning permits, land division permits and environmental licences.
README 文档
README
PHP wrapper for the API of Nova. Nova is a shared IT platform of the Brussels-Capital Region dedicated to the file management of planning permits, land division permits and environmental licences. Permit applications can be viewed online on OpenPermits.brussels.
Installation
composer require urban-brussels/nova-api
Usage
use UrbanBrussels\NovaApi\Attribute;
use UrbanBrussels\NovaApi\PermitQuery;
use UrbanBrussels\NovaApi\PermitCollection;
$query = new PermitQuery('PU'); // Create a query for planning (PU) or environmental (PE) licences
$permits = $query
->filterByAttributeArray(Attribute::REFERENCE_NOVA, ['04/PFD/1796029', '04/PFD/1795271']) // Filter by Nova References
->setOrder(Attribute::DATE_SUBMISSION, 'DESC') // Order by descending submission date
->setLimit(2) // Limit to 2 results
->getResults();
// You now have a PermitCollection object, that can be used in a loop
foreach ($permits->getPermits() as $permit)
{
echo $permit->getReferenceNova();
echo $permit->getAddress();
echo $permit->getDateInquiryEnd();
echo $permit->hasActiveInquiry();
}
// Other available getters
// Get Address in an array (street name FR/NL, street number, municipality FR/NL)
$permit->getAddress();
// Get Type and Subtype
$permit->getType();
$permit->getSubtype();
// Get an array of Links related to this permit request (Nova, OpenPermits, Nova API)
$permit->getLinks();
// Get Description of the requested permit, in an array FR/NL
$permit->getObject();
// Get Public inquiry dates
$permit->getDateInquiryBegin();
$permit->getDateInquiryEnd();
// Get Submission Date
$permit->getDateSubmission();
// Get Notification Date
$permit->getDateNotification();
// Get a multidimensional array with the Area Typology (existing, projected, authorized areas for each type)
$permit->getAreaTypology();
// Submission language (FR or NL)
$permit->getLanguage();
Other queries examples
use UrbanBrussels\NovaApi\PermitQuery;
use UrbanBrussels\NovaApi\PermitCollection;
$query = new PermitQuery('PU');
// Retrieve all requests in public inquiry for the date 2022-01-01 (PU for planning requests, PE for environmental requests)
$permits = $query->filterByInquiryDate('2022-01-01')
->getResults();
// Filters can be combined
$permits = $query->filterByAttribute(Attribute::STREETNAME_FR, 'Rue de Dublin') // First filter to limit by street
->filterByAttribute(Attribute::LANGUAGE, 'NL'); // Second filter to limit to applications in Dutch
->getResults();
// If you use a raw cql_filter, you can query what you want (e.g. every permit request for a given Street + Zipcode)
$permits = $query->filterByRawCQL("streetnamefr = 'Rue de Dublin' AND zipcode='1050'" )
->getResults();
Advantages
This library fixes the following inconsistencies in the Nova WFS webservices
- Different attributes names for PE and PU
- Attributes names mixing french and english
- Different DateTime patterns (with or without microseconds)
- Boolean values returned as string (e.g.: incidences, mpp)
- Too deep json for suspensions
- Integer values returned as string (e.g. novaseq, zipcode)
- Status must be guessed mixing different attributes
- Redundancy
- Incorrect values (e.g. submissions in the year 1111)
- Number "to" same as number "from" in addresses
urban-brussels/nova-api 适用场景与选型建议
urban-brussels/nova-api 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 510 次下载、GitHub Stars 达 0, 最近一次更新时间为 2022 年 01 月 10 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「Brussels」 「Planning permits」 「Environmental licences」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 urban-brussels/nova-api 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 urban-brussels/nova-api 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 urban-brussels/nova-api 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Library to handel intervals
Package to lookup addresses using the AGIV Geopunt geolocation API.
Planning Center OAuth2 Provider for Laravel Socialite
PHP wrapper for Nova API, using DTO. Nova is a shared IT platform of the Brussels-Capital Region dedicated to the file management of planning permits, land division permits and environmental licences.
library for sports scheduling written in php
Generate context files and agent prompts from Loom video walkthroughs.
统计信息
- 总下载量: 510
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 13
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-01-10