bagisto/bagisto-api
REST and GraphQL API layer for Bagisto 2.3.8+, built on API Platform. Quickly install via Composer and an Artisan installer to get API docs, GraphQL Playground, and shop/admin endpoints for e‑commerce integrations and extensions.
api-platform/* versions) suggests backward compatibility with Laravel 10+ and PHP 8.3+.STOREFRONT_KEY), rate-limited, and cache-optimized.| Risk Area | Severity | Mitigation |
|---|---|---|
| Version Lock-in | Medium | Pinned api-platform/* versions reduce upgrade friction, but Bagisto v2.3.8+ is required. |
| GraphQL Complexity | High | Schema-first design helps, but deeply nested queries (e.g., orders with embedded addresses/payments) may require frontend optimizations (e.g., Apollo Client caching). |
| Admin Token Management | Medium | Manual token generation/revocation in the UI could be automated via API (e.g., POST /api/admin/integrations). |
| Performance Overhead | Low | Rate limiting and caching (STOREFRONT_CACHE_TTL) are configurable, but admin APIs lack built-in caching headers (e.g., Cache-Control). |
| Migration Path | Low | Zero-downtime if installed on a staging clone; database schema changes are minimal (audit logs, CSV exports). |
spatie/laravel-api-resources).STOREFRONT_RATE_LIMIT=100) may need adjustment for high-throughput use cases.bagisto-api:prune-audits) exist, but log volume should be benchmarked.STOREFRONT_CACHE_TTL.composer require api-platform/laravel:v4.1.25).composer require bagisto/bagisto-api + php artisan bagisto-api-platform:install.| Component | Compatibility |
|---|---|
| Bagisto Core | v2.3.8+ required; backward compatibility with v2.3.x likely. |
| Laravel | 10.x (tested); 9.x may work with dependency adjustments. |
| Frontend Frameworks | React, Vue, Angular: GraphQL clients available; REST works with any HTTP lib. |
| Mobile Apps | Native SDKs (e.g., Android/iOS) can use REST; GraphQL requires Apollo Client. |
| Third-Party Integrations | Webhooks not natively supported; event listeners (e.g., order.placed) can be extended. |
composer require bagisto/bagisto-api.php artisan bagisto-api-platform:install..env (rate limits, cache TTL)./api/shop/docs, /api/graphiql).api-platform/* versions reduce upgrade chaos, but Bagisto updates may require API package re-testing.composer dump-autoload) after manual installations.Integration → History) add storage overhead (~100MB for 10K admin actions).bagisto-api:prune-audits) must be scheduled (e.g., weekly)./api/v1/).How can I help you explore Laravel packages today?