codebar-ag/laravel-flatfox

Flatfox integration with Laravel

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

This package is auto-updated.

Last update: 2024-05-15 12:15:42 UTC


README

68747470733a2f2f62616e6e6572732e6265796f6e64636f2e64652f4c61726176656c253230466c6174666f782e706e673f7468656d653d6c69676874267061636b6167654d616e616765723d636f6d706f7365722b72657175697265267061636b6167654e616d653d636f64656261722d61672532466c61726176656c2d666c6174666f78267061747465726e3d63697263756974426f617264267374796c653d7374796c655f32266465736372697074696f6e3d412b4c61726176656c2b466c6174666f782b696e746567726174696f6e2b746f2b726563656976652b7075626c69632b6c697374696e67732e266d643d312673686f7757617465726d61726b3d3126666f6e7453697a653d313530707826696d616765733d686f6d65267769647468733d35303026686569676874733d353030

Latest Version on Packagist Total Downloads run-tests PHPStan

This package was developed to give you a quick start to receive public listings from the Flatfox API.

💡 What is Flatfox?

Flatfox is a web-based portal where you can Search & advertise apartments for free.

🛠 Requirements

Package PHP Laravel Flatfox
>v1.0 >8.2 > Laravel 10.0

⚙️ Installation

You can install the package via composer:

composer require codebar-ag/laravel-flatfox

Usage

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

🏋️ DTO showcase

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

🚧 Testing

Copy your own phpunit.xml-file.

cp phpunit.xml.dist phpunit.xml

Run the tests:

./vendor/bin/pest

📝 Changelog

Please see CHANGELOG for more information on what has changed recently.

✏️ Contributing

Please see CONTRIBUTING for details.

composer test

Code Style

./vendor/bin/pint

🧑‍💻 Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

🙏 Credits

🎭 License

The MIT License (MIT). Please see License File for more information.