Skip to content

Commit

Permalink
Updating PHPUnit to v8.0. Making min PHP version 7.4
Browse files Browse the repository at this point in the history
  • Loading branch information
lukewatts committed May 25, 2022
1 parent ec8d621 commit a05caaf
Show file tree
Hide file tree
Showing 4 changed files with 1,806 additions and 10 deletions.
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
vendor/

composer.lock
.phpunit.result.cache
8 changes: 2 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,24 +8,20 @@ __DO NOT USE FOR PASSWORD AUTHENTICATION!__

### Composer

```
```bash
composer require affinity4/cipher
```

## Usage

```
```php
// Used by both excrypt and decrypt methods, so should be available globally
// Perhaps as an environment variable
$key = 'b1f1e6225cb2b6d0230b16125e45ca63';
$str = 'my secret';

$encrypted = \Affinity4\Cipher\Cipher::encrypt($str, $key); // piqwpeiqep12801aqwie0248quqjowq==
$decrypted = \Affinity4\Cipher\Cipher::decrypt($encrypted, $key); // my secret
```

## Licence
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
}
],
"require": {
"php": ">=5.6"
"php": ">=7.4"
},
"require-dev": {
"phpunit/phpunit": "^6.5"
"phpunit/phpunit": "^8.0"
},
"autoload": {
"psr-4": {
Expand Down
Loading

0 comments on commit a05caaf

Please sign in to comment.