codebar-ag/laravel-flatfox

Flatfox集成到Laravel中

v2.1 2024-02-27 12:09 UTC

This package is auto-updated.

Last update: 2024-09-15 13:00:55 UTC


README

Latest Version on Packagist Total Downloads run-tests PHPStan

此包是为了让您快速开始从Flatfox API接收公共列表而开发的。

💡 什么是Flatfox?

Flatfox是一个基于网络的门户,您可以免费搜索和广告公寓。

🛠️ 要求

⚙️ 安装

您可以通过Composer安装此包

composer require codebar-ag/laravel-flatfox

使用

    $request = new GetPublicListing(identifier: 142);
    $response = $request->send();
    
    $status = $request->status();
    $dto = $request->dto(); 

🏋️ DTO展示

CodebarAg\Flatfox\DTO\Listing {
  +pk: int|null
  +slug: string|null
  +url: array|null
  +short_url: string|null
  +submit_url: array|null
  +status: string|null
  +offer_type: string|null
  +object_category: string|null
  +object_type: string|null
  +reference: string|null
  +ref_property: string|null
  +ref_house: string|null
  +ref_object: string|null
  +alternative_reference: string|null
  +price_display: int|null
  +price_display_type: string|null
  +price_unit: string|null
  +rent_net: int|null
  +rent_charges: int|null
  +rent_gross: int|null
  +short_title: string|null
  +public_title: string|null
  +pitch_title: string|null
  +description_title: string|null
  +description: string|null
  +surface_living: int|null
  +surface_property: int|null
  +surface_usable: int|null
  +surface_usable_minimum: int|null
  +volume: int|null
  +space_display: int|null
  +number_of_rooms: string|null
  +floor: int|null
  +attributes: Collection DTO/Attribute|null
  +is_furnished: boolean|null
  +is_temporary: boolean|null
  +is_selling_furniture: boolean|null
  +street: string|null
  +zipcode: int|null
  +city: string|null
  +public_address: string|null
  +latitude: float|null
  +longitude: float|null
  +year_built: int|null
  +year_renovated: int|null
  +moving_date_type: string|null
  +moving_date: Carbon|null
  +video_url: string|null
  +tour_url: string|null
  +website_url: string|null
  +live_viewing_url: string|null
  +cover_image: int|null
  +images: Collection DTO/Image|null
  +documents: Collection DTO/Documenent|null
  +agency: DTO/Agency|null
  +reserved: boolean|null
  +livingspace: boolean|null
  +published: Carbon|null
  +created: Carbon|null
CodebarAg\Flatfox\DTO\Attribute {
  +name: string|null
  +name_2: string|null
  +street: string|null
  +zipcode: string|null
  +city: string|null
  +country: string|null
  +logo_url: string|null
  +logo_url_org_logo_m: string|null
CodebarAg\Flatfox\DTO\Agency {
  +name: string|null
CodebarAg\Flatfox\DTO\Image {
  +pk: int|null
  +caption: string|null
  +url: string|null
  +url_thumb_m: string|null
  +url_listing_search: string|null
  +search_url: string|null
  +ordering:  int|null
  +width: int|null
  +height: int|null
CodebarAg\Flatfox\DTO\Document {
  +pk: int|null
  +url: string|null
  +ordering:  int|null
  +caption: sting|null

🚧 测试

复制您的自己的phpunit.xml文件。

cp phpunit.xml.dist phpunit.xml

运行测试

./vendor/bin/pest

📝 更新日志

请参阅更新日志以获取有关最近更改的更多信息。

✏️ 贡献

请参阅贡献指南以获取详细信息。

composer test

代码风格

./vendor/bin/pint

🧑‍💻 安全漏洞

请查阅我们的安全策略了解如何报告安全漏洞。

🙏 致谢

🎭 许可证

MIT许可证(MIT)。请参阅许可证文件以获取更多信息。