IntraPrism Service SDK is a custom Laravel package built to power secure communication between 12+ independent microservices in the IntraPrism ERP platform. It provides a unified layer for service-to-service authentication, internal API routing, and cross-service data exchange — eliminating the need for each service to implement its own integration logic.
Key Features:
Service Authentication Middleware — service-auth middleware validates incoming requests using prefixed service tokens (ip_sk_), ensuring only authorized services can access internal endpoints.
Internal API Routes — Exposes /api/internal/* endpoints on each service, providing a standardized contract for cross-service queries like portal user lookups, company service checks, and entity resolution.
Service Discovery — Centralized service registry integration allowing services to locate and communicate with each other using Docker DNS hostnames in containerized environments.
Conditional Integration — Services query the company_services table to determine which modules a company subscribes to, enabling conditional data pushes only when the target service is active.
Shared Models & Utilities — Common base models, traits, and helpers shared across all consuming services to enforce consistent patterns for logging, validation, and error handling.
Path Repository Distribution — Installed across services via Composer path repositories, resolved as dev-main with @dev stability, enabling rapid iteration without publishing to a package registry.
Installed In: Account API, Workspace API, Super Admin API, Admin API, CRM API, Finance API, Portal API
Designed for a Docker-orchestrated microservices environment where services need to trust and communicate with each other without exposing internal logic to the public API surface.