# Packages endpoint (Store API)

`packages.php` is a thin, read-only PHP bridge to the canonical Laravel endpoint. This avoids duplicated package tables or business rules in the frontend API.

Environment:

```dotenv
MAIN_API_URL=https://api.example.com
FRONTEND_ORIGIN=https://store.example.com
```

Public URLs:

- `/packages.php`
- `/packages` or `/api/packages` when the included Apache rewrite rule is active

The endpoint only accepts `GET` and `OPTIONS`, applies explicit timeouts, relays the upstream status code, and exposes a short public cache header.
