API Service Dependencies¶
This document provides a categorized inventory of the Composer dependencies required to run the API service. Understanding the role of each package is critical for security scanning, performance monitoring, and troubleshooting.
Source of Truth
The canonical list of all dependencies is maintained in the api/composer.json file.
Production Dependencies¶
These packages are required for the service to run in a production environment.
Core Framework¶
| Package | Version | Core Responsibility |
|---|---|---|
laravel/framework |
^11.31 |
The core Laravel framework, providing the foundation for the entire application. |
laravel/tinker |
^2.9 |
Provides an interactive REPL (Read-Eval-Print Loop) for debugging. |
Search & Database¶
| Package | Version | Core Responsibility |
|---|---|---|
laravel/scout |
^10.17 |
Laravel's official driver-based solution for full-text search. |
friendsofcat/opensearch-scout-driver |
^2.1 |
The specific driver that connects Laravel Scout to our OpenSearch cluster. |
tpetry/laravel-postgresql-enhanced |
^3.0 |
Adds advanced PostgreSQL features and optimizations to the Eloquent ORM. |
API & GraphQL¶
| Package | Version | Core Responsibility |
|---|---|---|
nuwave/lighthouse |
^6.62 |
A powerful and flexible GraphQL server implementation for Laravel. |
nyholm/psr7 |
^1.8 |
A PSR-7 implementation, a standard for HTTP message interfaces, used by Lighthouse. |
Utility¶
| Package | Version | Core Responsibility |
|---|---|---|
vipnytt/sitemapparser |
^1.3 |
A utility for parsing sitemap.xml files, likely used for source discovery. |
Development Dependencies¶
These packages are required for running local tests and CI/CD pipelines. They are not installed in the production environment.
fakerphp/faker: A library for generating fake data, essential for seeding databases and writing tests.laravel/pint: The official PHP code style fixer for Laravel, ensuring code consistency.laravel/sail: A lightweight command-line interface for interacting with Laravel's default Docker development environment.mockery/mockery: A powerful mock object framework for isolating components during testing.nunomaduro/collision: Provides beautiful and intuitive error reporting for command-line applications.phpunit/phpunit: The industry-standard testing framework for PHP.barryvdh/laravel-ide-helper: Generates helper files that enable IDEs to provide accurate autocompletion for Laravel's magic methods.