fsi/datasource
FSI DataSource is a Laravel/PHP package for building reusable data sources behind tables and APIs. It offers a structured way to define queries, apply filters and sorting, handle pagination, and transform results, keeping controllers clean and consistent.
Architecture fit
fsi/datasource is a standalone PHP component, not a Laravel package: no service provider, facade, config file, or publishable assets. It provides a driver abstraction plus "specified conditions" for retrieving data from heterogeneous sources (Doctrine-style, array/API, etc.).DataSource port with Eloquent/HTTP/legacy-DB adapters behind it.Integration feasibility
Technical risk
composer.json before anything else.Key questions
Stack fit
DataSource interface and let fsi/datasource be an implementation detail behind it.Migration path
composer.lock, run its test suite, write a throwaway array driver and one condition to confirm the extension points are usable.internal/datasource, bump PHP/deps, add CI and a composer.json replace. This is the expected outcome and should be planned for, not discovered later.DataSourceServiceProvider registering a driver registry; internal driver(s) implementing the shipped interface over Eloquent/HTTP clients; a mapper translating domain filter DTOs into package conditions.Compatibility
composer.json constraints before committing; check for Symfony 4/5-era pins and abandoned transitive dependencies (composer why-not, composer outdated --direct).Sequencing Spike → fork/dependency decision → adapter + condition mapper → pilot with parity tests → production rollout → deprecation path for the legacy query code. Do not start the pilot before the fork gate is resolved; retrofitting a fork mid-integration doubles the work.
Maintenance
Support
Scaling
Failure modes
Ramp-up
How can I help you explore Laravel packages today?