PHP Classes

File: README.md

Recommend this page to a friend!
  Classes of Chun-Sheng, Li   PHP Travis Encrypter   README.md   Download  
File: README.md
Role: Documentation
Content type: text/markdown
Description: Documentation
Class: PHP Travis Encrypter
Generate encrypted environment variable for Travis
Author: By
Last change:
Date: 6 years ago
Size: 1,334 bytes
 

Contents

Class file image Download

php-travis-encrypter

StyleCI Coverage Status Build Status

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.