Download the PHP package justdev/lomnio-api-connector without Composer

On this page you can find all versions of the php package justdev/lomnio-api-connector. 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 lomnio-api-connector

Lomnio API Connector

WordPress plugin for syncing Lomnio data into local database tables and reading it from theme code.

Installation

Recommended project install:

When the plugin is installed from the project Composer file, Composer installs the plugin into wp-content/plugins/lomnio-api-connector through composer/installers. Plugin dependencies are installed by the root project.

Keep woocommerce/action-scheduler in root vendor, not in wp-content/plugins/action-scheduler. Add this exception before the generic type:wordpress-plugin installer path in the root project:

Local plugin development install:

Activate the plugin in WordPress admin:

Admin Pages

Endpoint management page:

This page allows admins to:

Hidden API token settings page:

The page is available only to users with manage_options. The API token is stored encrypted in wp_options.

You can paste either a raw token or the full header:

After saving a valid token, the plugin queues immediate Project, Units, and Floors sync when the endpoints are active.

Sync

The plugin uses Action Scheduler.

Project action hook:

Units action hook:

Floors action hook:

Default schedules:

Available schedules include 5 minutes, 10 minutes, 30 minutes, hourly, twice daily, and daily.

Leads

Leads are sent through:

The endpoint is managed on the endpoint management page. If Leads is inactive, calls to the sender return a skipped result and do not send, note, or log anything.

Allowed environments are controlled per endpoint. By default, only production sends real API requests. If the current WP_ENV is not allowed, the payload is recorded locally instead of being sent. The All environments option allows real sending from every environment.

Use the global class when you do not want to import a namespace:

When GFAPI exists and entry_id is passed, the plugin writes the request result to the Gravity Forms entry notes. For other forms, the plugin writes to:

The sender returns either a result array or WP_Error.

Stored Data

Project data is stored in:

The table stores ProjectResource without the API data wrapper.

Units data is stored in:

Units sync uses one detailed list request:

The plugin does not call:

Each unit row stores the full UnitDetailResource in payload_json, plus separate columns for filtering and sorting: project_id, identifiers, status, type, layout, orientation, building, floor, phase, areas, pricing, floor plan, and bundle fields.

Legacy unit columns such as list_payload_json, detail_payload_json, list_hash, and detail_hash are not used. If lomnio_units was created by an older plugin version, recreate or migrate the table before running the current sync.

Floors data is stored in:

Floors sync uses:

Each floor row stores the full FloorResource in payload_json, plus separate columns for filtering and sorting: project_id, id, name, number, sort_order, building, availability, unit counts, facade_map_id, and floor_plan_url.

Local table relations:

These are indexed local relation columns, not database-level foreign key constraints.

Theme Usage

Use global Lomnio classes in theme code. Do not instantiate repository classes directly unless you need low-level plugin internals.

Project as object:

Project as array:

Project ID:

Units list:

Units with filters:

Single unit by ID:

Single unit by code:

Units by floor:

Floors list:

Floors with filters:

Single floor by ID:

Single floor by number:

Floors by project:

Available Unit Filters

\LomnioUnits::get() supports these filters:

Filter values can be scalar values or arrays:

Available Floor Filters

\LomnioFloors::get() supports these filters:

Filter values can be scalar values or arrays:

Direct Authorization Header

If plugin code needs the configured authorization header:

The result is either a headers array or WP_Error.


All versions of lomnio-api-connector with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4
woocommerce/action-scheduler Version ^4.0
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 justdev/lomnio-api-connector contains the following files

Loading the files please wait ...