rafal-kanski-stp/tulo-php-api-client

This is PHP Client for Tulo API

0.1.0 2019-11-07 07:32 UTC

README

Build Status

Requirements

It requires docker and docker-compose. It works perfectly fine for PHP>=7.2.

Installation

composer require rafal-kanski-stp/tulo-php-api-client

Installation (for development)

In project directory run command:

docker-compose -f infrastructure/docker/docker-compose.yml up -d

To install project you have to run this:

export CONTAINER_USER_ID=998 && \
export CONTAINER_USER_NAME=appuser && \
export CONTAINER_GROUP_ID=998 && \
export CONTAINER_GROUP_NAME=appusergroup && \
export GITHUB_OAUTH_TOKEN=xxx && \
docker-compose -f infrastructure/docker/docker-compose.yml exec php-cli-7.3 \
/bin/bash -c "composer install --no-interaction"

Or:

cp .env.dist .env

Set all variables and next:

docker-compose -f infrastructure/docker/docker-compose.yml exec php-cli-7.3 \
/bin/bash -c "composer install --no-interaction"

All exported values should be adjusted to your needs.

Tests

This library supports major versions of PHP. For:

  • 7.3 - when you build a container it has shared volume
  • 7.2 - when you build a container it copies data from the project

See .travis.yml file to get more details how to run tests locally.