定制 wefabric/real-eztat 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

wefabric/real-eztat

最新稳定版本:v0.0.1

Composer 安装命令:

composer require wefabric/real-eztat

包简介

Real Eztat is a real estate management system

README 文档

README

This package provides a PHP client for the Real Eztat API, which allows you to interact with real estate listings and related data.

Installation

You can install the package via Composer:

composer require wefabric/real-eztat

Add the following environment variable to your .env file:

REAL_EZTAT_BASE_URL=https://realeztat.nl
REAL_EZTAT_API_KEY=your_api_key_here
REAL_EZTAT_CACHE_TTL=3600 // in seconds

Usage

To use the Real Eztat API client, you need to create an instance of the RealEztatService class. Here's a basic example:

use Wefabric\RealEztat\Services\RealEztatService;

$realEztatService = new RealEztatService();
$objects = $realEztatService->get('api/objects/filter');
foreach ($objects['data'] as $object) {
    echo $object['title'] . "\n";
}

There are also classes available for specific endpoints, such as NewConstructionProject. You can use these classes to interact with specific data types more easily. For example:

use Wefabric\RealEztat\Endpoints\NewConstructionProject;

$newConstructionProject = new NewConstructionProject();
$projects = $newConstructionProject->get();

foreach ($projects['data'] as $project) {
    echo $project['title'] . "\n";
}

And for a specific project:

$project = $newConstructionProject->get('slug-of-the-project');

echo $project['title'] . "\n";

Caching

The package uses caching to improve performance. By default, it caches responses for 1 hour (3600 seconds). You can change the cache duration by setting the REAL_EZTAT_CACHE_TTL environment variable in your .env file. To disable caching, set the REAL_EZTAT_CACHE_TTL to 0.

统计信息

  • 总下载量: 13
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: proprietary
  • 更新时间: 2025-06-02