factory/shape-directory (0.3.0)

Published 2026-08-06 01:35:52 +00:00 by bmiadmin

Installation

{
	"repositories": [{
			"type": "composer",
			"url": ""
		}
	]
}
composer require factory/shape-directory:0.3.0

About this package

Shape D: geo-directory. Listings (stations/spaces), attributes, live availability, favourites, metered sessions (EV Spot, CoWork spaces).

factory/shape-directory — v0.1.0

Shape D — find a venue, live status, use it by the minute (EV Spot; CoWork spaces). Listings carry key/value attributes and slot availability; favourites are per user; usage sessions are metered (start/stop → whole minutes × rate) and audited on start and on the final charge.

Endpoints (all under /api)

Method Path Body / notes Response
GET /listings ?q=&area=&kind=&status= {ok, data:[Listing], meta}
GET /listings/{id} flat Listing (attributes map + availability)
GET /favourites per X-User-Ref {ok, data:[Listing]}
POST /favourites listing_id (idempotent) 201
DELETE /favourites/{listingId} 200
GET /sessions {ok, data:[Session]}
POST /listings/{listingId}/sessions rate_minor_per_min? (defaults to product knob session_rate_minor_per_min); idempotent while active flat Session, 201
POST /sessions/{id}/stop computes cost_minor, audited; idempotent flat Session

Tables: listings, listing_attributes, listing_availability, favourites, usage_sessions (product-scoped).

Dependencies

Dependencies

ID Version
factory/auth ^0.3
factory/infra ^0.1 || ^0.2
factory/kernel ^0.2 || ^0.3 || ^0.4 || ^0.5 || ^0.6 || ^0.7 || ^0.8 || ^0.9
illuminate/database ^10.0 || ^11.0 || ^12.0 || ^13.0
illuminate/routing ^10.0 || ^11.0 || ^12.0 || ^13.0
illuminate/support ^10.0 || ^11.0 || ^12.0 || ^13.0
php ^8.2

Development dependencies

ID Version
orchestra/testbench ^8.0 || ^9.0 || ^10.0 || ^11.0
phpunit/phpunit ^10.1 || ^11.0 || ^12.0
Details
Composer
2026-08-06 01:35:52 +00:00
54
proprietary
22 KiB
Assets (1)
Versions (3) View all
0.3.2 2026-08-16
0.3.1 2026-08-14
0.3.0 2026-08-06