keboola / input-mapping
Shared component for processing SAPI input mapping and exporting to files
17.0.1
2023-01-25 13:28 UTC
Requires
- php: >=8.1
- ext-json: *
- keboola/php-file-storage-utils: ^0.2
- keboola/storage-api-client: ^14.5
- keboola/storage-api-php-client-branch-wrapper: ^3.1
- symfony/config: ^5.4|^6.0
- symfony/finder: ^5.4|^6.0
- symfony/serializer: ^5.4|^6.0
- symfony/yaml: ^5.4|^6.0
Requires (Dev)
- keboola/coding-standard: >=14.0
- keboola/php-temp: ^2.0
- phpstan/phpstan: ^1.9
- phpstan/phpstan-phpunit: ^1.3
- phpstan/phpstan-symfony: ^1.2
- phpunit/phpunit: ^9.5
- sempro/phpunit-pretty-print: ^1.4
- symfony/dotenv: ^5.4|^6.0
This package is auto-updated.
Last update: 2023-01-25 17:38:27 UTC
README
Input mapping library for Docker Runner and Sandbox Loader. Library processes input mapping, exports data from Storage tables into CSV files and files from Storage file uploads. Exported files are stored in local directory.
Development
docker-compose build tests
docker-compose run --rm tests-local composer install
Create .env
file from this template
STORAGE_API_TOKEN= STORAGE_API_TOKEN_MASTER= STORAGE_API_URL=https://connection.keboola.com RUN_SYNAPSE_TESTS=0 SYNAPSE_STORAGE_API_TOKEN= SYNAPSE_STORAGE_API_URL=https://connection.eu-central-1.keboola.com
To run Synapse tests, set RUN_SYNAPSE_TESTS=1
and supply a Storage API token to a project with Synapse backend. Synapse tests are by default skipped (unless the above env is set).
Run tests:
docker-compose run --rm tests-local composer run-script ci
License
MIT licensed, see LICENSE file.