Download the PHP package derhaeuptling/contao-immobilienscout24-import-bundle without Composer

On this page you can find all versions of the php package derhaeuptling/contao-immobilienscout24-import-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package contao-immobilienscout24-import-bundle

Immoscout24 Import for Contao

This bundle allows you to import real estate objects from Immoscout24 into your Contao application (4.8+) and display them as native content.

Warning: This is an early release. There might be features missing. Use at your own risk.

How to get going

Setup

  1. Install the bundle and update your database. There is no further configuration necessary.

  2. Add at least one Immoscout24 Account in the backend and enter your API credentials.

  3. Setup a cron job that executes the immoscout24:sync command or run it yourself to import real estate objects from the API into your application. You can pass an account's id or description as a parameter to only sync this one account and --dry-run to only see what would be updated without persisting the changes. Use the option --purge to clear the database table and all downloaded files completely beforehand.

  4. We are using Contao's Virtual Filesystem feature. If you also want to adjust where the downloaded attachments should be stored, simply mount the immoscout24 directory at another place. See the Contao developer docs for more information about this topic.

  5. Add one or more Immoscout24 modules in your theme and use it in the frontend:

    • The Real estate list displays a list of real estate objects. If you want to generate a teaser list with 'read more' links, make sure to specify a 'jump to' page with the appropriate reader.

    • The Real estate reader displays a single real estate object based on the url parameter (id).

    • List items can be constrained individually by using a filter expression.\ Some filter expression examples:
      • one object by its ID realEstateId == 111111111
      • some objects by its IDs realEstateId in [111111111,222222222,333333333]
      • all active objects state == STATUS_ACTIVE
      • all objects published to the homepage channel 'Homepage' in publishChannels
      • all objects with empty API-Searchfield1 apiSearchData1 != null
      • all objects that match a KEYWORD in the title field title matches "/KEYWORD/"
      • combine filter 'Homepage' in publishChannels && priceMarketingType == "Kauf"

Templates and values

The real estate listings contain lots of fields - most likely you'll want to adapt the templates to your needs and only output some of the fields. To do this, there are some helpers for your convenience.

A) Real estate data comes in the form of an entity instance, you can type hint against it to get IDE auto-completion in your templates:

B) You can also obtain a list of all available attributes:

C) To retrieve and format data, you can use these helper functions:

D) If you want to resolve enumerations yourself you can find all of them as public constants in the RealEstate entity.

Some enumeration values can occur multiple times per value. In this case they are implemented as binary flags:

Note that flagged values are stored as negative numbers, so that they can easily be differentiated from regular enumeration values.

Attachments

Real estate objects can have multiple attachments. Note: that currently only images are supported attachment types.

To render an attachment (as an image) you can utilize the getFigureFromAttachment() function present in the templates. It allows passing in an alternative image size as second argument:

To output the Figure, pass its data to the template you want render. In case of the legacy image template, make sure to expand the image data beforehand by calling getLegacyTemplateData():

Here is the full example how to output the title picture with the default image size in a failure-tolerant way:


All versions of contao-immobilienscout24-import-bundle with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
ext-json Version *
contao/core-bundle Version ^4.13 || ^5.0
doctrine/orm Version ^2.10
doctrine/annotations Version ^1.6
doctrine/doctrine-bundle Version ^2.4
symfony/expression-language Version ^5.4
symfony/filesystem Version ^5.4 || ^6.0
symfony/security-bundle Version ^5.4 || ^6.0
symfony/http-client Version ^5.4 || 6.0
league/oauth1-client Version ^1.10
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package derhaeuptling/contao-immobilienscout24-import-bundle contains the following files

Loading the files please wait ....