4
4
[ ![ Total Downloads] ( https://img.shields.io/packagist/dt/codebar-ag/laravel-flatfox.svg?style=flat-square )] ( https://packagist.org/packages/codebar-ag/laravel-flatfox )
5
5
[ ![ run-tests] ( https://github.com/codebar-ag/laravel-flatfox/actions/workflows/run-tests.yml/badge.svg )] ( https://github.com/codebar-ag/laravel-flatfox/actions/workflows/run-tests.yml )
6
6
[ ![ PHPStan] ( https://github.com/codebar-ag/laravel-flatfox/actions/workflows/phpstan.yml/badge.svg )] ( https://github.com/codebar-ag/laravel-flatfox/actions/workflows/phpstan.yml )
7
- [ ![ Check & fix styling] ( https://github.com/codebar-ag/laravel-flatfox/actions/workflows/php-cs-fixer.yml/badge.svg )] ( https://github.com/codebar-ag/laravel-flatfox/actions/workflows/php-cs-fixer.yml )
8
7
9
8
This package was developed to give you a quick start to receive public listings from the Flatfox API.
10
9
11
10
## 💡 What is Flatfox?
12
11
13
- Flatfox is a web based portal whereh you can Search & advertise apartments for free.
12
+ Flatfox is a web based portal where you can Search & advertise apartments for free.
14
13
15
14
## 🛠 Requirements
16
15
17
- | Package | PHP | Laravel | Flatfox |
18
- | -----------| -------- | -- ----------------| -----------|
19
- | >v1.0 | >8.2 | > Laravel 10.0 | ✅ |
16
+ | Package | PHP | Laravel | Flatfox |
17
+ | -----------| -------| ----------------| -----------|
18
+ | >v1.0 | >8.2 | > Laravel 10.0 | ✅ |
20
19
21
20
## ⚙️ Installation
22
21
@@ -31,6 +30,113 @@ composer require codebar-ag/laravel-flatfox
31
30
``` php
32
31
$request = new GetPublicListing(142, '&expand=documents&expand=images');
33
32
$response = $request->send();
33
+
34
+ $status = $request->status();
35
+ $dto = $request->dto();
36
+
37
+ ```
38
+
39
+ ## 🏋️ DTO showcase
40
+
41
+ ``` php
42
+ CodebarAg\Flatfox\DTO\Listing {
43
+ +pk: int|null
44
+ +slug: string|null
45
+ +url: array|null
46
+ +short_url: string|null
47
+ +submit_url: array|null
48
+ +status: string|null
49
+ +offer_type: string|null
50
+ +object_category: string|null
51
+ +object_type: string|null
52
+ +reference: string|null
53
+ +ref_property: string|null
54
+ +ref_house: string|null
55
+ +ref_object: string|null
56
+ +alternative_reference: string|null
57
+ +price_display: int|null
58
+ +price_display_type: string|null
59
+ +price_unit: string|null
60
+ +rent_net: int|null
61
+ +rent_charges: int|null
62
+ +rent_gross: int|null
63
+ +short_title: string|null
64
+ +public_title: string|null
65
+ +pitch_title: string|null
66
+ +description_title: string|null
67
+ +description: string|null
68
+ +surface_living: int|null
69
+ +surface_property: int|null
70
+ +surface_usable: int|null
71
+ +surface_usable_minimum: int|null
72
+ +volume: int|null
73
+ +space_display: int|null
74
+ +number_of_rooms: string|null
75
+ +floor: int|null
76
+ +attributes: Collection DTO/Attribute|null
77
+ +is_furnished: boolean|null
78
+ +is_temporary: boolean|null
79
+ +is_selling_furniture: boolean|null
80
+ +street: string|null
81
+ +zipcode: int|null
82
+ +city: string|null
83
+ +public_address: string|null
84
+ +latitude: float|null
85
+ +longitude: float|null
86
+ +year_built: int|null
87
+ +year_renovated: int|null
88
+ +moving_date_type: string|null
89
+ +moving_date: Carbon|null
90
+ +video_url: string|null
91
+ +tour_url: string|null
92
+ +website_url: string|null
93
+ +live_viewing_url: string|null
94
+ +cover_image: int|null
95
+ +images: Collection DTO/Image|null
96
+ +documents: Collection DTO/Documenent|null
97
+ +agency: DTO/Agency|null
98
+ +reserved: boolean|null
99
+ +livingspace: boolean|null
100
+ +published: Carbon|null
101
+ +created: Carbon|null
102
+ ```
103
+
104
+ ``` php
105
+ CodebarAg\Flatfox\DTO\Attribute {
106
+ +name: string|null
107
+ +name_2: string|null
108
+ +street: string|null
109
+ +zipcode: string|null
110
+ +city: string|null
111
+ +country: string|null
112
+ +logo_url: string|null
113
+ +logo_url_org_logo_m: string|null
114
+ ```
115
+
116
+ ``` php
117
+ CodebarAg\Flatfox\DTO\Agency {
118
+ +name: string|null
119
+ ```
120
+
121
+ ``` php
122
+ CodebarAg\Flatfox\DTO\Image {
123
+ +pk: int|null
124
+ +caption: string|null
125
+ +url: string|null
126
+ +url_thumb_m: string|null
127
+ +url_listing_search: string|null
128
+ +search_url: string|null
129
+ +ordering: int|null
130
+ +width: int|null
131
+ +height: int|null
132
+ ```
133
+
134
+ ``` php
135
+ CodebarAg\Flatfox\DTO\Document {
136
+ +pk: int|null
137
+ +url: string|null
138
+ +ordering: int|null
139
+ +caption: sting|null
34
140
```
35
141
36
142
## 🚧 Testing
0 commit comments