https://github.com/peter279k/php-travis-encrypter
The PHP wrapper generating travis-encrypted environment variables
https://github.com/peter279k/php-travis-encrypter
php php7 travis-api
Last synced: about 1 year ago
JSON representation
The PHP wrapper generating travis-encrypted environment variables
- Host: GitHub
- URL: https://github.com/peter279k/php-travis-encrypter
- Owner: peter279k
- Created: 2017-10-31T16:10:05.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-11-03T19:31:18.000Z (over 8 years ago)
- Last Synced: 2025-05-07T06:46:35.979Z (about 1 year ago)
- Topics: php, php7, travis-api
- Language: PHP
- Size: 34.2 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# php-travis-encrypter
[](https://styleci.io/repos/109020662)
[](https://coveralls.io/github/peter279k/php-travis-encrypter?branch=master)
[](https://travis-ci.org/peter279k/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.
```php
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.