rafal-kanski-stp / tulo-php-api-client
This is PHP Client for Tulo API
0.1.0
2019-11-07 07:32 UTC
Requires
- php: >=7.2
- league/oauth2-client: ^2.4
- psr/http-message: ^1.0
Requires (Dev)
- phing/phing: ^2.16
- phpmd/phpmd: ^2.7
- phpspec/phpspec: ^6.0
- sebastian/phpcpd: ^4.1
- squizlabs/php_codesniffer: ^3.5
This package is auto-updated.
Last update: 2024-04-19 21:25:36 UTC
README
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 volume7.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.