Ratings | | Unique User Downloads | | Download Rankings |
Not yet rated by the users | | Total: 71 | | All time: 10,118 This week: 208 |
|
Description | | Author peter279k
Contributor
|
This package can generate encrypted environment variable for Travis.
There is a client class that retrieves an encryption key by sending a HTTP request to the Travis API.
Then the encryption class can encrypt an environment variable with a given name and value and returns the encrypted result as text using base64. Innovation Award
 December 2017
Number 8 |
Travis is a popular continuous integration platform. It can automate tests and other tasks related with application building.
Often applications that are being tested need to be configured using custom values. This package can retrieve configuration values using the Travis API by retrieving and decrypting configuration data.
Manuel Lemos |
| |
 |
|
Innovation award
 Nominee: 11x
Winner: 1x |
|
Details
php-travis-encrypter

Introduction
The PHP API wrapper is to encrypt the travis-ci environment variables.
Usage
-
Install the php-travis-encrypter via Composer.
composer require lee/php-travis-encrypter
-
The sample code is as follows.
use Travis\Encrypter\Client;
use Travis\Encrypter\Encrypter;
$client = new Client('peter279k/php-travis-encrypter');
$result = $client->get();
$key = $result->getKey();
$encrypter = new Encrypter($key, 'name', 'value');
echo $encrypter->encrypt();
Unit testing
-
The project uses the PHPUnit to test the whole source code.
-
Just clone this repo and run the following two commands:
composer install
phpunit
Contributing
I appreciate the contribution.Here is the tips for contributing project.
-
coding style: psr-2 (check coding style via StyleCI)
-
add the some featues should add the mapped unit testing.
|
Applications that use this package |
|
No pages of applications that use this class were specified.
If you know an application of this package, send a message to the author to add a link here.