Download the PHP package flowstore/lookup without Composer

On this page you can find all versions of the php package flowstore/lookup. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package lookup

Lookup (Paquete Laravel)

Qué es: Capa agnóstica para consultar APIs externas por "canal" (ecommerce/ERP/marketplace) y convertir respuestas en DTOs de dominio unificados. Se usa para iniciar integraciones (probar conexión, traer datos base, etc.). No persiste ni configura integraciones.

Instalación

Configuración

Archivo config/lookup.php:

Contratos principales

Resolución y orquestación

Resolución de contexto (configurable)

El paquete es agnóstico de tu modelo. Define cómo construir IntegrationContext desde el request:

Si usas el resolver genérico Eloquent con IntegrationTenant:

Modelo sugerido:

El controlador del paquete leerá el id desde config('lookup.context.id_param') (por defecto integration_id) y resolverá el contexto usando el resolver configurado o el resolver Eloquent si se define context.eloquent.model.

HTTP (LookupController)

Ejemplo de request (POST JSON):

Ejemplo de respuesta:

Nota: Debes implementar y bindear IntegrationContextResolver para traducir integration_id a IntegrationContext.

Test de conexión (TestConnectionController)

Puntos de extensión

Comando de scaffolding

Contribuir

Crea stubs para Provider y/o Mapper en tu app (app/Lookup/...).

Buenas prácticas

Uso en la app host

O vía HTTP con el LookupController opcional.

IntegrationContext (qué es y cómo personalizar)

IntegrationContext es un DTO inmutable que describe el contexto de una integración:

Se utiliza en LookupProviderInterface::testConnection(...) y lookup(...), y también en EntityMapperInterface::map(...) para proveer contexto al mapeo.

Personalización:

En este caso, el controlador leerá tenant_id en el body.

Regístralo por configuración (no hace falta bind manual):

Sugerencia de modelo:

Ejemplo de request con tenant_id:

Persistencia desde providers (helpers)

Para facilitar inserciones/actualizaciones en tus modelos Eloquent desde un provider custom, AbstractLookupProvider expone métodos protegidos que usan ModelWriter internamente:

Ejemplos:

Notas:


All versions of lookup with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1|^8.2|^8.3|^8.4
illuminate/support Version ^9.0|^10.0|^11.0|^12.0
illuminate/http Version ^9.0|^10.0|^11.0|^12.0
illuminate/console Version ^9.0|^10.0|^11.0|^12.0
illuminate/contracts Version ^9.0|^10.0|^11.0|^12.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package flowstore/lookup contains the following files

Loading the files please wait ...