Plugin to interact with TrustedLogin's encrypted storage infrastructure to redirect support staff into an authenticated session on client installations.
The repo lacks the /vendor/
directory; you'll need to build first. Here's how:
cd /path/to/directory
)composer install --no-dev
cd /path/to/directory
)composer install
- this will also install the code standards directory./vendor/bin/phpcs
A docker-compose-based local development environment is provided.
docker-compose up -d
docker-compose run wp cli wp ...
docker-compose run wpcli wp db reset
In the local development container, the constant DOING_TL_VENDOR_TESTS
is set to true, as is WP_DEBUG
.
There is a special phpunit container for running WordPress tests, with WordPress and MySQL configured.
docker-compose run phpunit
phpunit
If the ecommerce app is also running in docker-compose, this WordPress and the "web" service of app should be in "tl-dev" network. This allows you to make an HTTP request to the eCommerce app like this:
$r = wp_remote_get('http://web:80',['sslverify' => false]);
If this doesn't work, make sure a "tl-dev" network exists:
docker network ls
If it does not, create one:
docker network create tl-dev