Search by

omnistay / local

GlitchArt

Omnistay's local provider, under any PHP host: a site's own listings - homes rented by their hosts - answering the same contracts as a hotel system: search by place or point, availability and offers priced line by line (nights, weekend and seasonal prices, a night's own price, extra guests, weekly a

1.x-dev 2026-11-09 12:59 UTC

This package is not auto-updated.

Last update: 2026-11-10 01:41:36 UTC


README

Omnistay's provider for a site's own listings: homes, rooms and cabins rented by their hosts answer the same contracts as a hotel system, so the site searches hotels and private rentals through one interface.

  • Search by text, IATA city code or point; with dates, only the listings free then, priced.
  • Prices line by line (Quote): each night (its own price, its season's, the weekend's or the base), extra guests, a weekly or monthly discount, cleaning, the site's service fee, a tourist tax per adult and night.
  • Rules (Check): capacity, pets, notice, booking window, check-in weekdays, minimum stay (longer in a season), maximum stay, the nights blocked by the host or booked.
  • Calendar night by night; bookings held atomically by the store - never twice the same night -, pending while the guest pays (and let go when the payment does not come), confirmed or on request; cancellation terms (flexible, moderate, strict, non-refundable).
$registry = new Omnistay\Registry([new Omnistay\Local\LocalFactory($store)], [
    'homes' => ['factory' => 'local', 'options' => ['service_fee' => 12, 'hold_minutes' => 30]],
]);

$store is the site's ListingStoreInterface (omnibase/booking keeps it in Doctrine); InMemoryStore is one in memory. No key, no network. See docs/index.md. License: MIT.